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