[英]Stripe: How to attach a debit-card for payouts
I spent the last two days pouring over the stripe documentation, but can't I find how to add a card to an " account " in stripe.过去两天我一直在研究 stripe 文档,但我找不到如何将卡添加到 stripe 中的“帐户”。
Q. How to attach a debit-card for payouts to stripe.accounts.create
?问:如何将用于付款的借记卡附加到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)
Also, an example on how to select that payment method to payout to would be appreciated.此外,将不胜感激有关如何选择要支付的付款方式的示例。
Thanks for any input感谢您的任何输入
With in your counts.create()
fn, add an attribute "external_account"在您的counts.create()
fn 中,添加一个属性“external_account”
eg例如
stripe.accounts.create({
country: 'US',
default_currency:'USD',
external_account:card_token,
type: 'custom',
requested_capabilities: ['card_payments', 'transfers'],
})
.then(acc => {
Note you may need to change your type to "custom" AND you cant use a payment_method
see Create a card token请注意,您可能需要将类型更改为“自定义”并且您不能使用payment_method
请参阅创建卡令牌
You would tokenize a debit card using Stripe.js and Elements [0], then attach it to the Connect account as an external account: stripe.com/docs/api/external_account_cards/create您可以使用 Stripe.js 和 Elements [0] 标记借记卡,然后将其作为外部帐户附加到 Connect 帐户:stripe.com/docs/api/external_account_cards/create
[0] stripe.com/docs/js/tokens_sources/create_token?type=cardElement [0] stripe.com/docs/js/tokens_sources/create_token?type=cardElement
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.