#prasun_api

1 messages ¡ Page 1 of 1 (latest)

fringe ventureBOT
#

👋 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/1349359987172048956

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

fluid pagoda
#

There is no uniqueness check, no. Checkout will default to creating a new customer when required, like for a subscription, unless you provide an existing one via customer param

feral bone
#

Okay, so every time a new customer will be created
If I provide a customer id then the subscription will be attached to that particular customer, right?
In that case I have to create customer earlier and then assign that cusotmer id to checkout session api?

fluid pagoda
#

If I provide a customer id then the subscription will be attached to that particular customer, right?
Yes
In that case I have to create customer earlier and then assign that cusotmer id to checkout session api?
Seems redundant? Checkout will do that for you. It's only really useful if you have an existing cus_xxx for a user in your system that has made a previous purchase

feral bone
#

if i create customer manually using api (without checkout session form) with same details then also different cusotmer will be created ?

fluid pagoda
#

Not if you pass that cus_xxx ID to the custoemr param when you create the session

fringe ventureBOT
feral bone
#

yes, got your point.
but my question is that if i create customer manually using customer api (without checkout session form) with same customer details then also different cusotmer will be created?