gpt4 book ai didi

javascript - Stripe Connect – 启用 Apple Pay?

转载 作者:行者123 更新时间:2023-12-05 00:32:28 25 4
gpt4 key购买 nike

我正在尝试制作 Stripe 连接账户 使用 PaymentElement 在我的应用程序中接受付款.到目前为止,付款是通过常规信用卡输入进行的,但现在我想启用 Apple Pay。
因此,我将我的域名添加到我的主要 Stripe 帐户配置中。似乎这还不够,所以我还使用他们的 API 为特定的 Connect 帐户添加了域名:

await stripe.applePayDomains.create(
{ domain_name: 'my_domain_here.com' },
{ stripeAccount: 'stripe_connect_account_id_here' },
);
当我现在访问我的 PaymentElement在支持 Apple Pay 的 macOS 上组件 Safari(经过测试并在其他网站上运行),ApplePay 选项未出现,并且我收到以下控制台警告:
Either you do not have a card saved to your Wallet or the current domain (my_domain_here.com) or stripeAccount parameter (stripe_connect_account_id_here) is not registered for Apple Pay.
该卡在我的钱包中,当为 stripe.applePayDomains.list({ stripeAccount: 'stripe_connect_account_id_here' }) 的帐户列出它们时,域是可见的.
当我尝试在我的 iOS 设备上访问它时,会出现 ApplePay 选项,但会触发 stripe.confirmPayment让 iOS 支付抽屉出现约 1 秒钟,然后立即消失。
我在这里想念什么?

最佳答案

因此,截至本文发布之日,这确实是测试模式中的默认行为。在生产环境中一切正常。
我不完全确定 Stripe 是否会(甚至可以)解决这个问题。

关于javascript - Stripe Connect – 启用 Apple Pay?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70809397/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com