#anil8486

1 messages ยท Page 1 of 1 (latest)

solid heathBOT
green trail
#

Hello what is your question?

versed citrus
#

I am using stripe.checkout.sessions.create and using subscription mode
I have done subscription yesterday at 7:30 , today for the same customer its showing draft there

green trail
#

Can you send me the customer's ID? (cus_123)

versed citrus
#

cus_OFCRdlOk8friZy

#

This is the customer id

green trail
#

Thank you

versed citrus
#

What can be the issue here

#

Sorry the timing is 8:30,

green trail
#

It is expected for invoices to be in a draft state for an hour before finalizing automatically

versed citrus
#

Okay so today its an hour late and tomorrow also an hour late from today's time

#

I want to finalize early like on what time it was created

green trail
versed citrus
#

How to do in api call

solid heathBOT
green trail
#

Are you using the API already? That link shows how to make the call with each of our client libraries

versed citrus
#

In docs stripe.invoices.finalizeInvoice method is ther

#

Do i need to use it?

opal zodiac
#

๐Ÿ‘‹ stepping in here as Pompey needs to step away

#

Yep that method is how you would manually finalize a renewal Invoice without waiting the 1 hour that it would be in draft

versed citrus
#

I am using webhook also

#

So i have to use the above method to finalize early inside webhook event?

opal zodiac
#

Yep

#

You would listen for invoice.created

#

Then you would use that method if it isn't the first Invoice for a Subscription

versed citrus
#

Okay thanks.
Like i created subscription today at 8:30 , tomorrow it will wait for an hour and will finalize at 9:30 , so day after tomorrow it will finalize at 9:30 or wait for an hour?

opal zodiac
#

Each time would be 8:30 creation and 9:30 finalization

versed citrus
#

Okay thanks for updating.