#Hevity-vue

1 messages · Page 1 of 1 (latest)

lone heron
#

Hello! What does your code look like?

obtuse wedge
#

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

lone heron
#

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?

obtuse wedge
#

Vue Stripe docs, it says I have to include it

lone heron
#

Where does it say that?

obtuse wedge
#

And I did it

lone heron
#

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?

obtuse wedge
#

idk if "pk: " is correct

#

What I get if I put exactly like the docs

lone heron
#

Quick question for you - are you using Vue 2 or VUe 3?

obtuse wedge
#

Vue CLI 3 (default setup)

lone heron
obtuse wedge
#

ohh T-T I see

lone heron
#

yeah 😦 I'm sorry about that!

obtuse wedge
#

No problem, anyway, Thank you for the help!