#elka7415

1 messages ยท Page 1 of 1 (latest)

covert apexBOT
cyan jewel
#

You can't create an account and create a subscription in 1 api call

#

Charges will also have to be enabled for you to create a subscription

#

The account holder needs to onboard the account for that to happen

#

What type of connect accounts are you using?

sacred girder
#

Only express account for my clients

#

And use it like that

#
$this->stripe->accounts->create([
            'type' => 'express', 
            'country' => 'fr', 
....

$this->stripe->accountLinks->create([
            'account' => $connectedAccount->id,
            'refresh_url' => $this->generator->generate('avocat_connected_acc_refresh_url', [], UrlGeneratorInterface::ABSOLUTE_URL),
            'return_url' => $this->generator->generate('avocat_connected_acc_return_url', [], UrlGeneratorInterface::ABSOLUTE_URL),
            'type' => 'account_onboarding'
        ]);
....
#

It's a schematic, but it gives an idea of my script's process.

cyan jewel
#

Yep that's correct

#

So the account holder needs to go through the onboarding process at the account link

sacred girder
#

Ok so, we need create the subscription logic after this

cyan jewel
#

Once charges are enabled on the connect account, yeah

sacred girder
#

And, of course, ask the user's permission beforehand.

cyan jewel
#

Yep

sacred girder
#

Stripe surprises me year after year!

#

Perfect !

#

Thank you @cyan jewel ! You rock !

cyan jewel
#

No problem!

sacred girder
#

So ,

#

One last question

#

if i understood well, i need to enabled charges on the creation of connected express account, and then, what should i do in order to make my customer accept the subscription plan in their charges ?

#

Because we need it to be smooth as possbile, and in a perfect world, in the same time as the creation of the connected account

cyan jewel
#

Who's the customer exactly?

sacred girder
#

An society

#

Who has final clients

#

but there, we need to charge the society for subscription

cyan jewel
#

I don't understand. Are you billing the connect account holder?

sacred girder
#

Yes

#

With an direct payment SEPA

cyan jewel
#

Oh

#

Why do they need an Express account then?

sacred girder
#

To reduce options that they can manage, in order to not lost them

cyan jewel
#

I don't understand

#

You should only need to create an Express account if you need to pay them

sacred girder
#

My mate will take the next for try to explain you better

main frigate
#

Hello there, i'm here to help to understand our problem ๐Ÿ™‚

#

Currently what we need is that schema :
We have a principal account which allow lawyer to create connected accounts. For that, they need to pay a subscription, ideally throught this connected account with SEPA. Then from our website, they can charge their client, and we transfer them the amount (taking a commission by the way)

#

Our goal there is to manage to create the connected express account, and make a subscription on this one with the sepa registered, all being smooth for the client and without adding step to the creation process ๐Ÿ™‚

cyan jewel
#

So the connect account holder pays the platform via the subscription? And the connect account holder can also charge their clients and get paid, so that's why they need the connect account? Do I have that right?

main frigate
#

Yes exactly !

cyan jewel
#

Ah so then for the subscription, you need to create that on your platform account and create a Customer object to represent the connect account

#

So you'll need some sort of checkout flow to collect payment method details to charge them

main frigate
#

Okay i see, so connected account and their alias as Customer Object are unlinked in a way, but that's the only way to do it, connected account can't have payments charges like subscription, so we need a customer lookalike to do it ?

#

So if we need to make like a checkout flow, is it possible to make then pay by a sepa method ?

#

(And if yes, how ?)

cyan jewel
#

Yes to all the above

#

One min

main frigate
#

Thank you, i'm waiting

cyan jewel
#

You have a few options (stripe-hosted, embedded, or custom)

main frigate
#

Like a stripe-hosted way would be perfect for us

#

So in the creation of the checkout with the api, where could we setup the sepa method ?

cyan jewel
#

The customer needs to do that

sacred girder
#

This is perfect !

main frigate
#

I think know we've got everything we need to elaborate what we have to do ! Thank you a lots for your time, and to be nice with us ^^'