As a temporary fix to get it working, I’ve added the flag Stripe API Reference - Invoices to app/controllers/discourse_subscriptions/subscribe_controller.rb
Added:
automatic_tax: { enabled: true}
see below:
transaction =
::Stripe::Subscription.create(
customer: customer[:id],
items: [{ price: params[:plan] }],
metadata: metadata_user,
trial_period_days: trial_days,
promotion_code: promo_code_id,
automatic_tax: { enabled: true}
)
I believe I can run with this fix for a while, and then when it is eventually added as a feature, I can swap it back to the original. I need to consider this before I go live to make sure it isn’t going to be a big pain later.
Any thoughts on why this is a bad idea if I need it working before it is an official feature?