#burt-checkout
1 messages · Page 1 of 1 (latest)
how do I save the customers payment id on my client side to be saved?
Can you elaborate on what you mean by "save"?
On my client side I have my own API that I’m using to create Orders completely separate from stripe. But, in the case that someone has a problem with their order, their Order object needs to have the payment_intent_id saved from stripe to the call the Stripe API for a refund from the client side
Essentially I’d like to be able to save the payment intent id on my client side for refund purposes, but I’m unsure how to get it when I’m using stripes simple hosted checkout.
I think you would have to set up a webhook endpoint that handles checkout.session.completed events. You can get the Payment Intent ID from there for issuing refunds
https://stripe.com/docs/api/events/types#event_types-checkout.session.completed