stripe-react-native
                                
                                 stripe-react-native copied to clipboard
                                
                                    stripe-react-native copied to clipboard
                            
                            
                            
                        Finalize payment on server: Bug on Android
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.
- Tap "Pay Now"
- Enter card details that will fail, e.g. 4000000000000002
- After the error appears that the card was declined, IN THE SAME PAYMENT SHEET update your card details to: 4242424242424242
- 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
Any update on this issue? I am also facing the same with the same card details mentioned by @ryonwhyte