#elka7415
1 messages ยท Page 1 of 1 (latest)
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?
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.
Yep that's correct
So the account holder needs to go through the onboarding process at the account link
Ok so, we need create the subscription logic after this
Once charges are enabled on the connect account, yeah
And, of course, ask the user's permission beforehand.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Yep
Stripe surprises me year after year!
Perfect !
Thank you @cyan jewel ! You rock !
No problem!
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
Who's the customer exactly?
An society
Who has final clients
but there, we need to charge the society for subscription
I don't understand. Are you billing the connect account holder?
To reduce options that they can manage, in order to not lost them
I don't understand
You should only need to create an Express account if you need to pay them
My mate will take the next for try to explain you better
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 ๐
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?
Yes exactly !
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
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 you'll need some sort of checkout flow to collect payment method details to charge them
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 ?)
Yes to all the above
One min
Thank you, i'm waiting
You have a few options (stripe-hosted, embedded, or custom)
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 ?
The customer needs to do that
If you want to restrict the types of payment methods the customer can use, you can pass whatever you want here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
This is perfect !
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 ^^'