#tymm
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
https://stripe.com/docs/billing/subscriptions/prorations yes Stripe prorates to the second
however it seems like it is not the case for the request that i made
in the update i changed the subscriptionitem to a higher priced one, if stripe prorates to second i would expect the update to refund an amount with cents? because im getting a full refund of 100myr for the unused time
Let me take a closer look
sure
Is this the invoice that you have doubt? in_1OEispLouXJU4FDJ8rMZho8a
yes
So you are expecting Stripe to create two invoices for two subscription update requests?
i am expecting the following:
if stripe prorates to second i would expect the update to refund an amount with cents? because im getting a full refund of 100myr for the unused time
with the billing_cycle_anchor set to now, i would expect the final payable amount to be different between these 2 calls, but they are the same.
"these 2 calls" being theInvoiceUpcomingandSubscriptionUpdatecall. they both returns a payable amount for the update. except they are both done at a different time, so naturally i expects their amount to be different
What's the ID of the request of InvoiceUpcoming ?
i did an InvoiceUpcoming request to get the upcoming invoice of a subscription update. req_T23E89KsvIopnq
about 5 minutes later i did a SubscriptionUpdate request with the same params as the previous call. req_6QQZHxuOJL7Zlr
Ok, the proration_date is the same in both requests
- does that mean the billing_cycle_anchor is not a part of the equation for proration in this case?
so this is true?
This is conditional, you are getting the same amount for invoice because you've set the proration_date. You can try again with billing_cycle_anchor set to now without proration_date set and you should see different amount.
ok i guess its fine since the outcome is what i actually want, just am unsure if this is an intended behavior.
what about the proration amount?
doesnt stripe calculates proration down to second precision? because the final amount doesnt seem to reflect that
the proration_date is about a minute after the old billing cycle/ first subscription start date, so by right stripe shouldnt be giving a full price refund in the proration calculation?
ok i think it got rounded up since the amount could be 99.99 or something like that