xcode Error not caught when paying via apple pay on ios simulator #838
DavidEcclesPH
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi guys, I noticed an edge case when trying to make a payment from ios simulator with Stripe live publishable keys via:
await Stripe.instance.confirmApplePayPayment(secret);
xcode throws an error that is not currently caught so I get a hard crash, despite the code being executed from within a try/catch. The error thrown is:
"StripeApplePay/Token+API.swift:60: Assertion failed: The pk_token is empty. Using Apple Pay with an iOS Simulator while not in Stripe Test Mode will always fail."
Whether or not this should be possible, should the error be re-thrown so we can handle it gracefully?
Cheers
David
Beta Was this translation helpful? Give feedback.
All reactions