#Mukesh Gupta

1 messages · Page 1 of 1 (latest)

hollow saffronBOT
upper ether
#

What's the issue?

#

Let's chat in this thread

neat hound
#

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 ?

upper ether
#

I need more info

#

Can you share screenshots, object id's, code etc

#

Not sure what you mean

neat hound
#

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

upper ether
#

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

neat hound
#

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

upper ether
#

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

neat hound
#

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

upper ether
#

Can you share a screenshot

#

I need to see exactly what you are talking about

neat hound
#

Can I show it tomorrow ? as i need to connect with my client

upper ether
#

You can come back any time

#

Just post in the main channel because this thread will be archived by then

neat hound
#

then there will be diff person will chat ?