#LeeEight-checkout
1 messages · Page 1 of 1 (latest)
Hi! So you want the CheckoutSession to always create a new customer? Then pass customer_creation: "always" as mentioned here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-customer_creation
Yes, I found this document. I have many payments through Payment Links. I tried to use Export function in Payments page but no data about customer. How I can setup customer creation for payment links?
I tried on a test account and it set to "always". But in Live account, it's "if_required"
Are you creating Checkout Sessions or Payment Links?
I created Payment Links. I need to export all succeeded payments
So you are listing all your Payment Links, and try to find the corresponding customers?
yes, my purpose is get the data of customer through payments
Got it! Let me look into this.
I saw all customers saved as Guest
Sorry for the delay, Discord is quite busy.
Could you share a link to one of your Payment Link? Or your account id (It's at the top of this page: https://dashboard.stripe.com/settings/account)?
My account: benefitpocket.com.au
This is my payment link: https://buy.stripe.com/8wM29j6KG90xgnKfZb
Got it! So yes this looks like this is the expected behaviour. For payment link, customer_creation is set to if_required and cannot be changed.
So a guest customer will be created, and you can learn more about this here: https://support.stripe.com/questions/guest-customer-faq
If you want more control over the customer creation process, then I would recommend using Checkout Session instead.
But I tried on my test account: Benefit Development
customer creation is set to "always"
Here is a link of test account: https://buy.stripe.com/test_fZe6pP4hQ4fweic00D
That makes sense, because that's something that changed recently with the API.
So one of your account has the old behaviour ("always") and one account has the new behaviour ("if_required")
You could try to send a message to Stripe support explaining your situation, and see if they can make your two accounts behave the same way. https://support.stripe.com/?contact=true