#elianbraja
1 messages · Page 1 of 1 (latest)
There is a setting for this in your billing settings https://dashboard.stripe.com/settings/billing/automatic
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
We don't have a setting to void them specifically, and we only allow increments of 30 days for that setting but that may be helpful
Otherwise, if you create a subscription with a collection_method of send_invoice , you can define the parameter days_until_due
Which again wouldn't void the invoice but you can listen to the webhook for the invoice going past due and void invoices when that event happens
the problem is that I am using prorations and the customer must pay that invoice only withing that specific day. At midnight I want to void that invoice so that the customer is restricted to create a new invoice and re-calculate the prorations
what do you advise me in this particular case?
Ah so this is for one-off invoices. Checking in to if we have settings for that
Oh wait but this is for a subscription update.
We do have pending update functionality that will roll back subscription changes if the invoice isn't paid, I am unsure if there is a timing mechanism that we offer for that https://stripe.com/docs/billing/subscriptions/pending-updates
Does that sound roughly like what you are going for or are you handling that failure completely yourself?
I am not using pending-updates because it had some side-effects on my use case
I want to handle it myself
I want to cancel that invoice at midnight
so Stripe does not have any way to handle this, by auto-voiding the invoice at a certain time
?
If you are creating these as one-off invoices and using the send_invoice collection method, you can set days_until_due which will automatically switch the invoice to past due after that many days. https://stripe.com/docs/api/invoices/create#create_invoice-days_until_due
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Otherwise I don't think we have a built in timing mechanism for this otherwise so you may have to do your own scheduling here
ok, thank you