#ayuan

1 messages · Page 1 of 1 (latest)

rustic prawnBOT
hollow walrus
#

Hello

dusky aspen
#

hello bismark. thanks for entertaining my question

hollow walrus
#

What do you mean exactly by "invoice template"?

dusky aspen
hollow walrus
#

Ah yes the branding should still apply here for what you set in your branding on your account

dusky aspen
#

hmm. actually, my real request is
when creating invoices for subscriptions, how do i specify the account tax Id i want to use?

hollow walrus
dusky aspen
#

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

hollow walrus
#

And you are using Stripe Checkout?

dusky aspen
#

yes

hollow walrus
#

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.

dusky aspen
#

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

hollow walrus
#

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

dusky aspen
#

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

hollow walrus
#

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

dusky aspen
#

thanks, bismark