I am trying to implement the Stripe React Native SDK to my React Native application but I am getting an error when I present the payment sheet to the user.
I followed the tutorial on stripe's website (https://stripe.com/docs/payments/accept-a-payment?platform=react-native) but I keep getting the following error:
{"code": "Failed", "declineCode": null, "localizedMessage": "When a Configuration is passed to
PaymentSheet, the Merchant display name cannot be an empty string.", "message": "When a
Configuration is passed to PaymentSheet, the Merchant display name cannot be an empty string.",
"stripeErrorCode": null, "type": null}
I did not find any forum talking about this issue.
Thank you in advance
I faced the same error. After rechecking the docs, I found out "merchantDisplayName" param was missing when initialising stripe payment sheet.
const {error} = await initPaymentSheet({
paymentIntentClientSecret: client_secret,
googlePay: true,
merchantDisplayName: 'Merchant Name',
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With