#nullday-prbutton
1 messages · Page 1 of 1 (latest)
Does this mean that user can cancel the payment and get their money back for the order right from their browser interface?
hello, so basically that part is saying you first get a paymentmethod event which you typically use to confirm a PaymentIntent
it is adding that if you get a cancel event after that paymentmethod event, your code might be displaying some UI like "you canceled your charge etc" after your code has created a Charge. So it is recommending that if you are doing that, to also Refund that Charge. You could also show some UI like "hey looks like you canceled your browser payment sheet, would you like to cancel the order you just created?" and then refund the charge
Or the actual refund will have to be done from my end anyway?
your end
Got you. Thank you! I love Stripe for such amazing support and passionate people.
np! glad to have helped!
What if on my payment page user can change something that affects final price? Should I call paymentRequest() constructor and attach all listeners and stuff to this new object every time amount changes? Or is there a better way to handle that?
Oh, there is paymentRequest.update(). So, nevermind 🙂