Hey guys. I'm losing my mind trying to figure this out.
I have an app where I charge people to submit a screenplay. The code is very simple thus far.
- The user clicks submit on the form
- Take them to stripe checkout where they can pay
However, I don't want the form to be submitted until the user actually pays. I'm guessing I would implement this with webhooks. The issue is I have no idea how to go about pausing the form until the successful payment, and then submitting the form with the webhooks once the payment is made.
I hope I explained this well enough. If anyone could point me in the right direction (either with vanilla stripe or the pay gem) it would be greatly appreciated. Thank you!