コード例 #1
0
 /**
  * Service Call: CancelRecoup
  *
  * @param CancelRecoupReq $cancelRecoupReq
  *
  * @return CancelRecoupResponseType
  * @throws APIException
  */
 public function CancelRecoup($cancelRecoupReq, $apiUsername = null)
 {
     $this->setStandardParams($cancelRecoupReq->CancelRecoupRequest);
     $ret = new CancelRecoupResponseType();
     $resp = $this->call("CancelRecoup", $cancelRecoupReq, $apiUsername);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 /**
  * Service Call: CancelRecoup
  * @param CancelRecoupReq $cancelRecoupReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return CancelRecoupResponseType
  * @throws APIException
  */
 public function CancelRecoup($cancelRecoupReq, $apiCredential = NULL)
 {
     $this->setStandardParams($cancelRecoupReq->CancelRecoupRequest);
     $ret = new CancelRecoupResponseType();
     $resp = $this->call('PayPalAPI', 'CancelRecoup', $cancelRecoupReq, $apiCredential);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
コード例 #3
0
 /**
  * Service Call: CancelRecoup
  * @param CancelRecoupReq $cancelRecoupReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return CancelRecoupResponseType
  * @throws APIException
  */
 public function CancelRecoup($cancelRecoupReq, $apiCredential = NULL)
 {
     $this->setStandardParams($cancelRecoupReq->CancelRecoupRequest);
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $ret = new CancelRecoupResponseType();
     $resp = $this->call('PayPalAPI', 'CancelRecoup', $cancelRecoupReq, $apiContext, $handlers);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }