我正在尝试将 Stripe React Native SDK 实现到我的 React Native 应用程序中,但是当我向用户出示付款单时出现错误。
我遵循了 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}
我没有找到任何讨论这个问题的论坛。
提前致谢
最佳答案
我遇到了同样的错误。重新检查文档后,我发现在初始化 strip 付款表时缺少“merchantDisplayName”参数。
const {error} = await initPaymentSheet({
paymentIntentClientSecret: client_secret,
googlePay: true,
merchantDisplayName: 'Merchant Name',
});
关于reactjs - Stripe react native : Merchant display name cannot be an empty string,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69824403/
相关文章:
python - 仅当 Pandas 中的所有值均为 0 时,才将 0 替换为选定列的 NaN
java - Spring Boot 服务层 : Unit or Integration tests
f# - Dapper F# - A Parameterless default 一个无参数的默认构
java - 如何在 Java 中为 5x5 二维数组正确使用制表符空间?
.net-core - SSE 和 AVX 的 MoveMask 的目的是什么
rust - 编写具有适用于 Vec 和数组 [] 的特征的 Rust 函数
javascript - React Native Button onPress 函数示例
python - 将多列的不同值组合成 Polars 中的一列