#elka_code
1 messages ยท Page 1 of 1 (latest)
๐ Welcome to your new thread!
โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
๐ This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1326562571859394561
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- elka_code, 1 minute ago, 137 messages
Hi again, I recently opened a bigthread that has just been closed. Is it possible for you to read it?
Actually i need help, because i want to take some information with preview invoice, but not working, probably cause of connected_account
( id of connected_account used for developpement : acct_1Pu9qUQu7f7NM2pd )
Hi ๐ apologies for the delay, I'll be with you as soon as I can.
Sorry, I did close that thread as it looked like it had been stale for quite some time. Is there any way you can summarize the current question/concern? If I have to review the entire thread it will be quite some time before I'm able to offer any guidance or assistance.
Based on the error you shared, it seems like you're trying to use Stripe Tax for your Connected Accounts. Am I close?
If so, did you review this page to find the right document for setting up Stripe Tax for your scenario?
https://docs.stripe.com/tax/connect
Yes exactly
i will resume fast
I'm developing a B2B2C, with an in-house scheduled payment system.
I can't use stripe's schedule tool, mainly because of the extra cost.
I have some problems managing VAT manually.
Your colleague advised me to use the previewInvoice service in order to recover the data HT / TTC and Amount of tax.
And now I'm stuck on the step of using the preview in the context of a connected account in order to generate the data because the product / price and customer are held on the connected account.
Let me know if you understand.
For your information, in the Database, when invoicing, I generate a false main invoice on which I link all the child invoices which represent the split invoices to be passed on to stripe on the day of payment.
And you're stuck because Stripe Tax hasn't been set up on the Connected Accounts?
Exactly
public function previewStripeInvoice(Price $price, SignatureRequest $signatureRequest): \Stripe\Invoice
{
$stripeClient = $this->client->getStripeClient();
return $stripeClient->invoices->createPreview([
'customer' => $signatureRequest->getCustomer()->getStripeId(),
'automatic_tax' => ['enabled' => true],
'on_behalf_of' => $signatureRequest->getLawyer()->getSociety()->getStripeAccId(),
'invoice_items' => [
[
'price' => $price->getStripeId(),
'quantity' => 1
]
]
],[
'stripe_account' => $signatureRequest->getLawyer()->getSociety()->getStripeAccId(),
]);
}
that's how i try to do
Okay, so let's start here:
https://docs.stripe.com/tax/connect
Are you setting up a "tax for software platforms" flow, or a "tax for marketplaces" flow as described in that doc?
Sorry, I don't understand that answer. You need to set up Stripe Tax on your Connected Accounts in order to use our automatic tax calculation. In order to route you to the right guide for that, I need to understand which of the tax scenarios on that page describe your situation.
Hum ok
sorry i missunderstand
Ok so is the first scenarion. My customer ( account_connected ) collect and pay tax
Gotcha, then you need to go through the steps in this guide to enable and setup Stripe Tax for your Connected Accounts:
https://docs.stripe.com/tax/tax-for-platforms
ok i have some work with that
Thank u โค๏ธ
But
But if I've understood correctly, users are obliged to activate Stripe Tax from their interface, which can't be done dynamically when an account is created?
My bad i have see we can do it
$stripe->accountSessions->create([
'account' => '{{CONNECTED_ACCOUNT_ID}}',
'components' => [
'tax_settings' => ['enabled' => true],
'tax_registrations' => ['enabled' => true],
],
]);
This is it ?
That's the flow if you want to use our Embedded Components to surface these settings to your users, yes.
That is not part of our hosted onboarding flow though, in case that's what you're asking.
$stripe->tax->settings->update(
[
'defaults' => [
'tax_code' => 'txcd_10000000',
'tax_behavior' => 'inclusive',
],
'head_office' => ['address' => ['country' => 'DE']],
],
['stripe_account' => '{{CONNECTED_ACCOUNT_ID}}']
);
Or this