public function CaptureCardCharge(RequestModels\ChargeCapture
	                                  $requestModel)
	{

		$chargeMapper = new ChargesMapper($requestModel);

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

		);
		$refundUri = sprintf ($this->_apiUrl->getCaptureChargesApiUri(),$requestModel->getChargeId());

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

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


		return $responseModel;
	}
public function CaptureCardCharge(RequestModels\ChargeCapture
	                                  $requestModel)
	{

		$chargeMapper = new ChargesMapper($requestModel);

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

		);
		$refundUri = sprintf ($this->_apiUrl->getCaptureChargesApiUri(),$requestModel->getChargeId());

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

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


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