stripe-react-native
stripe-react-native copied to clipboard
Error messages not localized on Android (always in english)
Describe the bug
On Android only the method confirmPayment always returns error messages in english.
Returned object:
{"code": "Failed", "declineCode": null, "localizedMessage": "The provided PaymentMethod has failed authentication. You can provide payment_method_data or a new PaymentMethod to attempt to fulfill this PaymentIntent again.", "message": "The provided PaymentMethod has failed authentication. You can provide payment_method_data or a new PaymentMethod to attempt to fulfill this PaymentIntent again.", "stripeErrorCode": "payment_intent_authentication_failure", "type": "invalid_request_error"}
It works fine for iOs.
To Reproduce Steps to reproduce the behavior:
- Set the device locale to french
- Select a 3DS credit card
- Execute
confirmPaymentwith the client secret - Click on 'Fail authentification' on the 3D Secure interface
- See the error returned :
{"code": "Failed", "declineCode": null, "localizedMessage": "The provided PaymentMethod has failed authentication. You can provide payment_method_data or a new PaymentMethod to attempt to fulfill this PaymentIntent again.", "message": "The provided PaymentMethod has failed authentication. You can provide payment_method_data or a new PaymentMethod to attempt to fulfill this PaymentIntent again.", "stripeErrorCode": "payment_intent_authentication_failure", "type": "invalid_request_error"}
Expected behavior Error messages in Android should be localized as it is supposed to be.
Screenshots N/A
Smartphone (please complete the following information):
- Device: SM-G960U
- Android version 10
- Version lib 0.2.3 Device locale is french