index.js
function HubtelMobilePayment({
  secretid = required('secretid'),
  clientid = required('clientid'),
  merchantaccnumber = required('merchantaccnumber'),
}) {
  this.config = {}
  this.config['clientid'] = clientid
  this.config['secretid'] = secretid
  this.config['merchantaccnumber'] = merchantaccnumber
  this.hubtelurl = 'https://api.hubtel.com/v1/merchantaccount/'
}
function HubtelMobilePayment({
  secretid = required('secretid'),
  clientid = required('clientid'),
  merchantaccnumber = required('merchantaccnumber'),
}) {
  this.config = {}
  this.config['clientid'] = clientid
  this.config['secretid'] = secretid
  this.config['merchantaccnumber'] = merchantaccnumber
  this.hubtelurl = 'https://api.hubtel.com/v1/merchantaccount/'
}
function HubtelMobilePayment ( { secretid = required ( 'secretid' ) , clientid = required ( 'clientid' ) , merchantaccnumber = required ( 'merchantaccnumber' ) , } ) { this . config = { } this . config [ 'clientid' ] = clientid this . config [ 'secretid' ] = secretid this . config [ 'merchantaccnumber' ] = merchantaccnumber this . hubtelurl = 'https://api.hubtel.com/v1/merchantaccount/' }
Set up Hubtel authentication
@param {object} data
Set up Hubtel authentication