#krishna1433-subscription

1 messages ยท Page 1 of 1 (latest)

spring parcel
#

Hi ๐Ÿ‘‹

You can retrieve the Payment Intent and expand its invoice field. Within the response the invoice hash will contain the subscription's ID in the subscription field.

https://stripe.com/docs/api/payment_intents/retrieve
https://stripe.com/docs/api/expanding_objects
https://stripe.com/docs/api/invoices/object#invoice_object-subscription