#jimmiller-checkout-customer

1 messages · Page 1 of 1 (latest)

teal charm
#

hello, yes you can, you just pass the customer: param when creating a CheckoutSession

quasi sundial
#

Thanks. How do I retrieve the list? I tried
Stripe::Checkout::Session.list({customer:'cus_ABC123'}) but get a 400 error unknown parameter: customer

teal charm
#

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

quasi sundial
#

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

teal charm
#

what I mentioned above is what you do, list PaymentIntents on the Customer