#Matty
1 messages · Page 1 of 1 (latest)
Hello, do you have the ID of this subscription so that I can take a look?
Sure! sub_1KgXzuBBamLIIR3ZVzhoZJlH
Here is the invoice as well: in_1MC2fCBBamLIIR3ZZHG5laGu
Thank you, checking in to them
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?
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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