#eric-Subscriptions
1 messages · Page 1 of 1 (latest)
Hi there, yes Stripe will create PaymentIntents under the hoods for the invoices generated for a subscriptions.
To trace back subscription from a PaymentIntent, you can expand the [invoice.subscription] field when retrieving a PaymentIntent.
Perfect, that sounds great! Follow up question -- just out of curiosity. Is there a way to set it up such that certain fields are expanded by default, particularly when they're sent via webhooks? Or is that "expandable" feature only available via API calls that I make?
I'm afraid that currently there's no way to automatically include expandable fields in webhook event, you'll need to make API call in order to retrieve them.
Sounds good ! Thanks for the help! This Discord chat has been incredible for working with the Stripe platform !!
I'm very happy to hear that!