#Brazeor

1 messages · Page 1 of 1 (latest)

crude krakenBOT
boreal badger
#

Hello! The calculations you're making seem correct. Stripe calculates the amounts the same way you're doing it. I can't explain the difference in the second case without looking at the actual Subscription/Invoice in question. Do you have the ID of either of those?

sand ore
#

Hey
If my calculations look correct to you, then that's good enough (the user in the second case might have read the billed price wrong).
I mostly wanted to make sure that the % of the old subscription that is subtracted is calculated using

  • Used time : exact time by the minute (or second if using UNIX timestamp?)
  • Month days : number of days until same day of the next month, like for example
    • 23 March > 23 April > 23 May > 23 June > etc.
    • 31 January > 28 February > 31 March > 30 April > 31 June > etc.
      If that's correct then it should be alright 👍
boreal badger
#

Yep, that's correct. I believe we have some docs about this, let me find them...