#Mathieu Ducrot-proration

1 messages · Page 1 of 1 (latest)

tender cobalt
#

Hello can you clarify what you mean there? Like do we calculate x out of y minutes used when prorating?

shell pine
#

Yeah

tender cobalt
#

Ah so you are asking how to make that calculation more course? I think the max period on a Stripe subscription is a year so I don't think bumping it up to a year would be possible

#

Can check in to the day ask

shell pine
#

I'm asking these because i have some delta about prorata when trying to recreate the invoice on our system, for like 1 or 2 cents. Is it possible to round up to euro instead of cents ?

#

or if the amount is based on cents, is it possible to round something like 49487 cents to 49500 cents ?

tender cobalt
#

I don't think we have that rounding build in but I believe you you can preview the proration and add a one-off item to round it however you want

#

Is the price in Euro or USD?

shell pine
#

Euro

#

what is this one-off item mechanism ? the cents shift occur on generated invoice not just upcoming preview

tender cobalt
#

Apologies for the delay in reply

next quartz
#

Hey @shell pine just wanted to close the loop here and ensure you saw @tender cobalt's update. As mentioned we don't have a mechanism to round prorations. If this is something you'd like then you will need to build a custom flow to calculate that and update the objects accordingly.

shell pine
#

Hi @next quartz thanks for passing by. From what i tested it seems theses cents shifting are also coming from our side with php precision config that need to be set and we are working on fixing that.
Doing a custom flow with proration recalculation and updating object on the fly seems heavy from our case (we are on a custom year subscription integration with multiple products and prices with conditional selection based on metadata).

The main focus on our side will be to have an exact total amount display for our invoice (based on yours). If the line by line reinterpretation still have some cents shifting we will just remove the unit price and merge all line as one for integration simplicity.

zenith basalt
#

THat's right, there's no support for rounding like that, so it's something you'd need to implement in your integration, perhaps via adjustment line items or discounts to round

shell pine
#

Got it, we'll continue testing prorata with php precision being set and also check adjustment line. We need to work more on that. Thanks all for your answers !

zenith basalt
#

No problem!