#memeky-php-parameters
1 messages · Page 1 of 1 (latest)
Still just me @sonic musk
What is your problem?
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?
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.
That code still does not help me
what do you need?
To look in our docs first
do you know php? and how does the api work?
The full_name_aliases is a parameter when creating the Person object, not the Account: https://stripe.com/docs/api/persons/object#person_object-full_name_aliases
It is also part of the individual hash object when creating an account: https://stripe.com/docs/api/accounts/create#create_account-individual-full_name_aliases
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?
You pass the full_name_aliases in the individual parameter., not as a parameter for the account
$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.
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
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;
Can you share a request ID? Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
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
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.
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)
memeky-php-parameters
that parameter is an array so you need to pass it as an array 'full_name_aliases' => ['manillo']
I'm sorry but I don't know how to do it, can you teach me I would really appreciate it 🙂
I just explained exactly how to do it in my answer
look at the code I gave versus the one you gave
me:
$stripe->accounts->updatePerson(
$accountID,
$personID,
['full_name_aliases' => 'manillo' ]
);
yours:
$stripe->accounts->updatePerson(
$accountID,
$personID,
['full_name_aliases' => $alias ]
);
is the same
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
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 🙂
@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!
THANK YOU 🙂 !! that's all