How to use Xploader module
npm install rachmanzz/xploader
const xp = require('xploader')
const Xp = new xp({
id: 'your number id', // number only
key: 'your key xp',
api: 'your api xp'
})
const result = yield Xp.balance()
const result = yield Xp.price(code) // code is code of Product
const result = yield Xp.pricelist()
const result = yield Xp.deposit({
payment: 'your payment method', // bitcoin, dogecoin, litecoin, bca, bni, bri, mandiri, indosat, telkomsel, xlaxiata
amount: 'amount of deposit',
origin: 'if needed, setup if phone load transfer/transfer pulsa' // origin is number of phone
})
const result = yield Xp.checkdeposit(trx) // trx your transaction id of deposit
const result = yield Xp.order({
url: 'your domain callback url',
trx: 'unique trx id',
code: 'Product code',
to: 'number phone to load a balance',
origin: 'origin number phone, if need to message if success'
})
Result return you can check at https://xp.sindonesia.net/api.php
Work if not any change of transaction method at https://xp.sindonesia.net/api.php