javascript - Stripe 帐户功能已设置,但仍会引发错误

标签 javascript stripe-payments

我确实使用以下参数创建了 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/

相关文章:

php - Stripe : handle multiple Webhooks

javascript - CRM 2011 - 联系人表单加载无法在生日字段更改时分配给函数结果

javascript - 如何使用 CSS 制作基本形状?

ruby-on-rails - 如何使用 StripeEvents/Webhooks 防止 ArgumentError(PaymentFailed 的副本已从 > 模块树中删除但仍处于事件状态!)?

javascript - 从 strip 结帐中删除 “email address” 字段

ios - Stripe API 通过 iOS 代码创建费用?

javascript - 数据表不显示表格分页

javascript - http 绑定(bind)在 Angular2 中实际用途是什么

javascript - 通过 ajax 调用 Web 服务 - 在我的错误回调中的正确响应

node.js - 如何使用 Node.js 和 Stripe 或 Braintree 实现客户钱包