| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Paystack payment gateway integration for Nuxt.js
# npm
$ npm install nuxt-paystack
# yarn
$ yarn add nuxt-paystackAdd 'nuxt-paystack' to the modules section of your nuxt.config.js file.
{
modules: ['nuxt-paystack']
}this.$paystack is now available and can be used in your components.
{
...
methods: {
initializePaystack() {
this.$paystack({
key: '', // Replace with your public key.
email: '',
amount: 0,
ref: '',
currency: '',
callback: () => {
// Do something.
},
onClose: () => {
// Do something.
}
})
}
}
...
}Note: that $paystack is a function which takes in an object as its argument with your paystack details in it, for more information on this you can check here.
This project is licensed under MIT
| Back | FazBrowse Home | New Git URL |