#sintonz-PaymentIntent
1 messages · Page 1 of 1 (latest)
yes i did that but then how do you get only monthly/yearly ones?
or one time payments that are not recurring
hmm let me see
Inside Product you should have Price
Ah yes, sorry
np
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Price Id inside Subscription Item
Then you want to list all Invoices bound to each of the Subscription: https://stripe.com/docs/api/invoices/list#list_invoices-subscription
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok
then each Invoice will have a PaymentIntent
I did most of what you said but now with the payment intent id from the invoice what do i do ? https://dpaste.org/TYuY
the payment intent list does not allow you to pass in the payment intent id
Thank you. Yes from there you have a list of PIs comes from Subscription, and a list of all PIs regardless where they come. You would want to loop through the latter and exclude those from the former, to get PIs come from pure one-off payment
it's array manipulation on Python, I think
wow that sounds difficult...
payment intent id does not exist in the subscription object?
payment intents that come from subscriptions = all invoice object payment intents like in the loop I have?
payment intents regardless of where they came from = the top code where i list payment intents?
yes!
ok the array manipulation idk how to do