0👍
According to the docs you can register it as a plugin where you can define a testMode
option to override the insecure host warning
import Vue from 'vue';
import { StripePlugin } from '@vue-stripe/vue-stripe';
const options = {
pk: process.env.STRIPE_PUBLISHABLE_KEY,
testMode: true, // Boolean. To override the insecure host warning
stripeAccount: process.env.STRIPE_ACCOUNT,
apiVersion: process.env.API_VERSION,
locale: process.env.LOCALE,
};
Vue.use(StripePlugin, options);
- [Vuejs]-What can i do to make my laravel and vue run on the same localhost / domain
- [Vuejs]-How to use the electron functions inside of a Vue component
Source:stackexchange.com