adonis-paystack
An addon/plugin package to provide PayStack payment services in AdonisJS 4.1+
![Coveralls](https://img.shields.io/coveralls/stitchng/adonis-paystack/develop.svg?style=flat-square)
Getting Started
Install from the NPM Registry
$ adonis install adonisjs-paystack
Make use of it inside a HTTP/Web Socket Controller(s)
const paystack = use('PayStack')
class CheckOutController {
async initTransaction({ request, response }) {
let response = await paystack.initializeTransaction({
callback_url:"https://example.com/hooks/paystack",
amount: 3000,
email: "xyz@abc.com"
})
return await response.status(200).json({
data: response.body
})
}
}
module.exports = CheckOutController
License
MIT
Running Tests
npm i
npm run lint
npm run test
Credits
Contributing
See the CONTRIBUTING.md file for info