#mochihealth
1 messages · Page 1 of 1 (latest)
I want to display all of a customers payments and I want to show which product the payment was for
You would have to get that from the Invoice object. Do you know how to get the Invoice from the Payment Intent?
no
i see that its in the lastest_charge when i expanded it
can i expand that too
Yup!
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
You can expand up to 4 levels, so lines.<some_line_item>.price.product should be fine