#Matty

1 messages · Page 1 of 1 (latest)

frank fiberBOT
urban sand
#

Hello, do you have the ID of this subscription so that I can take a look?

mental pulsar
#

Sure! sub_1KgXzuBBamLIIR3ZVzhoZJlH

Here is the invoice as well: in_1MC2fCBBamLIIR3ZZHG5laGu

urban sand
#

Thank you, checking in to them

mental pulsar
#

This problem goes away in 6 mins because the invoice will process. The issue is how do we tell in the sub that this hasn't been attempted to charge yet.

#

Can I use the cancel_at date to determine if it hasn't been charged yet?

urban sand
#

So this is expected behavior for invoices, they take one hour to finalize at which point they will attempt to charge the user and can fail. Unfortunately the draft period can't be turned off by configuration. If you don't want to wait, you can listen for invoice.created events and finalize the invoice yourself when you get it https://stripe.com/docs/api/invoices/finalize

#

I will check but I don't think cancel_at would be a good indicator here. This will happen regardless of whether you have that timestamp set

mental pulsar
#

Bummer... OK. We use the subs to keep our customers informed of the status. It's kind of a lame workaround to have to look at the invoice to insure it's been processed.

#

I get it though... thanks for the info.