#GazalaM - calculate backdated billing date

1 messages · Page 1 of 1 (latest)

atomic horizon
#

Hello, checking in to Stripe ways to see this, though it might be easier to use your language's time and date library to check if your date is more than a month in the past and has the same day value or earlier

atomic horizon
#

Apologies for dropping off of this thread. The best thing I can see for this on our side would be the "preview an upcoming invoice" call which could help you see what invoice would be generated by creating a subscription with those settings. I haven't been able to play around with what that would look like if you try to set this more than a month in the past but there are probably clear indicators that you can use https://stripe.com/docs/api/invoices/upcoming

#

It does seem like the easiest way would be using a date library in your language where you can numerically compare the month and day fields of a timestamp.