#mp_api

1 messages ¡ Page 1 of 1 (latest)

dim deltaBOT
#

👋 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.

simple slate
floral mulch
dim deltaBOT
simple slate
#

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.

floral mulch
#

Which is technically wrong right?

#

As they never paid and it prorates

simple slate
#

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

floral mulch
#

"none" will not prorate in any case right?

simple slate
#

Correct

floral mulch
#

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?

simple slate
#

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.

floral mulch
#

The expected outcome would be that if a payment is not made, there should've been a full charge

simple slate
#

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