#sukatoa
1 messages · Page 1 of 1 (latest)
Hey thanks. I've made a document to summarize the setup, the problem and my questions.
subscription_id = sub_1LUoOiHxUYbY7mq5KBbq8RWG
- Does Stripe consistently do this 4-5 hour gap between generating draft and charging/finalizing
invoice?
Generally it's supposed to be one hour. It can be longer than that though, especially if your subscriptions renew on the 1st of a month around midnight UTC, since it depends on load on our servers and there's a huge number of merchant's invoices being created at those times. For example we had some exceptional delays this Oct 1, and in September I saw delays of about 6 hours.
- Does Stripe have specific time(s) to charge and finalize invoices?
It's thebilling_cycle_anchorof your Subscription that you choose- May we know the pattern as to when would Stripe can predictably charge the invoices so we can make adjustments on our revisit process.
not sure what you mean by 'pattern'
you really need to use webhooks.
I got these. Thanks Karl for the lightning-fast response.
"not sure what you mean by 'pattern'"
If there's any hint we could determine as to when the Stripe actually charge it (exact date & time) given the billing_cycle_anchor which isn't being followed. Since it depends on the load, we understand this part
there's no hint, it just happens when it happens, as soon as it can based on the load on our system
Follow up question Karl:
What's the longest time (hours) the Stripe took the invoice to charge and finalize (from generating draft initially), so far on operation since the beginning
I'm not sure, that's not information I have or that we likely can share
all I can say is that if it takes more than 12 hours we'd consider that very unusual. If I understand your PDF, you saw a delay of 4 hours, which is definitely not ideal but it can happen when your invoice is scheduled for a busy period like the 1st of a month near midnight UTC as yours is.
We expect that you use webhooks to be notified of when a payment is made on an invoice and you allow a buffer on the access to your system for the customer.
https://stripe.com/docs/billing/subscriptions/webhooks#active-subscriptions
Your webhook endpoint updates the customer’s access expiration date in your database to the appropriate date in the future (plus a day or two for leeway).
Thanks for this, Karl. I have another follow up question:
When Stripe starts to generate the draft Invoice, does that invoice reflect as the new default invoice id on the subscription object?
do you mean latest_invoice ?
yes that's it
then the answer is yes
Great, I think that will be the indicator we'll use, to extend the timing from time to time.
Will this thread be added on my "ARCHIVED-STRIPE-LIVE" section right? because I wan't to review this one on the later time.
I don't think it will get added there no, but you can save the thread link (https://discord.com/channels/841573134531821608/1027140816126365716) on your side or just copy/paste the contents for now
Thanks much, Karl