#memekyTeam
1 messages · Page 1 of 1 (latest)
I am using this that I use for the identity documents that I have modified but it does not work
$updatedni2 = \Stripe\File::create([
'purpose' => 'additional_verification',
'file' => fopen($target_dir2, 'r'),
], [
'stripe_account' => $accountID,
]);
$fileID2 = $updatedni2->id;
$stripe->accounts->updatePerson(
$accountID,
$personID,
['verification' => ['additional_verification' => ['front' => $fileID2 ]]]
);
Can you retrieve that account and print out what it currently has in its requirements.currently_due hash? https://stripe.com/docs/api/accounts/object#account_object-requirements-currently_due
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Is that giving you an error?
req_EWRBwheFAEcrln
"currently_due": [
],
it is empty
It's for a Singapore connected account.
👋 stepping in
In the response to that request you can see currently_due: [ "individual.full_name_aliases", ], disabled_reason: "requirements.past_due",
Hi, I know I've been bothering you with this for a few days, I apologize. I know you're very excited, but the company asks me for this
As you know, we are Spanish and it is very difficult for my team and I
How do you interpret the above code that we are missing for the status to be verified?
Taking a deeper look, give me a moment
okat thanks ! 🙂
So that indicates you need to update the full_name_aliases of the individual for the account. That individual is represented by the Person object. So you specifically need to update using the Update Person endpoint with the full_name_aliases param: https://stripe.com/docs/api/persons/update#update_person-full_name_aliases
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Something like:
'acct_123',
'person_123',
['full_name_aliases' => ['test alias']]
);```
okay I have this code that initially solves this and I'm putting it
$stripe->accounts->updatePerson(
$accountID,
$personID,
['full_name_aliases' => [ 'asdasda']]
);
I put this exact code
when you put this code it asks you test_life of the main image
I am using a code with which I have created all the connected accounts and they work 100% for me except for Singapore, do you want me to send it to you?
Can you explain what:
when you put this code it asks you test_life of the main image
means?
So when you try to update the Person do you get an error?
Let me pass you the entire code of the Singapore connected account and we'll review it please if you don't mind?
$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;
That code doesn't help me
Please retrieve the account from the screenshot and show me what the requirements are
okay
Or you can provide me the account ID and I can take a look from my side
Okay so still same thing here
It is asking you for "full_name_aliases",
I am looking at the account and don't see an attempt to update the Person
Can you run that request and provide me the request ID?
okay
Ah I apologize
You can actually update this directly on the Account object: https://stripe.com/docs/api/accounts/update?lang=php#update_account-individual-full_name_aliases
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
So either way works
You can update the Person directly
Or you can just update the Account
Updating the account would be like: $stripe->accounts->update( 'acct_1032D82eZvKYlo2C', ['individual' => ['full_name_aliases' => ['afdgafg']]] );
acct_1MZH6gFMbbbqMZue
tried with the update
with this last code and I get the same error
req_xIVgFMIOd68CJM
That request is a successful account retrieval
Err sorry
Account creation
It doesn't error
That said
You can also just adjust that
And pass full_name_aliases in your individual hash
sorry but i got lost
like this?
"individual"=> [
"email"=> $email,
"first_name" => $nombre,
"last_name" => $apellidos,
"full_name_aliases" =>'test aliase',
"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,
],
Exactly and how do I put this? I have prepared this but it does not work
$updatedni2 = \Stripe\File::create([
'purpose' => 'proof_of_liveness',
'file' => fopen($target_dir2, 'r'),
], [
'stripe_account' => $accountID,
]);
$fileID2 = $updatedni2->id;
$stripe->accounts->updatePerson(
$accountID,
$personID,
['verification' => ['document' => [ 'front' => $fileID2 ]]]
);
life test in spanish is like proof_of_liveness
Yep okay and did you attach that file to the Person?
That is just creating the file
like this
$stripe->accounts->updatePerson(
$accountID,
$personID,
['verification' => ['additional_document' => [ 'front' => $fileID2 ]]]
);
This code works for me on identity documents but not with proof_of_liveness
What happens when you run that code?
the same the complete code is this
$namename2 = $userA.rand();
$target_dir2 = $_SERVER['DOCUMENT_ROOT'] . "/423432sdf/".$namename2;
move_uploaded_file($_FILES["fotodni2"]["tmp_name"], $target_dir2);
$updatedni2 = \Stripe\File::create([
'purpose' => 'additional_verification',
'file' => fopen($target_dir2, 'r'),
], [
'stripe_account' => $accountID,
]);
$fileID2 = $updatedni2->id;
$stripe->accounts->updatePerson(
$accountID,
$personID,
['verification' => ['additional_document' => ['front' => $fileID2 ]]]
);
I don't think you want an additional_document here but just a document
Dumping bunches of code really isn't helpful
If you can share request IDs where you tried this stuff that would be much more helpful
ok sorry I won't do it again
All good 🙂
I'm going to try what you told me and I'll send you the request and the account id
Sounds good
I get this error
That file was not uploaded with the correct purpose parameter. Try uploading a new file with a valid purpose: identity_document, document_provider_identity_document.
I have on
'purpose' => 'additional_verification',
what do you suggest?
I have an update with identity document that works and provides the file
Yep you want to set 'purpose' => 'identity_document' as it notes.
You already uploaded an identity document for this person?
yes
I create the connected account and in the same file below I update the identity document and then it asks me for proof_of_liveness
Okay one sec
Alrighty so sorry about this. Was not familiar with this myself. But you can't satisfy this requirement via the API. It requires sending your user through Connect Onboarding as it is a special requirement. We have this in our docs here: https://stripe.com/docs/connect/updated_requirements/sg_integration_changes_custom
New requirement. Collect this information using Connect Onboarding
I am going to flag feedback internally that we need to make this more visible and obvious in our docs
look, they have the most complete api and with the best test mode in the world and 52 countries it is normal, creating this project is incredible, also we do not speak the same language it is normal to leave things behind
So I can't do it from my website. The user has to enter connected onboarding and complete it himself?
Correct
Thank you very much I know we are the user who has bothered you the most, we are sorry
So you could basically handle everything else for your accounts and pre-fill all the other necessary info for your SG account, then send them through Connect Onboarding for this one requirement
Please don't apologize!
We are here to help!
thanks for everything, When we create the project this year we want to give you some premium accounts. we will let you know. have a nice day thanks for everything 🙂 12/10 as always keep it up !!