#tallmanpapi

1 messages · Page 1 of 1 (latest)

tawdry doveBOT
foggy axle
#

Hey there

barren relic
#

Hey! 🙂

foggy axle
#

We can't re-open threads but I'd be happy to help if you can summarize here?

barren relic
#

Yes, of course! Give me a minute to write. Thanks a lot.

#

So basically, I have a form with value's, when submitted, the onSubmit function is being called and sends the form values to my database with Axios.

Now I would love to use Stripe as a payment wall, and only send the form values to my database when the payment has been successful, and only then the onSubmit function is being called to send the values to my database with Axios.

I have been watching almost all of the tutorials of the offical Stripe Developers YouTube channel, I am just not very sure where to start.

My project is in Next.js and TypeScript. So my question to you is, have you ever encountered someone or yourself with this case, and do you maybe have any docs/sources that would help me get further in this adventure?

So basically, I am not asking for any source code, I would love to learn, I just need some docs or a video tutorial, or anything that uses the same example as my case.

Its a bit of a long story, I hope you understand what I am trying to tell.

Thanks in advance.

Best regards.

Paddy

foggy axle
#

You integrate Payment Element into your page.

#

And then you want to actually use Webhooks to handle submitting the values to your database. You can store them as metadata if you want within the PaymentIntent to make it easy so that the data comes through the Webhook.

barren relic
#

Okay, I am not understanding this 100%, but that's okay, I am very pleased with your answer. I will go through the guide and try to figure it out.

Thank you so much, I am taking a screenshot of your answers.

Best regards.

Paddy

foggy axle
#

Let us know if we can help further!

barren relic
#

Thanks @foggy axle , appreciate your help.