@vqiqi/vue-paystack2
v0.1.0
Published
<p align="center"> <img src="./src/assets/vue-paystack.png" width="600"/> <br> <p align="center"> <b>Vue-Paystack2</b> is a Paystack payment gateway integration for Vue which <br> provides <b>Universal support</b> for Vue 2 & 3<br> </p> <p align="center">
Downloads
5
Maintainers
Readme
Table of Contents
Install
Install this as your plugin's dependency:
npm i @vqiqi/vue-paystack2
# or
yarn add @vqiqi/vue-paystack2
If you are using Vue2 you would need to install Vue's Composition API:
npm i @vue/composition-api
# or
yarn add @vue/composition-api
Usage
<template>
<VuePaystack :paystack-key="paystackKey" :firstname="firstname" :lastname="lastname" :email="email" :amount="amount" :reference="reference" :callback="onSuccess" :close="onClose">
Button
</VuePaystack>
</template>
<script>
import VuePaystack from "vue-paystack2"
export default {
name: 'App',
components: {
VuePaystack
},
data () {
return {
paystackKey: '...',
email: '...',
firstname: '...',
lastname: '...',
amount: 0,
reference: '...'
}
},
methods: {
onSuccess (event) {
// ...
},
onClose () {
// ...
}
}
}
</script>
License
Inspired by vue-paystack
MIT License © 2021 Enoch Chejieh