#rohan09
1 messages ยท Page 1 of 1 (latest)
Hi ๐
Hi ๐
Can you share the ID of the Payment Intent?
Thanks, taking a look
Okay so you create the PI and use the Payment Sheet to confirm with the test card that fails.
Yes and reattempt to make the payment success with a different card
Okay and can you describe the last bullet point a bit more clearly?
Yes, sure
Oh is it that the Payment Failed toast gets displayed?
- The payment is succeeded and now the Payment Sheet Result is returned
- But first it is failed as you can see in the logs
- And then it's completed
- So for the failed state, the code gets executed which actually reset some state
- And due to this when completed code block is called, the state was reset and because of that my functions in Completed block doesn't gets called
Okay so you are referring to the callbacks for the different PaymentResult states?
Yes that makes sense. Since the PaymentSheet has not closed so the Result should have been updated to reflect the .Completed state when the callback is triggered
Yes correct
Also, if I want to handle this by closing the sheet on errors like this, that also I can't do in Android SDK
Check this thread for reference
#dev-help message
Right, I remember that
I'm trying to repro the issue and get some logs but my Android apps are being unhelpful
I think you can reproduce the same by following the video
Ohh ok you were talking about some other app
Right but I need a running Android app, that is what I'm trying to spin up
Ok got it
Let me know when you are able to reproduce and find potential solutions for it
Unfortunately my emulators keep breaking
Can you tell me what version of the Stripe Android SDK you are using?
Hello @flat willow? Can you tell me what version of Stripe Android SDK you are using?
Thanks, yeah we found it on the /confirm requests. Still working to repro
Ok sure, let me know if I can help with something
Sure thing, will do
Hi there ๐ taking over, as my colleague needs to step away
Just letting you know we're still looking into this in the background. Are you still with us?
HI @flat willow
We are unable to reproduce this error on our end. However, we did find some internal discussion that suggests the redirect occurring during your payment sheet flow may be causing an issue. Our attempts to repro did not perform this redirect
Yes I'm still there @magic goblet
Ok @honest ridge did you try reproducing it with 20.11.0 ?
Can it be a Fragment Issue ?
Like when Visa checkout opens/ hooks gets called, the app goes in background and there some error state is preserved
We used the exact card you were using and went through the simulated Visa authentication but returned to the PaymentSheet with the correct state
There is an odd redirect occurring before the 3DS, when you enter the card number with insufficient funds
Ok got it, let me try recreating in a separate project and get back here.
Will provide a GitHub link, if I will be able to reproduce it in a separate project.
Or if you can help me understand what I am doing wrong by understanding our code in a call
Does any of the above work for you @honest ridge
We are not available for calls. However, I would recommend you create the reproduction and write in to Support so we can better attempt to reproduce this error. I will keep an eye out for this ticket
Understood thank you for the help. Will try to reproduce this at my end in a separate project and reach out here as the current project on which I am working on is private one
Thank you so much
Happy to help. ๐