#harcon_code

1 messages ¡ Page 1 of 1 (latest)

blissful wadiBOT
#

👋 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.

ruby stormBOT
#

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.

sinful ferry
#

hi there!

viscid epoch
#

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

sinful ferry
#

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?

viscid epoch
#

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

sinful ferry
#

I'm guessing you just need to update your version of the Stripe SDK

#

since this is a new API

viscid epoch
#

our package version is 8.1.0

#

is it a matter of changing the api version or the package version?

sinful ferry
#

are you using stripe-node?

viscid epoch
#

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

sinful ferry
#

and so far I haven't had to do that to implement any of stripes newer features
well in the version you are using customerSessions doesn't exist. so the only way to use it is to update to a newer version.

viscid epoch
#

okay, thanks