#mochihealth

1 messages · Page 1 of 1 (latest)

limpid craneBOT
abstract egret
#

I want to display all of a customers payments and I want to show which product the payment was for

wheat void
#

You would have to get that from the Invoice object. Do you know how to get the Invoice from the Payment Intent?

abstract egret
#

no

#

i see that its in the lastest_charge when i expanded it

#

can i expand that too

wheat void
#

Yup!

abstract egret
#

so i see its in the lines data

#

can i expand the prduct in the plan or is that too far lol

#

do i need to make an additional request for each productId

wheat void
#

You can expand up to 4 levels, so lines.<some_line_item>.price.product should be fine