#akshay-close-paymentsheet
1 messages · Page 1 of 1 (latest)
@inland canyon any chance you could provide more specific details about your code, what you mean, what is and isn't working, which doc you follow, where you're stuck, etc.?
I think the error is me not knowing how to handle closing the payment sheet interface
So if there's any documentation on what events are triggered when I click Cancel in Google Pay, for example, then i can follow that
you can't force close that UI, only the customer can
so I'm not understanding what you are trying to solve sadly
@inland canyon we can continue chatting here!
Awesome thanks
To clarify, I am not trying to close the browser payment interface myself. i want to know what happens when the customer closes it. Does that trigger any events, and if so, how can I gracefully handle them? Currently I'm getting some issues with inaccurate prices and some of my backend service calls failing, so I just want to know if there's documentation for this
I believe that should trigger the cancel event on the PaymentRequest (see https://stripe.com/docs/js/payment_request/events/on_cancel)
But it doesn't have any object that comes with the event
What do people usually do on this cancel event
What object would you be expecting to come with this event?