#erre_ci

1 messages · Page 1 of 1 (latest)

quasi boughBOT
rugged timber
#

As far as I know they should still be returned even when expanding subscription specific fields. Are you paginating if the customer has more than 10 payments?

short wave
#

yes im paging the result, below my code

mylogger.log(f"Payment Intents: {len(payment_intents)}")
for payment_intent in payment_intents.auto_paging_iter():
    print(payment_intent)```
#

i dont know if you are able to check all stripe users, if so this customer cus_G6N4TKZppaKLJT has 4 recurring invoice and one cs_live payment, my code above return only the four entries and not the cs entry....

rugged timber
#

Can you send me the customer ID of a customer that you are doing with that you are only seeing subscription related payments for?

short wave
#

yep...

#

jtk the cs id is cs_live_a1vlxdWeaWsbBOBpja9gsAE0z4hvihlJpc8INbKGJu49tlmHj1N6Bllmvn

rugged timber
#

Gotcha, looks like thaat was for customer cus_OZpzgxaLPOCtGZ

#

So when you list payments for cus_OZpzgxaLPOCtGZ, do you not get any payment intents back?

#

I see one one-time payment on that customer

short wave
#

is its email equal in both cus_ ids (amartinez77@gmail.com) ? just so I can explain my problem, I use email to register payments....

#

i confirm, using cus_OZpzgxaLPOCtGZ i got the single pi

rugged timber
#

Ah, so multiple customers can have the same email address. To get the full list of payments for an email address I think you would need to list all customers for the email and then list payment methods for each of those customers
https://stripe.com/docs/api/customers/list#list_customers-email

#

To make the payments appear under the same customer ID, you will want to add logic to provide that customer ID when creating your subscriptions/checkout sessions/payment intents/etc

quasi boughBOT