#Stan-vue-error
1 messages · Page 1 of 1 (latest)
Hi there 👋 please bear with me a moment while I look this over.
We don't have an official first-party library for Vue, so I'm not familiar with what the above code is trying to do. Do you have details about the stripe package that you're trying to leverage?
Looking at the exception stack, it looks like our Node library is what's being pulled in, and I'm not sure why that wouldn't work within a Vue project. There may be members of the community in #841573134531821615 that are more familiar with this framework than I am.
Our alternatively you can look into solutions built by our partners specifically for Vue:
https://stripe.com/partners/directory?q=vue
Sure, I use this one, the official I guess ^^
https://www.npmjs.com/stripe
And I followed all I saw in the documentation
My understanding is that Vue is a frontend infrastructure, but the Node library that you're trying to import is a server-side client. So I wouldn't expect that scenario to work.
Yes, the stripe package is a server library meant to be used with a secret key on your server only, not in a client application
You need ot investigate the use of Stripe.js & Elements in your client app. While Stripe offers no direct support for Vue.js, there are some community libraries that help with integration of Elements in Vue applications.
Ooh okay ! Thank you !