#shehzadnizamani_docs

1 messages ¡ Page 1 of 1 (latest)

rose bearBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1273893588291555453

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

verbal canyon
#

The steps will be as follows:

  1. Create a customer with the email address that associated to your own internal customer ID
  2. Set Stripe Customer ID (cus_xxx) in customer field when creating a Checkout Session: https://docs.stripe.com/api/checkout/sessions/create#create_checkout_session-customer
  3. When the customer comes back next time, check whether a Stripe Customer (cus_xxx) has been created. If yes, then use the existing customer ID

When customer field is set, new customer will not be created

full shard
#

Hi River,
A follow up question. What will happen in case when customer with current email address already exists in Stripe's system? Will this create a new customer with current email address in Stripe's system or Stripe will just return customer ID if customer already exists?

verbal canyon
#

Stripe doesn't de-duplicate and will create a new Customer with the same email address. Your system should ensure Customer creation request is only made when such a Stripe customer doesn't exist

full shard
#

Thanks for your response, this makes sense