Skip to content

Instantly share code, notes, and snippets.

@leonkyr
Created August 28, 2019 01:54
Show Gist options
  • Save leonkyr/c9b7a394359eb2cf1f82a206fbb70a92 to your computer and use it in GitHub Desktop.
Save leonkyr/c9b7a394359eb2cf1f82a206fbb70a92 to your computer and use it in GitHub Desktop.
stripe-connect-create-external-account
// Consider using a test number from https://stripe.com/docs/connect/testing#account-numbers
stripe.accounts.createExternalAccount(accountId,
{
external_account: {
currency: "aud",
country: "au",
object: "bank_account",
account_holder_name: "Leo the service provider",
account_holder_type: "company", // "individual"
routing_number: "110000",
account_number: "000123456",
},
}).then(function (bank_account) {
console.log(JSON.stringify(bank_account, null, 2));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment