#halil-han-badem_api

1 messages ¡ Page 1 of 1 (latest)

dire roseBOT
#

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

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

prime swallow
#

it only expects an ID

#

does that clarify? @dry flume

dry flume
#

Thank you @prime swallow ,
Under normal circumstances, if customer information is entered (if the user is logged in to the system), Stripe is searched through the user's e-mail address and if the user is found, it gets its id value, but I think there is a problem in my codes. I will figure this out. Thank you for the tip. I'm adding the demo code sample to my message. Please let me know if you see anything wrong.

prime swallow
#

I think its the else condition in your code where you're setting customerId = await stripe.customers.create(...)

#

stripe.customers.create(...) returns a customer object

dry flume
#

ahh i got it now, thank you so much sir ❤️

silver anvilBOT