#Khanisic - webhook
1 messages · Page 1 of 1 (latest)
Hi
If you want to run some code after a successful payment (for example to update your database or fulfill the order), you should use Stripe webhooks: https://dashboard.stripe.com/test/webhooks
I just want to add a few functions. That's it
Like console.log or set states
I'm currently testing it on localhost:3000
Does this work?
I don't think so, as soon as the payment in successful you will be redirected to the success page.
Fo this you need to use Stripe webhooks.
Can you assist me in how to use them? I'm working on localhost right now.
Everything is explained here: https://stripe.com/docs/webhooks
Let me know if you have specific questions!
Sure