Subscription booking failing when using 3DS Auth card #2243
Unanswered
KrishnaSangaleKD
asked this question in
Q&A
Replies: 1 comment
-
|
I can confirm that 3DS works (just checked it today on paymentsheet and also the web payment element). I would check your backend implementation because it looks like the paymentintent is created with a different environment than the client. Make sure that both the serverkey and the clientkey are off the same environment (for example sandbox) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
Subscription booking fails on mobile when 3DS auth required card added for payment.
To Reproduce
Steps to reproduce the behavior:
// receiving paymentIntentClientSecret and paymentMethodId from api final respJson = jsonDecode(response.body); if (respJson['result']['requires3DS'] == true) { final clientSecret = respJson['result']['clientSecret']; final paymentMethodId = respJson['result']['paymentMethodId']; await handleSubscription3DS(secretKey, paymentMethodId); }Ex: clientSecret :- "pi_3SGZ9CCUgqGZPIgM08hxb3R6_secret_dYARGobvgSOQi6Q1NOdNHCooE"
paymentMethodId :- "pm_1SGZ9ACUgqGZPIgMkXgRkFf2"
and then I'm passing this value to this flutter code :-
// Confirm the payment with 3DS await Stripe.instance.confirmPayment( paymentIntentClientSecret: clientSecret, data: PaymentMethodParams.cardFromMethodId( paymentMethodData: PaymentMethodDataCardFromMethod( paymentMethodId: paymentMethodId, ), ), );when debugger tries to execute this code it's throwing stripe error:-
_$LocalizedErrorMessageImpl (LocalizedErrorMessage(code: FailureCode.Failed, localizedMessage: There was an unexpected error -- try again in a few seconds, message: No such payment_intent: 'pi_3SFXbVL09zsvkIh81pf501Vs', stripeErrorCode: resource_missing, declineCode: null, type: invalid_request_error))and payment status show incomplete on stripe dashboard
Expected behavior
It should handle 3DS auth while booking subscription if auth card is added.
Smartphone / tablet
Additional context
I've tried in-app-paymentSheet flow as well at the end I'm getting same error :-
message: No such payment_intent: 'pi_3SFXbVL09zsvkIh81pf501Vs' with
Beta Was this translation helpful? Give feedback.
All reactions