【发布时间】:2019-08-29 18:34:03
【问题描述】:
我正在尝试将direct-charge flow 的收费从与连接客户的支付意图迁移。
我有处理stripe.createPaymentMethod 并将paymentMethodId 发送到服务器的客户端代码。
我的服务器端代码如下所示:
const intent = await stripe.paymentIntents.create(
{
amount: parseInt(amount),
currency,
confirmation_method: 'manual',
confirm: true,
metadata,
payment_method: id,
customer: customerId,
off_session: true,
},
{
stripe_account: restaurantStripeAccountId,
},
);
我将 stripe_account 添加为我的关联客户的帐户 - acct_xxxx
现在在测试时,没有 3D 安全的卡可以正常工作 - 42424242...
但是具有 3D 安全性的卡片,例如来自 here 的 4000000000003220
我明白了:
Error: Your card was declined. This transaction requires authentication
在我的catch 子句中,甚至在它开始我与客户端的 3D 安全往返流程之前。
【问题讨论】:
标签: stripe-payments