#ninjamasta_api
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/1286749020030505060
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello! So you're adding a separate line item instead of using the shipping parameters on the Checkout Session to specify shipping?
Correct, I believe that is required when mode='subscription'
If I try to use shipping_options with a subscription mode, I get: Error: shipping_options cannot be used in setup or subscription mode.
Ah, gotcha. I'm not sure if there's a way to exclude a line item from a discount, but let me check...
I also tried adding the discount directly to each line item individually, but that throws an error as well (with subscription mode).
Yeah, I don't think there's a way, unfortunately. The only practical workaround I can think of would be to do something like reduce the price of the Subscription manually, or adjust the shipping line item's amount to account for the discount being applied.
Ok, thanks for checking. Not a big deal, we will just leave the discount on shipping.