#walidmh_unexpected
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1304018605830180866
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello pi_3QICH4EWChkUS7RH1WBDz7IS
Did you use one of the test cards for this? https://stripe.com/docs/testing
Only test cards work for Test mode transactions.
Yes of course
This one? 4000008400001629
In the description it explains why and how it is supposed to fail: https://docs.stripe.com/testing#three-ds-cards
Where do you see the { "code": "Failed" ... error exactly?
It's the response of the confirmPayment in stripe react native
export declare type ConfirmPaymentResult = { paymentIntent: PaymentIntent.Result; error?: undefined; } | { paymentIntent?: undefined; error: StripeError<ConfirmPaymentError>; };
the error object
And where did you expect to see the error instead?
declineCode && stripeErrorCode && type must be filled
When we use a card without 3DS it's correctly filled
What's the exact shape of the JSON response you get back
Should have this shape: https://stripe.dev/stripe-react-native/api-reference/interfaces/StripeError.html
Documentation for @stripe/stripe-react-native
Yes it's in my first message
{"code": "Failed", "declineCode": null, "localizedMessage": "Your card was declined", "message": "Your card was declined", "stripeErrorCode": null, "type": null}
Yeah I guess we don't surface a decline code for that specific test code for some reason. That might be the case for all 3DS โ sounds like an issue to raise on the RN repo
So we can't use error mapping to inform the customer in case of insufficient_funds per exemple
Well in live payments those fields would be populated if we have that info. My guess is we just don't populate that info for the 3DS test cards for some reason. Did you try a decline card and does it return an error? https://docs.stripe.com/testing#declined-payments
the decline cards without 3DS return the error with the right fields
OK, then as I stated earlier we maybe don't return error codes for the 3DS test cards
Can we have a confirm for this information please ?
Can you test with this card please 4000002760003184