💳 📦 💰 A NodeJS library that simplifies payment with Gladepay APIs
For Yarn
yarn add gladepay-node
For NPM
npm install gladepay-node --save
// 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);
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
- 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
- savings
- client
- createProfile
- updateProfile
- listProfiles
- viewProfile
- loans
npm test
- 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!
- Add continuous integration
- Add code coverage statistics
- Add some sweet badges
The MIT License (MIT). Please see License File for more information.