#hajoshi
1 messages ยท Page 1 of 1 (latest)
Can you share an example Checkout Session ID cs_xxx
Can you clarify the issue?
sure
issue is, when i make payment from stripe checkout session with email : hardik@email.com and once payment complete it will add hardik@email.com to customer in stripe dashboard section
after that second time someone make payment from stripe checkout session with different email then it will update the old one with alternative email
and consider old one as alternative
Yup, that's how Guest customers work: https://support.stripe.com/questions/guest-customer-faq
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
If you need to persist customer data, you'll need to tell Checkout to create a Customer object: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
if i don't want gust customer then what's the proper way to add customer with checkout session ?
We changed this behaviour in the latest API version:
When creating a Checkout Session in payment mode, the default value of customer_creation has changed from always to if_required.
https://stripe.com/docs/upgrades#2022-08-01
You'd pass customer_creation: 'always' when creating your Checkout Session
np!