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