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

[feat] Return error type from native sdk

Open talaikis opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe.

confirmSetupInten returns {"code": "Failed", "declineCode": null, "localizedMessage": "....", "message": "...", "stripeErrorCode": null, "type": null}, i.e. w/o providing native sdk type, for example stripe_failure_reason_authentication

Describe the solution you'd like

Errors should include native sdk errors type.

talaikis avatar Aug 19 '23 19:08 talaikis

I am very interested in this issue. Can someone please help me understand how to fix it !

NicolasFreshmile avatar Sep 29 '23 13:09 NicolasFreshmile

I've used values from Android SDK https://github.com/stripe/stripe-android/blob/294ce71f57564c9ff1fa4b4ad94403f4376cb586/payments-core/res/values/strings.xml#L11

talaikis avatar Sep 29 '23 17:09 talaikis