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