Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple Pay crash: [General] Payment request is invalid: Error Domain=PKPassKitErrorDomain Code=1 "(null)" #1461

Closed
Ariandr opened this issue Dec 10, 2019 · 1 comment

Comments

@Ariandr
Copy link

Ariandr commented Dec 10, 2019

Summary

Hello, we get a crash [General] Payment request is invalid: Error Domain=PKPassKitErrorDomain Code=1 "(null)" on iOS when trying to pay using Apple Pay as a payment method.

Screenshot at Dec 10 14-19-13

The merchant identifier is correct, the certificate in Stripe console is valid, the capability is enabled in Xcode.
We use STPPaymentContext and Stripe UI to select/add payment methods.

photo_2019-12-10 14 37 23

Code to reproduce

Call this when Apple Pay payment method is selected.
paymentContext.requestPayment()

iOS version

iOS 12.4.1-13.2.3, both real devices and simulators

Installation method

Cocoapods

SDK version

18.3.0

Other information

The integration was done according to this guide: https://stripe.com/docs/mobile/ios/basic#set-up-apple-pay

For testing we created a sandbox user according to this guide from Apple (https://developer.apple.com/apple-pay/sandbox-testing/), set up test the wallet and card
(FPAN: 5204 2477 5000 1471
Expiration Date: 11/2022
CVC: 111).

Also tried testing on a real Apple Id with the real wallet and cards, the same error every single time.

What can be the issue? Do we need to setup anything else which is not mentioned in the Basic Integration guide?

@Ariandr
Copy link
Author

Ariandr commented Dec 10, 2019

Found a workaround here, though it's not perfect.
stripe-archive/ApplePayStubs#31

@Ariandr Ariandr closed this as completed Dec 10, 2019
kgaidis-stripe added a commit that referenced this issue Oct 31, 2022
Financial Connections: Success Pane Polish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant