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