#id10t

1 messages · Page 1 of 1 (latest)

proud mauveBOT
mellow flower
frosty ravine
#

hi. read that earlier. let me clarify...

  1. customer is new (no records in our database or in stripe)
  2. customer wants to buy
  3. we display a form (fname, lname and email on our end + the payment element). at this point the customer has not provided details yet so the payment element's pi was generated without a customer
  4. customer fills in info and completes the payment

now my struggle is between #3 and #4, there's no customer account yet in stripe.. i know that i can update the intent's customer after the fact but that won't attach the payment method. suggestions?

mellow flower
frosty ravine
#

oh! good idea re empty customer object! didn't even think of that.

#

the only downside being i might end up with lots of "empty" customers if customer aborts.

#

on the other hand, the option of updating the paymentintent's customer field after the fact doesn't seem to attach the paymentmethod.