簡體   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