Async/await help, please

Hi again gurus!

I’m still stuck :frowning: I understand the “big picture” but for some reason am just having trouble figuring out like connecting these pieces and the details. Can anybody help me make this work? I really need to get this site finished for my client ASAP – I’ve been at it for 8 days now I think.

I’ve given it several more attempts since the last post(s) but no luck. I can’t figure out how to:

  • Click submit, then
  • Submit $ to Stripe, then
  • Insert name from form field into Paid Member database, then
  • Redirect to Success page

I’m currently only editing this one section of code, so if I should also be looking at the rest (lines 1-3, or 15 on) please let me know!

Here’s some stuff I’ve tried… hopefully I’m close with one of them!

‘paymentResults’ unread error:

This does’t process Stripe, just inserts into the DB and redirects:

This one doesn’t use the onReady – not sure now if that’s good or bad – but again, it doesn’t process Stripe, just inserts into the DB and redirects:

I’d really REALLY appreciate anyone’s help! Thanks in advance!