繁体   English   中英

Stripe:如何附加借记卡进行付款

[英]Stripe: How to attach a debit-card for payouts

过去两天我一直在研究 stripe 文档,但我找不到如何将卡添加到 stripe 中的“帐户”。

问:如何将用于付款的借记卡附加到stripe.accounts.create

stripe.accounts.create({
    type: 'standard',
    business_type: 'individual',
    default_currency:'USD',
    country: 'US',
    email: 'bob@example.com',
    requested_capabilities: [ 'transfers' ],

    // here ?

}).then(acc => {

    // or maybe ?

}).catch(console.error)

此外,将不胜感激有关如何选择要支付的付款方式的示例。

感谢您的任何输入

在您的counts.create() fn 中,添加一个属性“external_account”

例如


    stripe.accounts.create({
       country: 'US',
       default_currency:'USD',
       external_account:card_token,
       type: 'custom',
       requested_capabilities: ['card_payments', 'transfers'],
     })
    .then(acc => {

请注意,您可能需要将类型更改为“自定义”并且您不能使用payment_method请参阅创建卡令牌

您可以使用 Stripe.js 和 Elements [0] 标记借记卡,然后将其作为外部帐户附加到 Connect 帐户:stripe.com/docs/api/external_account_cards/create

[0] stripe.com/docs/js/tokens_sources/create_token?type=cardElement

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM