#mp_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/1425793459780059207
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there. I can see in the subscription update request (https://dashboard.stripe.com/logs/req_K6ZpvJf2040oeE) that proration_behavior: "always_invoice", was passed, which meant that a credit was applied to the invoice to account for the unused time. If you don't wish this to happen, you should pass proration_behavior: "none" and the full amount would be charged. See these docs for more info: https://docs.stripe.com/billing/subscriptions/prorations#disable-prorations
Hey. We do prorations if you upgrade in the middle of the month/year, but here the user had paid a monthly fee on Aug 26th which gives him the subscription until Sep 26 but then he upgraded on Oct 6 -> in that case no prorations should happen as it is not in the middle of a paid month, right?
It does appear to be in the middle of a billing period, but I see that it had been paused and marked as uncollectable (https://dashboard.stripe.com/logs/req_7c5mI27iQL5UYF). When doing proration in this case, it treats the invoice as one that could have been paid.
It's the expected behaviour, so would need to be accounted for, but in general, if you don't want prorations to occur, the best thing is to pass proration_behavior: "none" as described above
"none" will not prorate in any case right?
Correct
No, we don't want that. What would be the best way to resolve this situation?
Doesn't prorations take into account if you've paid or not?
No, it's assumed that the most recent invoice in the billing period is paid
So for the invoice generated in your initial question, what would your preferred outcome have been? There is a line item for the full amount of the invoice, but you'll see there's an additional line item with a negative amount, which represents the proration.
The expected outcome would be that if a payment is not made, there should've been a full charge
In that case, you may have to implement some custom logic yourself. For example, looking at the status of the most recent invoice, and making manual adjustments yourself