#rian_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/1393287084814504006
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Could you share the subscription ID (sub_123) for the scenario described, so that I can take a look how your integration works?
sub_id: sub_1RjkjvFqArqfkwbM5sqOdHCf
our subscription upgrades are done through stripe billing portal flow
Is there a way to make them only pay $5 for the remainder of the month?
This may be possible with with the newbilling_mode: 'flexible': https://docs.stripe.com/billing/subscriptions/billing-mode#credit-proration-calculations. Checking it now
hm, i would have to upgrade api versions for this?
and i would need to change the subscription data for this rather than choose to do it during upgrade?
Thank you for the waiting! I'm still testing this
no problem ๐
Thanks for waiting! Upon testing, the discount is applied during the subscription creation. After updating to the new price, the discount will not be applied as the discount has been applied earlier. It will be treated as updating to the full price regardless which billing_mode is set
this includes the flexibility option?
so i guess there's no way to just charge the $5
Yes, even for flexible option. The discount will not be carried over to the upgrade since it has been applied earlier
ok thanks, i guess ill try to look for an alternative solution to my issues
Alternatively, you can set proration_behavior: 'none' and apply one-time invoice item with your own calculated proration with add_invoice_items:
i do it throught the stripe billing portal deep links rather than subscription api calls, i don't think I'm allowed to add any line items
Hi taking over here as river has to step out
hi duchess, but yeah i feel like im pretty restricted with customer billing portal at the moment, maybe its time for me to build a custom billing page
Yeah if you need to customize proration behavior like in the above example, you're going to have to unfortunately
i guess you dont have a solution to my original question either
No, my colleague's assessment was correct