Getting Started
Vue Stripe is an easy to implement, and well maintained Vue.js plugin for Stripe Checkout, and Elements.
Yarn
NPM
Terminal
yarn add @vue-stripe/vue-stripe
Terminal
npm install @vue-stripe/vue-stripe
You just need to import your desired elements component wherever it is needed, and Stripe SDK will only be loaded by the time the component has been mounted.
<template>
<!-- stripe-element-card -->
</template>
<script>
import { StripeElementCard } from '@vue-stripe/vue-stripe';
export default {
components: {
StripeElementCard,
},
};
</script>
Last modified 1yr ago