Skip to content

Instantly share code, notes, and snippets.

@jake-yeg
Created May 6, 2017 01:21
Show Gist options
  • Save jake-yeg/8ab894e837c596f7148399028e5b50ff to your computer and use it in GitHub Desktop.
Save jake-yeg/8ab894e837c596f7148399028e5b50ff to your computer and use it in GitHub Desktop.
account = Stripe::Account.retrieve("acct_19Q9DhJ5O9c4mtR7")
account.external_accounts.create(
external_account: [
object: "bank_account",
account_number: 000000000000,
currency: 'USD',
country: 'US',
routing_number: 1111111,
...
]
)
@jmesserer
Copy link

Thanks! FYI - I had to change the array to a hash ([] -> {}) to get this to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment