https://github.com/stitchng/adonis-flutterwave-rave
An addon/plugin package to provide Flutterwave (Rave) payment services in AdonisJS 4.0+
https://github.com/stitchng/adonis-flutterwave-rave
adonis-framework adonisjs adonisjs-addon flutterwave-api flutterwave-rave flutterwave-ravepay-api
Last synced: 7 months ago
JSON representation
An addon/plugin package to provide Flutterwave (Rave) payment services in AdonisJS 4.0+
- Host: GitHub
- URL: https://github.com/stitchng/adonis-flutterwave-rave
- Owner: stitchng
- License: mit
- Created: 2019-02-10T20:51:05.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-21T23:02:25.000Z (about 7 years ago)
- Last Synced: 2025-08-02T12:01:31.672Z (9 months ago)
- Topics: adonis-framework, adonisjs, adonisjs-addon, flutterwave-api, flutterwave-rave, flutterwave-ravepay-api
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# adonis-flutterwave-rave
An addon/plugin package to provide Flutterwave (Rave) payment services in AdonisJS 4.0+
[![NPM Version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Coveralls][coveralls-image]][coveralls-url]

## Getting Started
>Install from the NPM Registry
```bash
$ adonis install adonisjs-flutterwave-rave
```
>Import and use
```js
'use strict'
const Rave = use('FlutterwaveRave')
class PaymentsController {
constructor(BillsHistory){
this.bills_history = BillsHistory
}
static get inject(){
return [
'App/Models/BillsHistory'
]
}
async chargeCard({ request, session, response }){
let response = await Rave.Card.charge({
cardno: "5273938738903039399"
})
console.log("RESULT: ", response.body.data)
return response.status(200).json({
data:response.body.data
})
}
}
module.exports = PaymentsController
```
## License
MIT
## Running Tests
```bash
npm i
```
```bash
npm run lint
npm run test
```
## Credits
- [Ifeora Okechukwu ](https://twitter.com/isocroft)
- [Ahmad Abdul-Aziz ](https://twitter.com/dev_amaz)
## Contributing
See the [CONTRIBUTING.md](https://github.com/stitchng/adonis-flutterwave-rave/blob/master/CONTRIBUTING.md) file for info
[npm-image]: https://img.shields.io/npm/v/adonisjs-flutterwave-rave.svg?style=flat-square
[npm-url]: https://npmjs.org/package/adonisjs-flutterwave-rave
[travis-image]: https://img.shields.io/travis/stitchng/adonis-flutterwave-rave/master.svg?style=flat-square
[travis-url]: https://travis-ci.org/stitchng/adonis-flutterwave-rave
[coveralls-image]: https://img.shields.io/coveralls/stitchng/adonis-flutterwave-rave/develop.svg?style=flat-square
[coveralls-url]: https://coveralls.io/github/stitchng/adonis-flutterwave-rave