#ayuan
1 messages · Page 1 of 1 (latest)
Hello
hello bismark. thanks for entertaining my question
What do you mean exactly by "invoice template"?
Ah yes the branding should still apply here for what you set in your branding on your account
hmm. actually, my real request is
when creating invoices for subscriptions, how do i specify the account tax Id i want to use?
You would need to set that here: https://dashboard.stripe.com/settings/billing/invoice?tab=tax if you are creating Subscriptions via Checkout
i do'nt see an option in the standard session create subscription api
so i figured that maybe if i create say 5 custom invoices to represent then 5 account tax id's we have.... and then
i've already created my account tax id's
i want to show a specific tax ID on invoices of a subscription, depending on the customer's address
And you are using Stripe Checkout?
yes
Yeah okay that's not possible with Checkout since you can't specify the Account Tax ID in the Checkout Session creation request.
If you want that type of control you would need a custom flow where you create Subscriptions directly.
Then you can set invoice_settings.account_tax_ids: https://stripe.com/docs/api/subscriptions/create#create_subscription-invoice_settings-account_tax_ids
yes. i'm currently modifying draft invoices in that manner, so invoices 2->final have correct tax id's
issue is with invoice 1, as we wish to charge immediately due to disintermediation risk, so the invoice is finalized on arrival (no chance to update by webhook)
i'm looking at two options
1 - what i stated earlier. is it possible to create templates and then use those tempaltes in stripe checkout?
2 - maybe we set billing anchor to 'subscription period + 1' and simultaniously create a 1-time invoice representing the first subscription period
1/ No the template doesn't work as it can't be applied for Checkout nor does it contain the Account Tax ID
Hmm 2/ doesn't really work as it will still charge immediately
but i'm hoping i can use a regular invoice api / not subscription via checkout api
so then i can do invoice_settings.account_tax_ids
Yeah that's not how Stripe Checkout works
Overall you should really just use your own custom flow here and not Stripe Checkout so that you can create the Subscription yourself.
Alternatively, you could just use Checkout in setup mode and collect the PaymentMethod and then start the Subscription. However, you run the risk of the initial payment failing in that case after you collect that PaymentMethod
Which would then require you to send the customer to the Billing Portal or Hosted Invoice Page to pay the Subscription
thanks, bismark