#Hevity-vue
1 messages · Page 1 of 1 (latest)
Hi hi,
"index.html"
<script src="https://js.stripe.com/v3/"></script>
I'll print the rest so it don't put too much text here
main.js
"Store.vue" the file where I'm trying to test the Stripe
You shouldn't need <script src="https://js.stripe.com/v3/"></script> at all if you're using Vue Stripe (at least that's my understanding) unless you're trying to use specific Stripe.js methods that are not available with Vue.js
What guide have you been folllowing?
Vue Stripe docs, it says I have to include it
Where does it say that?
Ah, sorry about that - didn't realize you need to use this if you want to call confirmCardPayment with Vue Stripe
index.js?acaf:1 Uncaught TypeError: Cannot set properties of undefined (setting '$stripe')
What specific line of code is this point to?
not sure but I think is from here
idk if "pk: " is correct
What I get if I put exactly like the docs
Quick question for you - are you using Vue 2 or VUe 3?
Vue CLI 3 (default setup)
Ah, I believe that's the issue - Vue-Stripe doesn't support Vue 3 yet (https://github.com/vue-stripe/vue-stripe/issues/148)
ohh T-T I see
yeah 😦 I'm sorry about that!
No problem, anyway, Thank you for the help!