Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

adonisjs-flutterwave-rave

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonisjs-flutterwave-rave

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

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

adonis-flutterwave-rave

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

NPM Version Build Status Coveralls

Getting Started

Install from the NPM Registry


    $ adonis install adonisjs-flutterwave-rave

Import and use


  '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


    npm i


    npm run lint
    
    npm run test

Credits

Contributing

See the CONTRIBUTING.md file for info

Keywords

FAQs

Package last updated on 08 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc