stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Add a 3DS specific error in the React Native SDK

Open haor1 opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe. I am using the react native SDK and using the test 3DS card for failures. The failure that is being returned from the sdk does not have a stripeErrorCode, the only identifying property is a message that I'm sure can change. -this is everything I can see in the error: code: "Failed" declineCode: null localizedMessage: "We are unable to authenticate your payment method. Please choose a different payment method and try again." message: "We are unable to authenticate your payment method. Please choose a different payment method and try again." stripeErrorCode: null type: null

Describe the solution you'd like My application needs a way to identify an arbitrary error as a 3DS error.

The solution I'd like to see is not that the 'message' itself contains the string "3DS" but instead that something other than the message property can be used to identify the error as a 3DS failure, specifically the stripeErrorCode.

For example, rather than showing "stripeErrorCode: null" as in the above, we would like to see something like "stripeErrorCode: 3DS_failure"

Describe alternatives you've considered None at the moment, we were wondering if this could be added as a default feature in the React Native SDK.

Additional context N/A

haor1 avatar Mar 03 '22 11:03 haor1

Hello,

I also have the same issue, any news about a future development ?

Thank you

Ben

BenjaminVergne avatar Feb 07 '24 08:02 BenjaminVergne