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