Can't use stripe on ios
See original GitHub issueI tried to integrate the stripe plugin in our ionic app.
Im getting a “paymentSheetFailed” error on iOS But its works on android. I added a print statement to the PaymentSheetExecutor.swift file to get more informations about the error.
The error message is:
Error Domain=com.stripe.lib Code=50 “Unerwarteter Fehler – versuchen Sie es in ein paar Sekunden noch einmal.” UserInfo={NSLocalizedDescription=Unerwarteter Fehler – versuchen Sie es in ein paar Sekunden noch einmal.,
com.stripe.lib:ErrorMessageKey=No valid API key provided. Set STPAPIClient.shared().publishableKey
to your publishable key, which you can find here: https://stripe.com/docs/keys, com.stripe.lib:StripeErrorCodeKey=,com.stripe.lib:StripeErrorTypeKey=invalid_request_error} #
To Reproduce Our integration:
Expected behavior Open the payment sheet
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: iOS: 14.5
- Browser Chrome and Safari
- Version 3.0.0
Smartphone (please complete the following information):
- Device: iPhone8
- OS: iOS 14.5
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (8 by maintainers)
Top GitHub Comments
こんにちはみなさん
we managed to make it work. It was kind of our fault because the ephemeralKey was wrong. It’s still interesting that it works on android. Is the ephemeral key only for iOS?
どうもありがとう. さよなら
Good news! the ephemeral key use android, too. This may stripe specification. https://github.com/capacitor-community/stripe/blob/master/android/src/main/java/com/getcapacitor/community/stripe/paymentsheet/PaymentSheetExecutor.java#L58