#jayamini_code
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/1324281710606815284
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Our goal is to ensure that both existing and future subscriptions align perfectly with the external coupon system's fixed 30-day and 365-day expiration cycles, without causing billing disruptions, incorrect current_period_end values, or unexpected webhook behavior.
When updating an existing subscription's price ID to one with a different interval (30 days or 365 days), will Stripe adjust the current_period_end correctly? If the interval change shortens or lengthens the billing period, will there be proration charges or credits?
Also Is there a better way to handle this issue than the way we have planned?
Thanks in advance for your help
hello! gimme a while to think about this!
When updating an existing subscription's price ID to one with a different interval (30 days or 365 days), will Stripe adjust the current_period_end correctly?
Maybe can you illustrate this with an example of what is "correct"?
If the interval change shortens or lengthens the billing period, will there be proration charges or credits?
yes, there may be proration charges or credits. In case you haven't seen this yet, you can use test clocks to mimic the passing of time : https://stripe.com/docs/billing/testing/test-clocks
will check the scenario with test clock
subscription ID: sub_1QbxsGKk6Qk5jHuWiCtEbYQ5
I've tested this subscription by updating price to a new price with interval: day, interval_count: 30 (new price id: price_1QcjhKKk6Qk5jHuWdXOvmzee)
user was charged with proration
Invoice Id: in_1QcjwbKk6Qk5jHuWAWYJaEU1
Hey! Taking over for my colleague. Let me catch up.
If you don't want to have proration, you'll need to set proration: none
You can learn more about prorations via this Guide:
https://docs.stripe.com/billing/subscriptions/prorations
actually proration won't be an issue, what we want is to migrate current monthly and yearly active subscriptions to plans with 30days and 365 days plans.
But we want this changed from their previous subscription start date (current_period_start) to the end date set from the new 30days plan. instead of creating a new plan starting from today.
would this be possible to achieve?
we don't won't to confuse users with a new charge with the plan change.
would this be possible to achieve?
I think yes you can use the price configuration you used (interval: day and interval_count: 30) you can create a subscription Scheduler fomr a subscription and tune the phases iterations:
https://docs.stripe.com/api/subscription_schedules/create#create_subscription_schedule-from_subscription