#BilalSaeedAlam

1 messages · Page 1 of 1 (latest)

thick apexBOT
tidal swan
#

👋 Hi there, Happy to help!

covert sparrow
#

So i want to ask one thing, if there is no user means customer id we have already then from frontend we will pass name and email and then first create customer and pass that customer id to setup intent?

#

?

tidal swan
#

You should passing the CustomerId if you are creating a Checkout Session for setup mode.

covert sparrow
#

Yep that's why i am asking should i take input from user like email and name and then pass these params to backend to create customer if there is no customer id?

#

No i thinks that's not a good option to create everytime a new customer id for same user?

#

??

#

Hey man where di you go?

tidal swan
#

Sorry it's quiet busy, I'm monitoring your thread, please be mindfull

covert sparrow
#

ALright

tidal swan
#

and pass that Stripe CustomerId into your checkout session

covert sparrow
#

Perfect and on which step it will take card info from user?

#

And just last thing like if we have users in our database and one of them is creating payment method, in which is passing email and name for creating customer. So if he delete is payment method and want to add new one, so should we need to create new customer with new email or we can use old one?

tidal swan
#

Perfect and on which step it will take card info from user?
Not sure I'm following here. Once the Checkout session is completed, a payment_method will be created and attached to the customer.

tidal swan
covert sparrow
#

Alright it means no need to update customer object if he changes his name or email

#

?

tidal swan
#

And keep using the same customerId for your Stripe Checkout Sessions

covert sparrow
#

Amazing this the the thing what i was asking for.

#

Thanks man

tidal swan
#

Happy to help!

covert sparrow
#

Have a good day

tidal swan
#

Thanks you too!