#_047__
1 messages · Page 1 of 1 (latest)
Hello 047_, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• 047_, 4 days ago, 3 messages
There isn't a direct way to tell. However, subscription related PaymentIntents should have the invoice parameter filled with an invoice ID
https://stripe.com/docs/api/payment_intents/object?lang=cli#payment_intent_object-invoice
You can expand that invoice and look at subscription parameter
https://stripe.com/docs/api/invoices/object?lang=cli#invoice_object-subscription
if there is a non-null value, then its for a subscription
u mean i can use the invoice_id to get the invoice then check the subscription param?
You can expand invoice when retreiving the payment intent
https://stripe.com/docs/api/expanding_objects?lang=cli