public function UpdateCardCharge(RequestModels\ChargeUpdate
	                                 $requestModel)
	{

		$chargeMapper = new ChargesMapper($requestModel);

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

		);
		$updateUri = sprintf ($this->_apiUrl->getUpdateChargesApiUri(),$requestModel->getChargeId());

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

		$responseModel = new \com\checkout\ApiServices\SharedModels\OkResponse($processCharge);


		return $responseModel;
	}
public function UpdateCardCharge(RequestModels\ChargeUpdate
	                                 $requestModel)
	{

		$chargeMapper = new ChargesMapper($requestModel);

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

		);
		$updateUri = sprintf ($this->_apiUrl->getUpdateChargesApiUri(),$requestModel->getChargeId());

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

		$responseModel = new \com\checkout\ApiServices\SharedModels\OkResponse($processCharge);


		return $responseModel;
	}
public function UpdateCardCharge ( RequestModels \ ChargeUpdate $ requestModel ) { $ chargeMapper = new ChargesMapper ( $ requestModel ) ; $ requestPayload = array ( 'authorization' => $ this -> _apiSetting -> getSecretKey ( ) , 'mode' => $ this -> _apiSetting -> getMode ( ) , 'postedParam' => $ chargeMapper -> requestPayloadConverter ( ) , ) ; $ updateUri = sprintf ( $ this -> _apiUrl -> getUpdateChargesApiUri ( ) , $ requestModel -> getChargeId ( ) ) ; $ processCharge = \ com \ checkout \ helpers \ ApiHttpClient :: putRequest ( $ updateUri , $ this -> _apiSetting -> getSecretKey ( ) , $ requestPayload ) ; $ responseModel = new \ com \ checkout \ ApiServices \ SharedModels \ OkResponse ( $ processCharge ) ; return $ responseModel ; }
Update a charge
@param RequestModels\ChargeUpdate $requestModel
@return ResponseModels\Charge
Update a charge