[stripe] bank account creation requires object: "bank_account" (#37956)

This commit is contained in:
Dan Lichty
2019-08-27 16:30:24 -07:00
committed by Andrew Casey
parent c860c1dc7b
commit 435b89edfa
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -6801,6 +6801,11 @@ declare namespace Stripe {
}
interface ISourceCreationOptions {
/**
* The type of payment source. Should be "bank_account".
*/
object: "bank_account";
/**
* The account number for the bank account in string form.
* Must be a checking account.
+2
View File
@@ -639,6 +639,7 @@ stripe.customers.createSource(
"cus_5rfJKDJkuxzh5Q",
{
source: {
object: 'bank_account',
country: 'US',
currency: 'USD',
account_holder_name: 'Account Holder',
@@ -656,6 +657,7 @@ stripe.customers.createSource(
"cus_5rfJKDJkuxzh5Q",
{
source: {
object: 'bank_account',
country: 'US',
currency: 'USD',
account_holder_name: 'Account Holder',