Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stripe React Native: Merchant display name cannot be an empty string

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

like image 569
blouuuu Avatar asked Aug 12 '26 18:08

blouuuu


1 Answers

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',
});
like image 125
Yehya Avatar answered Aug 14 '26 15:08

Yehya