#cnguyen85
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- cnguyen85, 1 hour ago, 17 messages
Thank you. For now, for one subscription, I want to have all the payment associated with the amount and status of each one
When you list Invoices you can expand data.payment_intent to also get the PI in the response
ok so it's const invoices = await stripe.invoices.list({
subscription: subscriptionStripeId,
limit: 100,
expand: ['data.payment_intent']
});
Yup, that should work - try it out!
OK and what is the statut for the PI when it's refunded ?
I see only. requires_payment_method, requires_confirmation, requires_action, processing, requires_capture, canceled, or succeeded
The status of the PI wouldn't change at all - it would still be succeeded
You can try this all out in test mode yourself and see how it works
๐ (It'll all be on the Charge object associated with the PI, but still definitely test it out so you can see the full shape of all the associated objects)
Hi ๐
I'm stepping in as @fair frigate needs to go
Yes, you would go from expand: ['data.payment_intent'] to expand: ['data.payment_intent.latest_charge']