1.0.1 • Published 6 years ago

node-emoney-whitelabel v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

NodeJS Emoney Whitelabel

eMoney Whitelabel NodeJS SDK tools for integration development in vascomm emoney whitelabel project so can easily build integration with less step.

Getting Started

Installing

To installing eMoney Whitelabel SDK use npm module

$ npm install node-emoney-whitelabel

After installing the package start use SDK like so:

const emoney = require('node-emoney-whitelabel')

Configuration

Before using features, you are required to do some configuration like api key

const config = {
	apikey : 'yourgeneratekey'
}
const object = new emoney(config)

Note

KeyDescriptionTypeisMandatory
apikeyauthentication keystringtrue

Usage

Inquiry Data

Getting some user data by number of Virtual Account

check(body,callback)

  • body - Body request, actually it is JSON format
  • callback (function) - Invoked when process has finalized and get any response, these have two argument error and result

Example

object.emoney('08111111111')
	.check({va:'08111111111'},(error,result)=>{
		if(error){
			console.log(error)
		}else{
			console.log(result)
		}

Official Website

Contributor