Hello everyone,
I am in the process of building out a server side backend to a mobile app that is utilizing stripe connect and "managed" users. When a user signs up through the app, a new record is created on my db and then that is passed up to stripe via the "stripe.accounts.create" function in the nodejs stripe api. That part all works great.
Subsequent requests to see that users account, reveals a "fields needed" node in the returned json. In that I am seeing the only field as "bank account". When trying to fire a "stripe.accounts.update" function (passing in the users stripeId of course) with what I think the correct json is I keep getting a rejection error from stripe stating "invalid string".
My JSON is valid, I just don't know what stripe is expecting. Has anybody tried this and can point me in the right direction? Below is the small snippit of code that I am using:
stripe.accounts.update(stripeid,
{
bank_account:
{
routing_number: body.routingNumber,
account_number: body.accountNumber,
last4: body.ssn,
},
});
Thank you so much in advance for any help you can offer!