#memekyTeam
1 messages ยท Page 1 of 1 (latest)
Hello ๐
What error are you seeing?
Hello, I am creating connected accounts and I have to update the aliases and the nationality of the Singapore accounts. Can you help me with the code? Thank you
I don't see any, the update array is wrong
i need update this
Hi there
hello ๐
So you don't see any error at all in your Dashboard at the moment?
no at the moment but not update the alias and nacionality in Singaopur accounts
I am creating connected accounts and I have to update the aliases and the nationality of the Singapore accounts.
Have you logged out those variables to ensure they are the correct values?
Ah sorry you don't need to pass the requirements hash
Try just $stripe->accounts->updatePerson( $extra, $personID, ['nationality' => $nacionalidadSingapour ] );
okay let's try !
One moment please leave me just a few minutes thank you and I'll explain ๐
ok it seems to work ๐ !!!
Would the alias be missing? Do you suggest I do 2 updates to make it work because of the hash?
You can do it all in one update
$stripe->accounts->updatePerson(
$extra,
$personID,
['nationality' => $nacionalidadSingapour ]
);
$stripe->accounts->updatePerson(
$extra,
$personID,
['full_name_aliases' => $alias ]
);
You likely need to update first_name/last_name (https://stripe.com/docs/api/persons/update?lang=php#update_person-first_name)
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
like this ?
$stripe->accounts->updatePerson(
$extra,
$personID,
['nationality' => $nacionalidadSingapour ],
['full_name_aliases' => $alias ]
);
But you should look at the requirements hash for the exact properties that need updating
Thanks I'll check it out! ๐
๐
one last question
in this code :
$stripe->accounts->updatePerson(
$extra,
$personID,
['nationality' => $nacionalidadSingapour ],
['full_name_aliases' => $alias ]
);
I get this error
Got unexpected keys in options array: full_name_aliases
Yeah that is because full_name_aliases isn't a param on the Person update endpoint: https://stripe.com/docs/api/persons/update?lang=php
That's why you shouldn't rely on the Dashboard UI
But instead actually look at the requirements hash
Which will indicate the correct property names
ok now i understand!!! many thanks for everything @brazen patio have a nice day ! excellent service thank you ๐