-
Notifications
You must be signed in to change notification settings - Fork 81
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
Payment Sheet Failed #89
Comments
Are you using the ephemeral key? If yes, then you have to use the id of the ephemeralResponse |
Hi @PaintedShepherd , yes I am using the ephemeral key I am manually setting it at the moment for testing purposes. |
@max1018 First, you need to isolate whether the problem is with this plugin or something else. For that we are providing a demo. Please clone this repository and try https://github.com/capacitor-community/stripe/tree/master/demo/angular |
@rdlabo , after i download the repo what commands do i need to run to install dependencies and use this on a simulator? |
Please run |
Sorry, I forgot one command: |
The demo is working on my test device... not sure why its not in my application. |
Maybe this is your backend api issue. Please check https://stripe.com/docs/payments/accept-a-payment?platform=ios#add-server-endpoint , and if not resolve, please ask stripe team. |
I am manually entering the information so it shouldn't be my backend. Also it works on web. What reason would the paysheet pop up and then immediately fail ? |
Manually? You should create by code: https://github.com/capacitor-community/stripe/blob/master/demo/server/src/app.controller.ts#L23-L26 The web will open the PaymentSheet even if the key is wrong, but iOS does not seem to. This is a Stripe specification, so please ask Stripe. |
I create by code on the backend but then take response and manually enter in |
When trying to use the plugin on an iOS device or simulator I am getting a payment sheet failed message. However the code works just fine on web.
The text was updated successfully, but these errors were encountered: