#akdj16
1 messages ยท Page 1 of 1 (latest)
๐ happy to help
have you tried one with a free trial?
let me go back one step backwards, are we talking about Billing/Subscription invoices or one-off invoices?
Hello!, yes it's about subscription invoice. no I didn't try free trial.
I will try now ๐
the idea is related to whether the invoice has a payment_intent or a pending_setup_intent
in the first case, invoice.payment_succeeded will be fired before invoice.paid in the second only invoice.paid will be fired when the pending_setup_intent gets confirmed
did it work?
I just tested it.. and no it doesn't work ๐ฆ I checked the free trial subscription object, it has the "pending_setup_intent": "seti_1LlB0VB5c8xuItaNvApPb0GR" and has not payment_intent field, but I still get the two events
ok!
could you please share the subscription/invoice ids
ok so my bad, I was rechecking the doc
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
both of these events will be fired unless the invoice was paid out-of-band (meaning outside of Stripe)
in this case only invoice.paid will be fired
so whether it's a 0 amount or not we try to pay the invoice and those events are fired
let me know if you need any more help
ok ๐