https://github.com/ecj222/vue-paystack2
Paystack module for Vue that supports Vue 2 & 3.
https://github.com/ecj222/vue-paystack2
composition-api module paystack vue vue-demi
Last synced: 2 months ago
JSON representation
Paystack module for Vue that supports Vue 2 & 3.
- Host: GitHub
- URL: https://github.com/ecj222/vue-paystack2
- Owner: ECJ222
- License: mit
- Created: 2021-10-03T11:44:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-12-09T07:26:43.000Z (over 3 years ago)
- Last Synced: 2024-11-07T05:47:31.111Z (8 months ago)
- Topics: composition-api, module, paystack, vue, vue-demi
- Language: Vue
- Homepage: https://www.npmjs.com/package/vue-paystack2
- Size: 419 KB
- Stars: 15
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![]()
Vue-Paystack2 is a Paystack payment gateway integration for Vue which
provides Universal support for Vue 2 & 3
## Table of Contents
- [✨ Install](#install)
- [✨ Usage](#usage)
- [📖 License](#license)## Install
Install this as your plugin's dependency:
```bash
npm i vue-paystack2
# or
yarn add vue-paystack2
```If you are using Vue2 you would need to install Vue's Composition API:
```bash
npm i @vue/composition-api
# or
yarn add @vue/composition-api
```## Usage
```bash
Button
import VuePaystack from "vue-paystack2"
export default {
name: 'App',
components: {
VuePaystack
},
data () {
return {
paystackKey: '...',
email: '...',
firstname: '...',
lastname: '...',
amount: 0,
reference: '...'
}
},
methods: {
onSuccess (event) {
// ...
},
onClose () {
// ...
}
}
}```
## License
Inspired by [vue-paystack](https://github.com/iamraphson/vue-paystack)
MIT License © 2021 [Enoch Chejieh](https://github.com/ECJ222)