#Mukesh Gupta
1 messages · Page 1 of 1 (latest)
so after entering the card details press Pay, and then pressing back button
it is giving error but the payment is also succeeded
any help ?
I need more info
Can you share screenshots, object id's, code etc
Not sure what you mean
so I am calling presentPaymentSheet method to show the card screen
and then user enters card details and press pay button of the card screen
then presses hardware back button of android phone
then it gives error payment failed
that is correct, but eventually the payment is successful on console
I think it's because you press pay, you submit the info to Stripe and the request has already been sent to the server at that point
yes
so is there any way to avoid this issue ?
i tried to block back button too
but it is not happening for stripe, even for normal screen it is blocked
I'm not an android expert unfortunately, but if you cannot handle blocking the back button in your app, then I don't think there's a way to avoid. It's similar to a webbrowser. There's always the danger the customer will accidentally close the tab or press back button in the middle of submitting payment
blocking back button is handled for normal screen but not blocked for stripe only
so is there any way ?
because this is something not correct
as user presses back button getting error and payment is processed too
that error message is coming from stripe too
so one way it is giving error and other way it charging
Can I show it tomorrow ? as i need to connect with my client
You can come back any time
Just post in the main channel because this thread will be archived by then
then there will be diff person will chat ?