0.0.9 • Published 2 years ago

vue-paystack2 v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Table of Contents

Install

Install this as your plugin's dependency:

npm i vue-paystack2
# or
yarn add 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

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago