#roommate
1 messages · Page 1 of 1 (latest)
We don't have an event before the billing cycle change AFAIK, unfortunately
You probably need to setup a cronjob system and tracking before the billing cycle comes
I see, so if I set up a cron job system, is there a way to stop the charge coming from Stripe without cancelling the subscription (like leaving it in a "paused"/in dunning state)? Or should I just cancel the subscription to prevent the charge attempt?
stepping in on behalf of orakaro, actually there is an invoice.upcoming event that you can look at : https://stripe.com/docs/billing/subscriptions/webhooks
you can also pause subscriptions : https://stripe.com/docs/billing/subscriptions/pause
okay thanks! that is really helpful info
I have another question, because I was checking in stripe dashboard for the invoice.upcoming event
I noticed that the payment_intent on the upcoming invoice was null. Is there a reason this could occur?
as far as I understand, I would have to use the payment_intent on the invoice to then check the balance on the payment_method -- unless there's a more straightforward way to do the balance check
it hasn't been created yet
it's "upcoming" but it hasn't actually happened yet
wouldn't you be able to check the balance from the financial account object? https://stripe.com/docs/api/financial_connections/accounts/object#financial_connections_account_object-balance
then compare that to the amount which is going to be deducted on the upcoming invoice?
how do I get the id for the financial account?