#lucas_subscription-tax
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/1304231008408830024
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
celsian_subscription-tax
lucas_subscription-tax
@gilded sierra Can you provide a bit more details about what you tried and what you mean by "it keeps asking for additional fields"?
The api responds with: Stripe::InvalidRequestError: Missing required param: items[0][price_data][currency].
If I add currency it requests additional fields, I tried populating them all, but I'm not sure why it's asking for all of this. I just want to enable inclusive tax for this single Subscription, but it seems like it's trying to get me to create an entirely new price.
Gotcha, that's the part you misunderstood. When you pass price_data, it's to basically create a brand new Price object that they are going to be subscribed to.
So right now they are say on a $10/month Price price_1234.
You are now going to create a new Price price_ABCD for $10/month and mark that one as tax inclusive
Alternatively, you can find the Price they are subscribed to and update tax_behavior if it's not set yet: https://docs.stripe.com/api/prices/update#update_price-tax_behavior
Ah, got it. Thank you. Chat gpt failed to mention that part ๐ค
Regarding the tax behavior of the price, that would set it for every subscription using that price, is that correct?
yes