Skip to content

Instantly share code, notes, and snippets.

@jessecogollo
Created July 6, 2015 18:22
Show Gist options
  • Save jessecogollo/7f4252a1840fa65db6ee to your computer and use it in GitHub Desktop.
Save jessecogollo/7f4252a1840fa65db6ee to your computer and use it in GitHub Desktop.
Add legal info account.
function addLegaInfoAccount(dataLegal, cb){
stripeApi.accounts.update(dataLegal.accountId,
{
legal_entity: {
first_name:dataLegal.firstName,
last_name:dataLegal.lastName,
dob:{
day:dataLegal.day,
month:dataLegal.month,
year:dataLegal.year
},
type:dataLegal.type,//'individual' or 'company'
business_name: dataLegal.businessName,
ssn_last_4:dataLegal.last4,
personal_id_number:dataLegal.EIN,
business_tax_id:dataLegal.EIN
}
}, function (err, data) {
if(err) return cb(err);
return cb(null , data.legal_entity);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment