#sfd
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
hi
would you mind elaborating a bit more
and describing the current behavior, and what's expected?
yeah, when buying a product from our website before redirecting to the stripe form to pay we create the session and save the Pi_ id
then i expect the webhook to return when successfully payed it to change order status to completed
recently started to fail sometimes, because the webhook returns a different pi
you shouldn't rely on the PI ID
instead you can save the Checkout Session ID
and listen to the checkout.session.completed event
ch_xxxx like?
ok, so this is why we get a different pi, with the right metadata. (i'm sending via metadata our order id.) you suggest using the checkout session anyway?
yes
here we explain more how to do it https://stripe.com/docs/payments/checkout/fulfill-orders
if ($event->type === 'payment_intent.succeeded') {
ok right now i have this, i will make the modifications to save and check the session.
Thank you for the help
sure let me know if you need any more help
i will! thank you
hi, is there a way to have all the webhooks events in the last 3 months for example? i need to check all the payments to be sure i didn't miss any
https://dashboard.stripe.com/webhooks/ i'm trying to use the dashboard but selecting my only webhook i cannot find anything, that show more than a week
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
you can use this API https://stripe.com/docs/api/events/list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you very much!