public function voidCharge($chargeId , RequestModels\ChargeVoid
                                            $requestModel)
    {

        $chargeMapper = new ChargesMapper($requestModel);

        $requestPayload = array (
            'authorization' => $this->_apiSetting->getSecretKey(),
            'mode'          => $this->_apiSetting->getMode(),
            'postedParam'   => $chargeMapper->requestPayloadConverter(),

        );
        $refundUri = sprintf ($this->_apiUrl->getVoidChargesApiUri(),$chargeId);

        $processCharge = \com\checkout\helpers\ApiHttpClient::postRequest($refundUri,
            $this->_apiSetting->getSecretKey(),$requestPayload);

        $responseModel = new ResponseModels\Charge($processCharge);


        return $responseModel;
    }
public function voidCharge($chargeId , RequestModels\ChargeVoid
                                            $requestModel)
    {

        $chargeMapper = new ChargesMapper($requestModel);

        $requestPayload = array (
            'authorization' => $this->_apiSetting->getSecretKey(),
            'mode'          => $this->_apiSetting->getMode(),
            'postedParam'   => $chargeMapper->requestPayloadConverter(),

        );
        $refundUri = sprintf ($this->_apiUrl->getVoidChargesApiUri(),$chargeId);

        $processCharge = \com\checkout\helpers\ApiHttpClient::postRequest($refundUri,
            $this->_apiSetting->getSecretKey(),$requestPayload);

        $responseModel = new ResponseModels\Charge($processCharge);


        return $responseModel;
    }
public function voidCharge ( $ chargeId , RequestModels \ ChargeVoid $ requestModel ) { $ chargeMapper = new ChargesMapper ( $ requestModel ) ; $ requestPayload = array ( 'authorization' => $ this -> _apiSetting -> getSecretKey ( ) , 'mode' => $ this -> _apiSetting -> getMode ( ) , 'postedParam' => $ chargeMapper -> requestPayloadConverter ( ) , ) ; $ refundUri = sprintf ( $ this -> _apiUrl -> getVoidChargesApiUri ( ) , $ chargeId ) ; $ processCharge = \ com \ checkout \ helpers \ ApiHttpClient :: postRequest ( $ refundUri , $ this -> _apiSetting -> getSecretKey ( ) , $ requestPayload ) ; $ responseModel = new ResponseModels \ Charge ( $ processCharge ) ; return $ responseModel ; }
void a charge
@param RequestModels\ChargeVoid $requestModel
@return ResponseModels\Charge
void a charge