#memeky-php-parameters

1 messages · Page 1 of 1 (latest)

spiral haloBOT
worldly dagger
#

Still just me @sonic musk

What is your problem?

sonic musk
#

I am creating custom connected account

#

apparently only in singapore they ask for a value called alias

#

I don't know how to enter it with the api in php format

#

If I give you the code, could you tell me how to enter it?

worldly dagger
#

Not right now

#

Hold off on the code and let me take a look at the requirements

sonic musk
#

okay

#

$CONacount = $stripe->accounts->create(
[
'country' => $pais,
'type' => 'custom',
"email" => $email,
'capabilities' => [
'card_payments' => ['requested' => true],
'transfers' => ['requested' => true],
],

"company"=> [
"name"=> 'Illuminate',

],
"business_type" => "individual",
'business_profile' => [
"mcc" => "5734",
"product_description" => "Es una red social de memes donde los usuarios suben sus memes en diferentes categorías y otros los votan; además se realiza una competición mensual dependiendo de la suscripción, pueden acceder a un contenido y además jugar dinero para ver cuál de sus memes recibe más votos al iniciar la web automáticamente hay un tutorial que lo explica de forma detallada.",
"support_email" => 'gestion@memeky.com',
"url" => "www.memeky.com"
],

"individual"=> [
"email"=> $email,
"first_name" => $nombre,
"last_name" => $apellidos,
"address"=>[
"city" => $ciudad,
"country" => $pais,
"line1" => $direccion,
"line2" => $linia2,
"postal_code"=> $zipCode,
"state"=> $provincia
],
"phone"=> $telefono,
"dob" => [
"day"=> $day,
"month"=> $month,
"year"=> $year
],

"id_number"=> $dni,
'nationality' => $nacionalidadSingapour,
"full_name_aliases" => 'jaimiro'
],

"external_account" => [
"country" => $paisCuenta,
"currency" => $currency,
"account_number" => $iban ,
"routing_number" => $enrutamiento,
"object" => "bank_account"
],

'tos_acceptance' => [
"date"=> $t,
"ip"=> $f,
"user_agent"=> $s
],

]
);

#

"full_name_aliases" => 'jaimiro' It is the part that fails, the rest is 100% fine.

worldly dagger
#

That code still does not help me

sonic musk
#

what do you need?

worldly dagger
#

To look in our docs first

sonic musk
#

do you know php? and how does the api work?

worldly dagger
sonic musk
#

okay thanks I was asking about php because we can also use another language if you prefer

#

In this case, how do I update the following parameter?

#

How can I solve this through the api?

worldly dagger
#

You pass the full_name_aliases in the individual parameter., not as a parameter for the account

sonic musk
#

$stripe->accounts->updatePerson(
$extra,
$personID,
['full_name_aliases' => $alias ]
);

#

Sorry for my ignorance, we are Spanish and we don't understand the language well. I don't know how to do this.

worldly dagger
#

If you want to use the Person API, then you need the following:

$stripe->accounts->updatePerson(
$accountID,
$personID,
['full_name_aliases' =>  $alias ]
);
#

Where the first argument is the Account ID for the Stripe Account you just created, and the second is the ID for the Person object you are updating

sonic musk
#

I get it but it doesn't work

#

I create an account and the alias does not update it

#

$accountID , $personID I put them I am 100% sure they work

#

$accountID = $CONacount -> id;
$personID = $CONacount ->individual-> id;

worldly dagger
sonic musk
#

yes

#

req_8xaw64quR1keJY

#

I create the connected account, everything is ok! when I put the alias it doesn't work with the update, I've been trying this for about 3 hours

#

if you need anything else

worldly dagger
#

So in this case you could update the Person API for this account using the account ID acct_1MYZ6qFMy4BC8GKK and Person ID person_1MYZ6qFMy4BC8GKKKkKXUt73. These are present in the individual property that is returned as part of the Account.

sonic musk
#

do not look at the step all the code for you to understand

#

$CONacount = $stripe->accounts->create(
[
'country' => $pais,
'type' => 'custom',
"email" => $email,
'capabilities' => [
'card_payments' => ['requested' => true],
'transfers' => ['requested' => true],
],

"company"=> [
"name"=> 'Illuminate',

],
"business_type" => "individual",
'business_profile' => [
"mcc" => "5734",
"product_description" => "Es una red social de memes donde los usuarios suben sus memes en diferentes categorías y otros los votan; además se realiza una competición mensual dependiendo de la suscripción, pueden acceder a un contenido y además jugar dinero para ver cuál de sus memes recibe más votos al iniciar la web automáticamente hay un tutorial que lo explica de forma detallada.",
"support_email" => 'gestion@memeky.com',
"url" => "www.memeky.com"
],

"individual"=> [
"email"=> $email,
"first_name" => $nombre,
"last_name" => $apellidos,
"address"=>[
"city" => $ciudad,
"country" => $pais,
"line1" => $direccion,
"line2" => $linia2,
"postal_code"=> $zipCode,
"state"=> $provincia
],
"phone"=> $telefono,
"dob" => [
"day"=> $day,
"month"=> $month,
"year"=> $year
],

"id_number"=> $dni,
"nationality" => $nacionalidadSingapour,
],

"external_account" => [
"country" => $paisCuenta,
"currency" => $currency,
"account_number" => $iban ,
"routing_number" => $enrutamiento,
"object" => "bank_account"
],

'tos_acceptance' => [
"date"=> $t,
"ip"=> $f,
"user_agent"=> $s
],

]
);
$accountID = $CONacount -> id;
$personID = $CONacount ->individual-> id;

$stripe->accounts->updatePerson(
$accountID,
$personID,
['full_name_aliases' => 'manillo' ]
);

#

I understand what you are saying but it doesn't work and I don't think it's my fault

#

The account is created by the code is fine. I have used it to create connected accounts from many countries. The update that you provided me does not work.

#

I get: (invalid array)

bright hazel
#

memeky-php-parameters

#

that parameter is an array so you need to pass it as an array 'full_name_aliases' => ['manillo']

sonic musk
#

I'm sorry but I don't know how to do it, can you teach me I would really appreciate it 🙂

bright hazel
#

I just explained exactly how to do it in my answer

#

look at the code I gave versus the one you gave

sonic musk
#

me:

#

$stripe->accounts->updatePerson(
$accountID,
$personID,
['full_name_aliases' => 'manillo' ]
);

#

yours:

#

$stripe->accounts->updatePerson(
$accountID,
$personID,
['full_name_aliases' => $alias ]
);

#

is the same

bright hazel
#

I mean no

#

read mine versus yours. I am not @worldly dagger

#

Yours: 'full_name_aliases' => 'manillo'
Mine: 'full_name_aliases' => ['manillo']
Mine has [ ] around the value

sonic musk
#

sorry i thought you were snufkin
You are right

#

works !

#

thank you for your patience @worldly dagger @bright hazel 12/10 they are professionals have a good day

#

sorry for bothering you so much because of the language it costs us a bit

#

thanks 🙂

bright hazel
#

@sonic musk no worries, this is not well documented on our end as it's rare to use this. Let us know if you have more questions!

sonic musk
#

THANK YOU 🙂 !! that's all