#harisabbasi12-code
1 messages · Page 1 of 1 (latest)
StripeInvalidRequestError: You must provide a card that has the 'currency' field set when adding a card to a Stripe account.
it gives error after this code gets run: const bankAccount = await stripe.accounts.createExternalAccount(
account.id,
{
external_account: token.id,
}
);
In here i want to send money to bank account from stripe account
i am in test. first i am creating card token, then create account of provider Email and attaching that account id to external account along with tokenid. and then i am sending transfer to that account
test mode*
Thanks! To fix that error you need to set card.currency when creating the card token https://stripe.com/docs/api/tokens/create_card#create_card_token-card-currency