#memekyTeam

1 messages · Page 1 of 1 (latest)

lone falconBOT
mint magnet
#

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

sleek nest
#

Is that giving you an error?

mint magnet
#

req_EWRBwheFAEcrln

#

"currently_due": [
],

#

it is empty

#

It's for a Singapore connected account.

jolly dove
#

👋 stepping in

#

In the response to that request you can see currently_due: [ "individual.full_name_aliases", ], disabled_reason: "requirements.past_due",

mint magnet
#

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?

jolly dove
#

Taking a deeper look, give me a moment

mint magnet
#

okat thanks ! 🙂

jolly dove
#

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

#

Something like:

#
  'acct_123',
  'person_123',
  ['full_name_aliases' => ['test alias']]
);```
mint magnet
#

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?

jolly dove
#

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?

mint magnet
#

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;

jolly dove
#

That code doesn't help me

#

Please retrieve the account from the screenshot and show me what the requirements are

mint magnet
#

okay

jolly dove
#

Or you can provide me the account ID and I can take a look from my side

mint magnet
#

okay

#

acct_1MZGfoFbefDn4J7z

#

req_EWRBwheFAEcrln

jolly dove
#

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?

mint magnet
#

okay

jolly dove
#

Ah I apologize

#

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

mint magnet
#

acct_1MZH6gFMbbbqMZue

#

tried with the update

#

with this last code and I get the same error

#

req_xIVgFMIOd68CJM

jolly dove
#

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

mint magnet
#

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,
],

jolly dove
#

"full_name_aliases" => ['test aliase'],
Since it is an array

#

But yes

mint magnet
#

ok i will try

#

req_WSAtA3ePaoLcCg

jolly dove
#

Okay great

#

So now next step

#

Now it is asking for verification.proof_of_liveness

mint magnet
#

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

jolly dove
#

Yep okay and did you attach that file to the Person?

#

That is just creating the file

mint magnet
#

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

jolly dove
#

What happens when you run that code?

mint magnet
#

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

jolly dove
#

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

mint magnet
#

ok sorry I won't do it again

jolly dove
#

All good 🙂

mint magnet
#

I'm going to try what you told me and I'll send you the request and the account id

jolly dove
#

Sounds good

mint magnet
#

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

jolly dove
#

Yep you want to set 'purpose' => 'identity_document' as it notes.

#

You already uploaded an identity document for this person?

mint magnet
#

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

jolly dove
#

Okay one sec

#

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

mint magnet
#

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?

jolly dove
#

Correct

mint magnet
#

Thank you very much I know we are the user who has bothered you the most, we are sorry

jolly dove
#

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!

mint magnet
#

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 !!