【发布时间】:2021-07-24 09:35:03
【问题描述】:
我无法从paymentIntent 生成transfer,我已启用手动付款并且我的测试余额中有资金..
我也尝试在传输对象中添加source_transaction,但没有成功
我得到:
StripeInvalidRequestError:Stripe 帐户中的资金不足。在 测试模式,您可以将资金添加到您的可用余额中(绕过您的 未结余额)通过创建一个收费 4000 0000 0000 0077 作为 卡号
我已经添加了这个测试卡号.. paymentIntent 创建成功:
const paymentIntent = await stripe.paymentIntents.create(
{
amount: amount,
currency: "usd",
payment_method_types: ["card"],
transfer_group: "{ORDER11}",
}
)
这是我失败的转移对象:
const transfer = await stripe.transfers.create({
amount: orderAmount,
currency: "usd",
destination: sellerAccountId,
transfer_group: "{ORDER11}",
source_transaction: pi.charges.data.id,
});
感谢您的帮助
【问题讨论】: