Stripe Connect – 启用 Apple Pay?

Anc*_*nek 7 javascript node.js stripe-payments

我正在尝试让 Stripe Connect 帐户使用PaymentElement. 到目前为止,付款都是通过常规信用卡输入进行的,但现在我想启用 Apple Pay。

因此,我将域名添加到我的主 Stripe 帐户配置中。这似乎还不够,所以我还使用他们的 API 添加了特定 Connect 帐户的域名:

await stripe.applePayDomains.create(
  { domain_name: 'my_domain_here.com' },
  { stripeAccount: 'stripe_connect_account_id_here' },
);
Run Code Online (Sandbox Code Playgroud)

当我现在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.
Run Code Online (Sandbox Code Playgroud)

该卡位于我的钱包中,当为带有 的帐户列出它们时,域是可见的stripe.applePayDomains.list({ stripeAccount: 'stripe_connect_account_id_here' })

当我尝试在 iOS 设备上访问它时,会出现 ApplePay 选项,但触发后stripe.confirmPayment会使 iOS 付款抽屉出现约 1 秒,然后立即消失。

我在这里缺少什么?

Anc*_*nek 1

因此,截至本文发布之日,这确实是测试模式中的默认行为。在生产环境中一切正常。

我不完全确定 Stripe 是否会(甚至可以)解决这个问题。