Reputation: 76229
I use metered usage prices in a monthly subscription, and tax rates are automatically calculated by Stripe Tax. Prices are set to be exclusive of tax, but I need to display the price including tax to the customer before the subscription is created. How do I fetch the tax rate for a customer/price combination?
The only thing I found is the Upcoming Invoice API. But the problem is that this does not appear to work with metered billing:
items := []*stripe.SubscriptionItemsParams{{ Price: "price_id", Quantity: stripe.Int64(1) }
invoice.Upcoming(&stripe.InvoiceUpcomingParams{
Customer: &cus.ID,
SubscriptionItems: items,
AutomaticTax: &stripe.InvoiceAutomaticTaxParams{
Enabled: stripe.Bool(true),
})
// => You cannot set the quantity for metered plans.
Normally I'd have to report usage using another API, but I can't do that with an upcoming invoice.
Upvotes: 0
Views: 86