#ameenmathers

1 messages · Page 1 of 1 (latest)

sacred pollenBOT
supple adder
#

I couldn’t even update it in stripe backend

oblique ibex
#

What kind of account are you onboarding? What onboarding flow are you using?

supple adder
#

custom

#

I just couldn’t get it to remove the restriction.

#
 $customer =  $stripe->accounts->create([
             'type' => 'custom',
             'email' => $email,
             'capabilities' => [
                'card_payments' => ['requested' => true],
                'transfers' => ['requested' => true],
             ],
             'business_type' => 'individual',
             'business_profile' => ['product_description' => $category],
        ]);```
oblique ibex
#

Does that get you oriented in the right direction?

supple adder
#

so essentially here ```php
$account = $this->retrieveAccount($aid);

        if ($account->details_submitted) {
            $userEdit = User::findOrFail($uid);
            $userEdit->update([
                'stripeVerified' => 1,
            ]);``` i am retrieving the account to check if details_submitted, how can i check if the capabilities have been filled
oblique ibex
sacred pollenBOT
supple adder
#

ok i just the logic

#

i made it check if the capabilities are active and details submitted true before it verifies a user

#

is there a way i can use the stripe backend to remove the restrictions on the accounts?

gilded pawn
#

Hi, stepping in and catching up.

supple adder
gilded pawn
#

When you say 'restrictions', what are you referring to?

supple adder
gilded pawn
#

I see, in this case, you'd look at currently_due requirements, and provide these so remove these restrictions.