i know have create customer , verify bank account, i'm not sure how latter.
how go verifying them on customer?
to add bank account customer, need create token , add sourcetoken parameter since adding using bank account services not implement of now. example:
bankaccountcreateoptions bankaccount = new bankaccountcreateoptions(); bankaccount.sourcebankaccount = new sourcebankaccount() { accountholdername = accountholdername, accountholdertype = "company", accountnumber = bankaccountnumber, bankname = bankname, country = "us", currency = "usd", routingnumber = bankaccountroutingnumber }; // setup customer stripecustomercreateoptions options = new stripecustomercreateoptions(); options.email = email; options.description = company; options.planid = plan.id; options.trialend = datetime.utcnow.addmonths(1); options.sourcetoken = bankaccount.sourcetoken; // create customer stripecustomer customer = new stripecustomerservice().create(options);
however still don't know how verify bank account once created.
you can login bank accounts using test users in https://plaid.com/docs/api/#sandbox , register user stripe ach. create token using test user bank details , create customer user.do charges using created customer id.
Comments
Post a Comment