#TheUchi-payment_intent.succeeded
1 messages · Page 1 of 1 (latest)
Hi there!
Hmm okay
If you don't want to listen to the customer.subscription.updated event then you will need to retrieve the Subscription itself when you receive the payment_intent.succeeded webhook
So you basically would check if the invoice property is null or not on the PaymentIntent.
If it is not null, then you would retrieve the PaymentIntent and expand the invoice.subscription
The invoice will only be present whenever a subscription payment is done?
Or that will be in general?
Hello! I'm taking over and catching up...
The invoice property will be present on any Payment Intent associated with an Invoice, be it a one-off Invoice or a Subscription Invoice.
The Invoice's subscription property will only be populated when the Invoice is associated with a Subscription though.