#erre_ci

1 messages · Page 1 of 1 (latest)

livid coralBOT
jagged saffron
#

Hello

#

Yes if you are going to rely on the PaymentIntent response then you would want to retrieve the PaymentIntent again and expand the invoice as well as the subscription

#

Are you familiar with expansion?

kindred eagle
#

Hi, no i dont know what is expansion

jagged saffron
#

Cool, take a look at the above doc

kindred eagle
#

ok

jagged saffron
#

Expanding responses allows you to see the response for multiple objects when you retrieve certain objects

#

Let me know if you have any questions after you read that doc

kindred eagle
#

ah ok so in one call i can get multi info

jagged saffron
#

Yep

kindred eagle
#

great it works! i used stripe.PaymentIntent.list(customer=customer_id, expand=["data.invoice"]) and it works as expected . thank you so much!