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

Finalize payment on server: Bug on Android #1617

Open
ryonwhyte opened this issue Feb 28, 2024 · 1 comment
Open

Finalize payment on server: Bug on Android #1617

ryonwhyte opened this issue Feb 28, 2024 · 1 comment

Comments

@ryonwhyte
Copy link

ryonwhyte commented Feb 28, 2024

Describe the bug
When using the finalize payment on server integration method, https://docs.stripe.com/payments/finalize-payments-on-the-server?integration=paymentsheet
There is a bug that appears on android - After the user enters an incorrect card details and attempts to pay, the payment sheet gives an error which is good, the problem is, all subsequent attempts fail in that payment sheet instance. You have to close it and reopen it and enter the new card details for it to work again

To Reproduce
Steps to reproduce the behavior:
Here is the entire code for testing (very short 1 file: 150 lines): https://pastebin.com/ATet43qF. I added the create intent (that should be server side) for convenience to the client side code.

  1. Tap "Pay Now"
  2. Enter card details that will fail, e.g. 4000000000000002
  3. After the error appears that the card was declined, IN THE SAME PAYMENT SHEET update your card details to: 4242424242424242
  4. And Submit. You will notice that the attempt fail with error "Something went wrong" and all other attempts will also fail

Expected behavior
The bug does not appear on iOS. The payment sheet should simply accept and process the new card and show success.

Screenshots/Video
Here is a video of my attempt: https://streamable.com/53rl9g

Smartphone (please complete the following information):

  • Device: Samsung S23 and Samsung s9+
  • OS: Android
  • Version: I tested in Android 10 and 14 on physical devices

Additional context
The error only appears on android from the testing I did (which is a lot). I notified Stripe of the issue and have been following up for about 3 months now. I am not sure if they can't replicate, or I am doing something wrong, so I am posting here in case some good Samaritan had the issue and figured it out. NOTE: I USE EXPO and have tried expo version as well as latest version of the package

@dippathak1912
Copy link

Any update on this issue? I am also facing the same with the same card details mentioned by @ryonwhyte

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

2 participants