Stripe React Native:商家显示名称不能为空字符串

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

我正在尝试将 Stripe React Native SDK 实施到我的 React Native 应用程序,但是当我向用户显示付款 sheet 时出现错误。

我遵循了 stripe 网站 (https://stripe.com/docs/payments/accept-a-payment?platform=react-native) 上的教程,但我不断收到以下错误:

{"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}

我没有找到讨论这个问题的论坛。

提前致谢

其中一个 parameters 似乎没有设置。

    fun configureWithSetupIntent(
        setupIntentClientSecret: String,
        configuration: Configuration? = null,
        callback: ConfigCallback
    )

我遇到了同样的错误。重新检查文档后,我发现在初始化条带支付时缺少“merchantDisplayName”参数 sheet。

const {error} = await initPaymentSheet({
  paymentIntentClientSecret: client_secret,
  googlePay: true,
  merchantDisplayName: 'Merchant Name',
});