#erre_ci
1 messages · Page 1 of 1 (latest)
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?
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....
Can you send me the customer ID of a customer that you are doing with that you are only seeing subscription related payments for?
yep...
jtk the cs id is cs_live_a1vlxdWeaWsbBOBpja9gsAE0z4hvihlJpc8INbKGJu49tlmHj1N6Bllmvn
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
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
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
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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