#viraths-applepay
1 messages · Page 1 of 1 (latest)
I am using an intent which is already confirmed, so Stripe send an error on confirmCardPayment saying the intent is already confirmed.
I don't think Stripe SDK supports abort functionality. https://developer.mozilla.org/en-US/docs/Web/API/PaymentRequest/abort
ah I see
I am afraid when it get into Apple Sheet, it left Javascript/browser and being controlled by iOS or MacOS
And stripe.js can't really call it back
Only customer can cancel it, then stripe.js will receive a cancel event
Ahh actually I have to call event.complete('fail) when the payment fail or event.complete('success') on successful.
to discard the AppleSheet?
Oh you were right!
It was in the example in the docs. But I completely missed it. My bad.