#sukatoa

1 messages · Page 1 of 1 (latest)

spice geyserBOT
sharp swift
#

subscription_id = sub_1LUoOiHxUYbY7mq5KBbq8RWG

hexed steppe
#
  1. 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.

  1. Does Stripe have specific time(s) to charge and finalize invoices?
    It's the billing_cycle_anchor of your Subscription that you choose
  2. 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.

sharp swift
#

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

hexed steppe
#

there's no hint, it just happens when it happens, as soon as it can based on the load on our system

sharp swift
#

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

hexed steppe
#

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).

sharp swift
#

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?

hexed steppe
#

do you mean latest_invoice ?

sharp swift
#

yes that's it

hexed steppe
#

then the answer is yes

sharp swift
#

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.

hexed steppe
sharp swift
#

Thanks much, Karl