I did create Stripe Account using the following parameters:
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
}
})
But if I am trying to create transfer, I get the following error:
Your destination account needs to have at least one of the following capabilities enabled: transfers, legacy_payments
This is how I create the transfer:
stripe.transfers.create({amount, currency, destination, transfer_group})
It seems weird because the required capabilities are set as you can see. I do not know how to debug further. Any help is appreciated!