create costum Connect account

78 views
Skip to first unread message

Khaled Boudchicha

unread,
Aug 21, 2019, 12:07:44 PM8/21/19
to Stripe API Discussion
i have create a account using Stripe Connect Costum with the following code  ;

my problem that i have created dirctor personne but i found it in requirement

requirements:
   { current_deadline: 1567093646,
     currently_due: [ 'relationship.director' ],
     disabled_reason: 'requirements.past_due',
     eventually_due: [ 'relationship.director' ],
     past_due: [ 'relationship.director' ] },



const accountResult = await stripe.tokens.create({
account: {
business_type: 'company',

company: {
name: 'Allexano',
tax_id: '000000000',
address: {
line1: '22 Avenue Millies Lacroix',
city: 'ÉCHIROLLES',
state: 'Rhône-Alpes',
postal_code: '38130'
}
},
tos_shown_and_accepted: true
}
});
const account = await stripe.accounts.create({
country: 'FR',
type: 'custom',
external_account: {
account_number: 'FR1420041010050500013M02606',
object: 'bank_account',
country: 'FR',
currency: 'EUR'
},
account_token: `${accountResult.id}`
});

const owner = await stripe.tokens.create({
person: {
first_name: 'Gaetand',
last_name: 'Lavoied',
email: 'lav...@gmail.com',

ssn_last_4: '1234',
address: {
line1: '64 rue Léon Dierx',
city: 'LISIEUX',
state: 'Basse-Normandie',
postal_code: '14100'
},
dob: {
day: 5,
month: 8,
year: 1974
},
relationship: {
account_opener: true,
owner: true,
percent_ownership: 100
}
}
});
const personOwner = await stripe.accounts.createPerson(`${account.id}`, {
person_token: `${owner.id}`
});
const director = await stripe.tokens.create({
person: {
first_name: 'Bruce',
last_name: 'Vertefeuille',
ssn_last_4: '1235',
address: {
line1: '46 rue Goya',
city: 'LE MANS',
state: 'Pays de la Loire',
postal_code: '72000'
},
dob: {
day: 7,
month: 6,
year: 1986
},
relationship: { director: true }
}
});
const personDirecteur = await stripe.accounts.createPerson(`${account.id}`, {
person_token: `${director.id}`
});

Remi J.

unread,
Aug 21, 2019, 12:10:56 PM8/21/19
to api-d...@lists.stripe.com
Hello,

The issue here is that an account can have multiple directors associated with it. On Stripe's end, we don't immediately know whether your director is the only one so you have to explicitly tell us once all directors have been provided. This is done by setting `directors_provided` to true when updating an Account: https://stripe.com/docs/api/accounts/update#update_account-company-directors_provided

Until you set this to true, we will keep asking for directors in the `requirements` hash to indicate that we need to know if there are more directors or not.

Hope this helps!
Remi

--
To unsubscribe from this group and stop receiving emails from it, send an email to api-discuss...@lists.stripe.com.

Khaled Boudchicha

unread,
Aug 21, 2019, 5:03:12 PM8/21/19
to api-d...@lists.stripe.com
thank you very much

--
Cordialement,
Boudchicha Khaled
Reply all
Reply to author
Forward
0 new messages