#Ömer Bayram
1 messages · Page 1 of 1 (latest)
Hi
How can I calculate the cancel_at param with moment in order to charge exactly €113 in the 3rd month?
I'm not sure if this a direct Stripe related question. I think you need to compute exact 3 months using a time library according to your framework, the timestamp need to be in UTC. You need to provide the exact timestamp in order not to have extra/minus amounts charges.
How are the "exact 3 months" defined?
So if the billing_cycle_anchor is the unix timestamp of 02/29/2024 at 12 am, when would be than the "exact 3 months" after it?
You need to use a time library for that and do something like .plus(3, MONTH)...