# adonisjs-flutterwave-rave

> An addon/plugin package to provide Flutterwave (Rave) payment services in AdonisJS 4.0+

Latest version **0.0.2** (published 2019-03-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install adonisjs-flutterwave-rave
pnpm add adonisjs-flutterwave-rave
yarn add adonisjs-flutterwave-rave
bun add adonisjs-flutterwave-rave
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2019-03-08 |
| First published | 2019-03-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 7.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | stitchng |
| Keywords | ravepay, flutterwave, adonisjs, APIs, adonis-framework, payments, adonisjs-addon |

## Links

- npm: https://www.npmjs.com/package/adonisjs-flutterwave-rave
- Repository: https://github.com/stitchng/adonis-flutterwave-rave
- Homepage: https://github.com/stitchng/adonis-flutterwave-rave#readme
- Issues: https://github.com/stitchng/adonis-flutterwave-rave/issues
- npm.io page: https://npm.io/package/adonisjs-flutterwave-rave

## Dependencies (3)

- [debug](https://npm.io/package/debug.md) ^3.1.2
- [ravepay](https://npm.io/package/ravepay.md) ^1.2.0
- [@adonisjs/generic-exceptions](https://npm.io/package/@adonisjs/generic-exceptions.md) ^2.0.1

## Recent versions

- 0.0.2 (latest) — 2019-03-08

## 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]

<img src="http://res.cloudinary.com/adonisjs/image/upload/q_100/v1497112678/adonis-purple_pzkmzt.svg" width="200px" align="right" hspace="30px" vspace="140px">

## 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 <Head Of Technology - Oparand>](https://twitter.com/isocroft)
- [Ahmad Aziz <Head - NodeJS Foundation>](https://instagram.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

---
_Source: https://npm.io/package/adonisjs-flutterwave-rave · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
