#Zetickus - bill on last day
1 messages · Page 1 of 1 (latest)
Can you send me the snippet of code where you are creating your subscriptions? I think this is possible but will have to look a bit more
Sure:
const sub = await stripeClient.subscriptions.create({
billing_cycle_anchor: lastDayOfMonthAnchor,
customer: customerId,
cancel_at: cancelAtAnchor,
items: [
{
price: priceId,
},
],
})
☝️ Imagine lastDayOfMonthAnchor is February 28th. It will now charge 28th in March.
Unfortunately I am not seeing another way to set that. You can probably use a subscription schedule to change the anchor to the 31st in a month that has it, but unfortunately otherwise it looks like it will always be the 28th 29th or 30th at the moment otherwise. https://stripe.com/docs/billing/subscriptions/subscription-schedules
Huh... that is very unfortunate and surprising 🥴
I am honestly a bit surprised by that myself. I can put in feedback to add a feature like this but can't promise it will happen.
Would be nice, but yeah 🙃 I need it now, so I guess I will have to create some workaround with the subscription schedules...
Yeah, I am sorry the answer is more complex here. Glad we could find at least some way to do it at the moment