#masud
1 messages · Page 1 of 1 (latest)
Hmm no I would expect those listed payment intents to include payments associated with invoices, if applicable for the customer
If you wanted to get the payments associated with invoices for a specific subscription, you could list invoices (for some customer or subscription ID) and use expansion to include the payment_intent in the response:
https://stripe.com/docs/api/invoices/list#list_invoices-customer
https://stripe.com/docs/api/expanding_objects / https://stripe.com/docs/expand
expand[]=data.payment_intent
yea so this works to get a list of invoices
Stripe::Invoice.list({ subscription: @project.service_checkout.stripe_subscription_data["id"] })
yea i figured PaymentIntent.list would give me ALL payments a platform receives. seems like it only does it for one_time unless i'm doing something wrong.