Created
July 6, 2015 18:22
-
-
Save jessecogollo/7f4252a1840fa65db6ee to your computer and use it in GitHub Desktop.
Add legal info account.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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