#_erichu
1 messages · Page 1 of 1 (latest)
Which stripe-node version do you use?
According to the specs, external_account only accepts string: https://github.com/stripe/stripe-node/blob/v14.4.0/types/AccountsResource.d.ts#L2572
Can you try to use // @ts-ignore to check if it works?
No problem! The default implementation will create the bank token ID first (https://stripe.com/docs/js/tokens/create_token?type=bank_account - client, https://stripe.com/docs/api/tokens/create_bank_account - server) then pass it to external_account as a string. It's likely why the spec only accepts string
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.