#harcon_code
1 messages ¡ Page 1 of 1 (latest)
đ 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/1263106906025627769
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- harcon_api, 21 hours ago, 19 messages
hi there!
can you share the request ID (req_xxx)? you can find it here https://dashboard.stripe.com/test/logs
The request ID for the customerSession request? I don't think it's even getting to make the request
the create function is undefined, so wondering if I need to update my stripe package, or point towards a different API vers?
Really hoping it's not the former
but getting an error in the above code that 'create' is undefined.
son where do you see the error exactly? can you share the exact error you see?
also, are you using the latest version of the Stripe SDK?
Difficult for me to track down anything more verbose than this: Cannot read properties of undefined (reading 'create')
The error is happening on my backend when I try to create the customer session alongside a paymentIntent as recommended in the docs
I'm guessing you just need to update your version of the Stripe SDK
since this is a new API
our package version is 8.1.0
is it a matter of changing the api version or the package version?
are you using stripe-node?
having to change the package version will result in a lot of issues, and so far I haven't had to do that to implement any of stripes newer features
yes
the package is just called 'stripe' though, if that's what you mean
the latest version is 16.3: https://github.com/stripe/stripe-node/releases/tag/v16.3.0
so you seem to have an old version that doesn't support this API
and so far I haven't had to do that to implement any of stripes newer features
well in the version you are usingcustomerSessionsdoesn't exist. so the only way to use it is to update to a newer version.
okay, thanks