#alex.esch

1 messages · Page 1 of 1 (latest)

merry driftBOT
whole owl
#

If the payment was created without customer set, guest customer will always be created

barren bramble
#

hello
created or confirmed?

whole owl
#

created or confirmed?
What do you mean by confirmed?

barren bramble
#

we are creating payment intent
and after that, confirming

our customer can be guest, but can login during the checkout

and the problem in this case, 2 customers are created in stripe

whole owl
#

Are they two separate payment intents? Stripe doesn't create customer automatically for Payment Intent

#

Can you share the customer ID for both existing and guest customers?

barren bramble
#

well, seems in our case is only one payment intent

whole owl
#

Looking into them now

#

By the time when the payment was succeeded, guest customer has been created before updating the customer. You should set customer during Payment Intent creation request instead of updating with it later

barren bramble
#

well, it's not possible
because customer can be a guest which logs in during the checkout

#

so, steps

  1. payment intent created
  2. user continue as guest or login or is logged in already
  3. shipping info
  4. billing info
  5. payment intent completed
whole owl
#

If the customer is updated only after the payment is completed, then guest customer will always be created. It's not possible to avoid that

barren bramble
#

understood

#

thank you