#Kaushal
1 messages · Page 1 of 1 (latest)
Hi what do you need help with?
I am using stripe sdk for google pay API integration in android,
- when the payment sheet launches i select a card proceed for a payment then the 3DS gateway webview opens up
- 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
can you paste that req_123 ID here?
why this is happening and its not giving me the decline code to understand the cause
ya
req_BvNUw7VfAz9JbT
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
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()
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
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
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
ok so the decline is from the bank side , not from the stripe side or GPay side ?
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
fine, thanks again @gritty parcel