Closed mastashake08 closed 3 years ago
Did you install the new package from @triniwiz/nativescript-stripe
?
Also the method is now createCardToken
I figured that out but when I do the constructor new Stripe(key) it returns an empty object {} this.stripe = new Stripe(this.stripeKey)
The card doesn't show up
You need to register the view
import Vue from 'nativescript-vue';
import CardView from '@triniwiz/nativescript-stripe/vue';
Vue.use(CardView);
Bro I did that already. It's not working
Try CreditCardView
That's what I did at first then I tried CardView
Do you have WhatsApp?
After ns migrate to Nativescript 7 I get the following error Module not found: Error: Can't resolve 'nativescript-stripe'
I have to import like this import {mapGetters, mapActions, mapState} from 'vuex' import {Stripe} from '@triniwiz/nativescript-stripe' When I do this I get the error stripe.createToken does not exist as a fuction