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

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+

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