/** * Service Call: ReverseTransaction * @param ReverseTransactionReq $reverseTransactionReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return PayPalAPI\ReverseTransactionResponseType * @throws APIException */ public function ReverseTransaction($reverseTransactionReq, $apiCredential = NULL) { $apiContext = new PPApiContext($this->config); $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION)); $this->setStandardParams($reverseTransactionReq->ReverseTransactionRequest); $ret = new ReverseTransactionResponseType(); $resp = $this->call('PayPalAPIAA', 'ReverseTransaction', $reverseTransactionReq, $apiContext, $handlers); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: ReverseTransaction * @param ReverseTransactionReq $reverseTransactionReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return PayPalAPI\ReverseTransactionResponseType * @throws APIException */ public function ReverseTransaction($reverseTransactionReq, $apiCredential = NULL) { $this->setStandardParams($reverseTransactionReq->ReverseTransactionRequest); $ret = new ReverseTransactionResponseType(); $resp = $this->call('PayPalAPIAA', 'ReverseTransaction', $reverseTransactionReq, $apiCredential); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }