#sintonz-PaymentIntent

1 messages · Page 1 of 1 (latest)

fickle monolith
#

You would want to call the List PaymentIntent API and specify the range

proud silo
#

yes i did that but then how do you get only monthly/yearly ones?

#

or one time payments that are not recurring

fickle monolith
#

hmm let me see

proud silo
#

subscription items object unit_amount? For a specific price id?

#

or product id?

fickle monolith
#

Inside Product you should have Price

proud silo
#

ok

#

you mean inside the price you have product id

fickle monolith
#

Ah yes, sorry

proud silo
#

np

fickle monolith
#

Price Id inside Subscription Item

proud silo
#

ok

fickle monolith
#

then each Invoice will have a PaymentIntent

proud silo
#

i see hmm

#

so what order should i do this in?

proud silo
#

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

fickle monolith
#

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

proud silo
#

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?

fickle monolith
#

yes!

proud silo
#

ok the array manipulation idk how to do