Пример #1
0
 /**
  * Service Call: CancelPreapproval
  * @param CancelPreapprovalRequest $cancelPreapprovalRequest
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return CancelPreapprovalResponse
  * @throws APIException
  */
 public function CancelPreapproval($cancelPreapprovalRequest, $apiCredential = NULL)
 {
     $ret = new CancelPreapprovalResponse();
     $resp = $this->call('AdaptivePayments', 'CancelPreapproval', $cancelPreapprovalRequest, $apiCredential);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }
Пример #2
0
 /**
  * Service Call: CancelPreapproval
  * @param CancelPreapprovalRequest $cancelPreapprovalRequest
  * @return CancelPreapprovalResponse
  * @throws APIException
  */
 public function CancelPreapproval($cancelPreapprovalRequest, $apiUsername = null)
 {
     $ret = new CancelPreapprovalResponse();
     $resp = $this->call("CancelPreapproval", $cancelPreapprovalRequest, $apiUsername);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }
 /**
  * Service Call: CancelPreapproval
  * @param CancelPreapprovalRequest $cancelPreapprovalRequest
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return CancelPreapprovalResponse
  * @throws APIException
  */
 public function CancelPreapproval($cancelPreapprovalRequest, $apiCredential = NULL)
 {
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPPlatformServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $ret = new CancelPreapprovalResponse();
     $resp = $this->call('AdaptivePayments', 'CancelPreapproval', $cancelPreapprovalRequest, $apiContext, $handlers);
     $ret->init(PPUtils::nvpToMap($resp));
     return $ret;
 }