An open API service indexing awesome lists of open source software.

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.

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)