#memekyTeam

1 messages ยท Page 1 of 1 (latest)

stray gullBOT
pallid nova
#

Hello ๐Ÿ‘‹
What error are you seeing?

zenith crescent
#

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

brazen patio
#

Hi there

zenith crescent
#

hello ๐Ÿ™‚

brazen patio
#

So you don't see any error at all in your Dashboard at the moment?

zenith crescent
#

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.

brazen patio
#

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 ] );

zenith crescent
#

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?

brazen patio
#

You can do it all in one update

zenith crescent
#

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

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

brazen patio
zenith crescent
#

like this ?

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

brazen patio
#

But you should look at the requirements hash for the exact properties that need updating

zenith crescent
#

Thanks I'll check it out! ๐Ÿ™‚

brazen patio
#

๐Ÿ‘

zenith crescent
#

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

brazen patio
#

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

zenith crescent
#

ok now i understand!!! many thanks for everything @brazen patio have a nice day ! excellent service thank you ๐Ÿ™‚