Skip to content

πŸ’³ πŸ“¦ πŸ’° A NodeJS library that simplifies payment with Gladepay APIs

License

Notifications You must be signed in to change notification settings

itssadon/gladepay-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Gladepay NodeJS

Build Status Coverage Status Software License npm npm

πŸ’³ πŸ“¦ πŸ’° A NodeJS library that simplifies payment with Gladepay APIs

Installation

For Yarn

yarn add gladepay-node

For NPM

npm install gladepay-node --save

Usage

// Require the library
// mode defaults to false for test mode and could be `boolean` true or false
const gladepay = require('gladepay-node')('MERCHANT-ID', 'MERCHANT-KEY', mode);

Making calls

The resource methods promisified

Format β†’ gladepay.{resource}.{method}

// gladepay.{resource}.{method}
gladepay.resource
  .supportedChargableBanks()
  .then(function(body) {
    console.log(body);
  })
  .catch(function(error) {
    console.log(error);
  });

All Resource methods parameters are provided as the only argument

Resources πŸ“”

  • payment
    • cardPayment
    • recurrent
    • installment
    • chargeCard
    • chargeToken
    • validateOtp
    • verify
    • accountPayment
    • validateAccount
  • disbursement
    • transfer
  • resources
    • supportedChargableBanks
    • banks
    • accountName
    • verifyBVN
    • cardDetails
    • cardCharge
    • accountCharge
    • personlizedAccount
  • loansAndInvestments
    • loans
      • request
      • process
      • list
      • view
      • payment
        • repay
        • validate
    • investments
      • savings
        • create
        • list
        • view
        • cashout
        • deposit
        • validate
      • thrift
        • create
        • list
        • subscriptions
        • subscribe
    • client
      • createProfile
      • updateProfile
      • listProfiles
      • viewProfile

Tests

npm test

Contributing 🎸 πŸ’»

  • Please do 🧑

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

Kindly follow me on twitter!

TODO ✍

  • Add continuous integration
  • Add code coverage statistics
  • Add some sweet badges

License

The MIT License (MIT). Please see License File for more information.

About

πŸ’³ πŸ“¦ πŸ’° A NodeJS library that simplifies payment with Gladepay APIs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published