#fazilhussain015

1 messages · Page 1 of 1 (latest)

oblique shoalBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

atomic geyser
#

hi, what was the question exactly?

opal nova
#

im working on the stripe connect express
and trying to create a connect account using API

#

let me share the code snippet with you

#

$responsee = $stripe->accounts->create([
'country' => 'US',
'type' => 'express',
'capabilities' => [
'card_payments' => ['requested' => true],
'transfers' => ['requested' => true],
],
'business_type' => 'individual',
'business_profile' => [
'url' => 'http://godontest.com',
"name" => "Stripe.com",
'mcc' => '5734',
],
'individual' => [
'first_name' => 'fazil',
"last_name" => "hussain",
'phone' => '+13087506036',
'email' => 'email@gmail.com,
'ssn_last_4' => '1234',
'dob' => [
'day' => '10',
'month' => '04',
'year' => '1998',
],
'address' => [
'city' => 'Brooklyn',
'line1' => '9 Courtland Ave',
'postal_code' => "11229",
'state' => 'NY',
],
],
'company' => [
'tax_id' => '000000000',
'address' => [
'city' => 'Brooklyn',
'line1' => '9 Courtland Ave',
'postal_code' => "11229",
'state' => 'NY',
],
],
]);

#

this code is working fine for me for the

'business_type' => 'individual',

#

but how i can use this code for the

'business_type' => 'company',

atomic geyser
#

well you'd change the business_type parameter.

And then you can not pass individual or the fields inside of that.
Instead you can call https://stripe.com/docs/api/persons/create after creating the account, and supply information on the people associated with the company there(make sure to set a value in the relationship hash of booleans).

#

overall I'd suggest not doing any of that, and simply redirecting to the AccountLink which a nice easy-to-use UI for the user to enter all the information without you having to do anything.

opal nova
#

okay i accept your suggestion but the question is that for the individual why stripe asking for the business details

#

as i already asked this quesiton to stripe support persons but i didnot get any valid point

#

is there any method to skip the business details for the individual