#lord-aurelion_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/1275829045543829589
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
Hello, can you tell me more about how you would like this to work? Is there a specific calculation between the old price and new price that you are trying to do?
When the customer updates his subscription, it should makes the difference between the price of his old subscription and the new subscription, therefore exactly like the proration but without the calculation of the "unused time"
How can I do this?
Are you also resetting the billing cycle, or is it remaining the same?
Currently, with current proration, it resets the billing cycle
Do you want it to do that? Or would you prefer to not reset the billing cycle? Keeping the same cycle is an option as long as you aren't changing cycle lengths (like monthly -> yearly)
I mostly ask because if you want to change the cycle, I think what you need to do is calculate your desired proration, add a credit note to offset the amount of the new billing cycle, and then make your update call. So in your example Create a -6€ note and then update to the new price
Trying to think of what you would want to do if you want to keep the same cycle
To be honest, I don't know the best option but a customer should be able to upgrade from an annual subscription to a monthly subscription if they wish
Like a coupon? of -6€
Right. That is possible, but how you go about it depends on how you want your integration to behave.
Also you could use a coupon for that method, but I was talking about credit notes, which I think would be a bit easier to apply here. https://docs.stripe.com/invoicing/dashboard/credit-notes
If you don't want the cycle to reset, I think the most straightforward way would be to create a one-off invoice for the customer for the amount that you want to charge, listen for the invoice.paid event for that invoice, and then update the subscription without prorations when the invoice is paid.
You could technically do things to offset our real proration math, but that would probably make the invoice line items pretty confusing for the customer.
Yes I see, I didn't know about the credit notes, it actually seems simpler, I will think about this subject so that it is the least complex to apply, thank you