我确实使用以下参数创建了 Stripe Account:
stripe.accounts.create({
type: 'custom',
business_type: 'individual',
individual: {
email: user.email,
first_name: user.firstName,
last_name: user.lastName
},
requested_capabilities: ['card_payments', 'transfers'],
email: user.email,
tos_acceptance: {
date: Math.floor(Date.now() / 1000),
ip: user.ip
}
})
但是,如果我尝试创建传输,则会收到以下错误:
Your destination account needs to have at least one of the following capabilities enabled: transfers, legacy_payments
这就是我创建传输的方式:
stripe.transfers.create({amount, currency, destination, transfer_group})
看起来很奇怪,因为您可以看到所需的功能已设置。我不知道如何进一步调试。任何帮助表示赞赏!
最佳答案
转移失败的原因是入职未完成 - 需要启用“转移”功能。创建帐户时,您仅“请求”了正确的功能,但尚未授予它们。
只需根据 id 获取帐户并查看需要哪些字段并提供它们 - 要么通过 API 更新帐户,要么在 Stripe 网络管理员中更新,如果您只想快速提供所有内容以便进行测试。 (stripe 网络管理员拥有账户完全入职所需的所有字段)
一旦满足传输能力要求,它将被授予并变为绿色。之后,将允许转移。 (“卡支付”功能也是如此。关于“传统”功能,您不应再使用它,因为它会变成
2020 年 3 月 31 日弃用)
(您甚至可能需要提供一个外部银行账户,您可以 get that here )
关于javascript - Stripe 帐户功能已设置,但仍会引发错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60336861/