#j_allen_morris
1 messages · Page 1 of 1 (latest)
Hi 👋 can you share the ID of an example Checkout Session where you're ssing this behavior, so I can take a closer look at how it was created?
yes just a second
Payment Intent: pi_3NXVJoF6GTvFAnHX1soeO86c
Checkout Session:
cs_test_b1RTNenG7OL4idftCjbSJqBaNz71atuOnSaJdmHYvpl6sW5AsUt1ny9tTE
Thank you, pulling that up.
I think it's a guest, not a customer
Alright, looks like you're running Checkout Sessions in payment mode, so I think the parameter you'll want to adjust is customer_creation by setting it to always:
https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation
That should force the Checkout Session to always create Customer objects, but let me know if that still doesn't do what you're hoping.
so I just add a new parameter that is 'customer-creation' => 'always' ?
customer_creation
Yup, it defaults to if_required if it is omitted, which only creates Customer objects when the mode is subscription.