#jimmiller-checkout-customer
1 messages · Page 1 of 1 (latest)
hello, yes you can, you just pass the customer: param when creating a CheckoutSession
Thanks. How do I retrieve the list? I tried
Stripe::Checkout::Session.list({customer:'cus_ABC123'}) but get a 400 error unknown parameter: customer
you can't list CheckoutSessions on a Customer, that isn't a supported param for that endpoint: https://stripe.com/docs/api/checkout/sessions/list
instead you list PaymentIntents on a Customer: https://stripe.com/docs/api/payment_intents
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
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. Well, I want to list out all successful purchases by a particular customer. I have the customer ID and the session ID. How would I do that?
Like a purchase history
what I mentioned above is what you do, list PaymentIntents on the Customer