#Kais

1 messages ยท Page 1 of 1 (latest)

ripe mossBOT
pliant swallow
#

Hi, yes - in test mode, things will work find even with those warning.

velvet matrix
#

Alright. Another question. When a user has completed the onboarding process he gets redirected back to a website which checks if the user has successfully walked through the onboarding phase using PHP. I'm using the StripeClient package for this. When i try to retrieve the account using his id and check for details submitted i always get a false. Is this also normal in test mode or am i doing it wrong?

#
            $stripe = new StripeClient('token');
            $account = $stripe->accounts->retrieve(
                $user->stripe_id,
                []
            );
            if($account->details_submitted){
                $linkedBankAccount = true;
            } else {
                $linkedBankAccount = false;
            }
#

Digged a little deeper. Seems like charges_enabled = true but payouts_enabled = false. Is this also due to it being a test account?

rare ledge
#

well it depends on the requirements hash

#

fetch the Account object

#

and look at the requirements hash

#

you should see details being required under currently_due or eventually_due hash

#

meaning more onboarding details are required from the connected accounts

#

I assume you never connected an external bank account for payouts to the Connect account?

velvet matrix
#

Both hashes has an array with external_account inside of it. I have never connected an bank account and instead used the test bank account from Stripe

rare ledge
#

but what does the requirements hash have

#

you can paste the full hash

#

here, (redact any personal details) but that will tell me what is missing

velvet matrix
#

Alright give me a minut to check for personal details

rare ledge
#

typically the requirements hash shouldn't have any personal details

velvet matrix
#

Ah alright i will send that then

#
"requirements": Object {
      "alternatives": Array [],
      "current_deadline": null,
      "currently_due": Array [
        "external_account",
      ],
      "disabled_reason": "requirements.past_due",
      "errors": Array [],
      "eventually_due": Array [
        "external_account",
      ],
      "past_due": Array [
        "external_account",
      ],
      "pending_verification": Array [],
    },
rare ledge
#
        "external_account",
      ],```
#

that is the missing requireemnt

#

that is why payouts_enabled: false

#

you never attached an external bank account to this account

velvet matrix
rare ledge
#

what type of Connect account is this? Custom? Express?

velvet matrix
#

custom

rare ledge
#

yeah then you need to call the update Account endpoint to update with a test external account

#

grabbing you the link

#

that you can use in test mode to onboard an account with an external account

velvet matrix
#

Let me take a look at the endpoint real quick

#

So just to verify. The request should be something like

$stripe->accounts->update(
  'ACCOUNT ID',
  ['external_account' => ['object' => 'bank_account', 'country' => 'NL', 'currency' => 'EUR', 'account_number' => 'IBAN or some other test account number']]
maiden zephyr
#

That should work, yes

velvet matrix
#

Alright i will try it out. Thanks again so much for the help boys! Really appreciate it ๐Ÿ™‚