I have the customer ID for a specific customer in Stripe. How can I retrieve all the charge objects for this customer?
The customer object can be retrieved using the following code:
JavaScript
x
2
1
Customer = stripe.Customer.retrieve(customerId)
2
Advertisement
Answer
This will do it
JavaScript
1
2
1
Charges=stripe.Charge.list(customer=customerId)
2