Getting Started
Vue Stripe is an easy to implement, and well maintained Vue.js plugin for Stripe Checkout, and Elements.
Installation
Vue Stripe is available on NPM, or Yarn.
NPM
npm install @vue-stripe/vue-stripe
Yarn
yarn add @vue-stripe/vue-stripe
Usage
Import
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>