UNPKG

payu-websdk

Version:
17 lines (15 loc) 566 B
const hasher = require('../utils/hasher'); const httpClient = require('../http/httpClient'); const PayuErrors = require('../Error'); const status = (credes,var1) => { if (!var1) return Promise.reject(new PayuErrors.PayuMissingParameterException("var1")); const command = "get_settlement_details"; return httpClient(credes.apiHost,credes.apiPath ,{ key: credes.key, command: command, var1: var1, hash: hasher.apiHasher(credes,{ command: command, var1: var1 }) }) } module.exports = { status };