我是 Stripe 的新手,我正在制作一个电子商务网站,客户可以在其中购买数字艺术并转售。我可以向客户收取罚款,但我不知道如何使用 Stripe 向客户付款。我曾尝试使用 Stripe Connect,但我不断收到无法修复的错误消息。我的代码:
let account = await this.stripe.accounts.create({
type: 'custom',
country: 'US',
email: user.email,
capabilities: {
card_payments: {
requested: true,
},
transfers: {
requested: true,
},
},
business_type: 'individual',
})
await this.stripe.customers.create({
name: user.name,
email: user.email,
source
}, {
stripeAccount: account.id
})
错误:
Your account cannot currently make charges. To find out why charge creation is currently disabled, look at the `requirements.disabled_reason` property on this account (/v1/accounts/acct_****************).