#danhowardmws
1 messages · Page 1 of 1 (latest)
👋 happy to help
but how should we supply the name when it is a 'guest' checkout and we don't have a logged in user?
if you don't require a customer name then you 'd have to account for that in the fraud risk
We do collect the customer's name during our checkout process (even for guest checkout). But I can't see how to supply it to Stripe.
you describe the way in your question
You mean we have to create a Stripe Customer? (https://stripe.com/docs/api/customers/create)
But then if the same person uses our shop again and does another 'guest' checkout then won't we have a duplicate customer in Stripe?
Can't we just set a 'customer name' for the one single transaction? (without linking it to a separate Customer object)?
Hey! Taking over for my colleague. Let me catch up.
No you need to create a Customer object using the API reference you shared, and then create a PaymentIntent with that customer Id.
OK, so a new Customer for every guest checkout?
Not necessary, you can keep track of your customers (by email or something else) and use existing Stripe Customer object
- Search for existing Customer by email
- If we have an existing Customer, check the name matches, update it if it doesn't.
- If we don't have an existing Customer, create one.
- Finally create the PaymentIntent
Yes that could a good flow