#viraths-applepay

1 messages · Page 1 of 1 (latest)

bold scroll
#

Can you elaborate on 4, why it's expected with error?

half merlin
#

Ahh I am testing it.

#

In this case customer is me testing. 😁

bold scroll
#

Yeah I know, but how did you make it failed?

#

During the ApplePay sheet

half merlin
#

I am using an intent which is already confirmed, so Stripe send an error on confirmCardPayment saying the intent is already confirmed.

bold scroll
#

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

half merlin
#

Ahh actually I have to call event.complete('fail) when the payment fail or event.complete('success') on successful.

bold scroll
#

to discard the AppleSheet?

half merlin
#

Yes

bold scroll
#

Oh you were right!

half merlin
#

It was in the example in the docs. But I completely missed it. My bad.