#rohan09

1 messages ยท Page 1 of 1 (latest)

sharp rampartBOT
honest ridge
#

Hi ๐Ÿ‘‹

flat willow
#

Hi ๐Ÿ‘‹

honest ridge
#

Can you share the ID of the Payment Intent?

flat willow
#

Sure

#

@honest ridge pi_3NIYgRSIO4953zVX0tewUcbR

honest ridge
#

Thanks, taking a look

#

Okay so you create the PI and use the Payment Sheet to confirm with the test card that fails.

flat willow
#

Yes and reattempt to make the payment success with a different card

honest ridge
#

Okay and can you describe the last bullet point a bit more clearly?

flat willow
#

Yes, sure

sharp rampartBOT
honest ridge
#

Oh is it that the Payment Failed toast gets displayed?

flat willow
#
  • 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
honest ridge
#

Okay so you are referring to the callbacks for the different PaymentResult states?

flat willow
#

Correct

#

And ideally PaymentSheetResult.Completed should have called not failed one

honest ridge
#

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

flat willow
#

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

honest ridge
#

Right, I remember that

#

I'm trying to repro the issue and get some logs but my Android apps are being unhelpful

flat willow
#

I think you can reproduce the same by following the video

#

Ohh ok you were talking about some other app

honest ridge
#

Right but I need a running Android app, that is what I'm trying to spin up

flat willow
#

Ok got it

#

Let me know when you are able to reproduce and find potential solutions for it

honest ridge
#

Unfortunately my emulators keep breaking

honest ridge
#

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?

flat willow
#

I'm using 20.11.0

#

@honest ridge

honest ridge
#

Thanks, yeah we found it on the /confirm requests. Still working to repro

flat willow
#

Ok sure, let me know if I can help with something

honest ridge
#

Sure thing, will do

sharp rampartBOT
magic goblet
#

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?

honest ridge
#

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

flat willow
#

Yes I'm still there @magic goblet

#

Ok @honest ridge did you try reproducing it with 20.11.0 ?

honest ridge
#

Yes

#

And we could not trigger this error

flat willow
#

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

honest ridge
#

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

flat willow
#

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

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

flat willow
#

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

honest ridge
#

Happy to help. ๐Ÿ™‚

sharp rampartBOT