#walidmh_unexpected

1 messages ยท Page 1 of 1 (latest)

spiral parrotBOT
#

๐Ÿ‘‹ 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.

viral light
#

Hi, let me help you with this.

#

Could you please share the PaymentIntent ID pi_xxx?

elder wing
#

Hello pi_3QICH4EWChkUS7RH1WBDz7IS

viral light
elder wing
#

Yes of course

viral light
#

Where do you see the { "code": "Failed" ... error exactly?

elder wing
#

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

viral light
#

And where did you expect to see the error instead?

elder wing
#

declineCode && stripeErrorCode && type must be filled

#

When we use a card without 3DS it's correctly filled

spiral parrotBOT
rustic bronze
#

What's the exact shape of the JSON response you get back

elder wing
#

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}

rustic bronze
#

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

elder wing
#

So we can't use error mapping to inform the customer in case of insufficient_funds per exemple

rustic bronze
#

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

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods and redirects.

elder wing
#

the decline cards without 3DS return the error with the right fields

rustic bronze
#

OK, then as I stated earlier we maybe don't return error codes for the 3DS test cards

elder wing
#

Can we have a confirm for this information please ?

rustic bronze
#

Can you test with this card please 4000002760003184