#rich4982
1 messages · Page 1 of 1 (latest)
Hi there!
Hi Soma!
When a payment is made using the Pricing Table, then you should get multiple webhook events. The most important one being checkout.session.completed.
I was expecting to see something in the dev logs here:
I have a checkout.session object in payment_pages but there's only payment details in there - nothing about subscription
You will see it in the events log here: https://dashboard.stripe.com/test/events
And if you are not fmailiar with webhooks, then I recommend reading this: https://stripe.com/docs/webhooks
Ah I see! I didn't know that's where I could access the details!
I have set up a webhook endpoint which is listening for:
2023-10-31 11:48:58 --> checkout.session.completed [evt_1O7GRKDOX5iVTDHWsv8nBva0]
2023-10-31 11:48:58 <-- [200] POST http://localhost:3000/api/webhooks/stripe [evt_1O7GRKDOX5iVTDHWsv8nBva0]
thank you - now I know where to find the objects I can hunt for the details I need!
Thank you!
I actually have one more quick question - is it possible to set up a return url using the embeded payment table, as currently it just shows the payments success screen without returning the user
Yes you can:
Brill! Yo've been very helpful!
Happy to help 🙂