#Kaushal

1 messages · Page 1 of 1 (latest)

slow wagonBOT
simple crow
#

Hi what do you need help with?

winged vapor
#

I am using stripe sdk for google pay API integration in android,

  1. when the payment sheet launches i select a card proceed for a payment then the 3DS gateway webview opens up
  2. If i close the webview and come back to my app and try the same thing again it gives me error, the 3DS webview screen doesnt appear
#

The error is : card was declined

gritty parcel
#

can you paste that req_123 ID here?

winged vapor
#

why this is happening and its not giving me the decline code to understand the cause

#

ya

#

req_BvNUw7VfAz9JbT

gritty parcel
#

its not giving me the decline code to understand the cause
what is the exception object in your Kotlin/Java code? I believe it should be on the error object it passes to you

winged vapor
#

yes its the same thing you are seeing on the screen shot attached

#

I am printing it by using this code : ((GooglePayLauncher.Result.Failed) result).getError()

gritty parcel
#

as for

why this is happening
it is a decline in live mode really, it happens, not much beyond that that I know. Banks can decline cards for any number of reasons really

#

does the getError() have other properties you can access?

#

like a declineCode property or something

winged vapor
#

no

#

it has a getCause(), but it was null

#

none of them helped me

gritty parcel
#

ah I see, yeah it might be that in this case, the error object sent back on that callback isn't formatted correctly. Looking a bit more to wrap my head around how Android throwable's work and where these live on another example in the SDK

winged vapor
#

cool, appreciate if you could give me some more info about the error

#

thanks

gritty parcel
#

yeah I'm not sure why decline code is missing on that

#

but as for "why" it declined, there really is no info I can give, all we know is that we tried to do a livemode charge and the issuing bank declined it really

winged vapor
#

ok so the decline is from the bank side , not from the stripe side or GPay side ?

gritty parcel
#

yes

#

the bank's side

#

all GPay does is create a PaymentMethod (which it did here)

and what Stripe does is try to charge that PaymentMethod

and the issuing bank returned a decline

#

one of two options, bank can tell Stripe success/decline

winged vapor
#

fine, thanks again @gritty parcel