/** * Service Call: SetExpressCheckout * * @param SetExpressCheckoutReq $setExpressCheckoutReq * * @return SetExpressCheckoutResponseType * @throws APIException */ public function SetExpressCheckout($setExpressCheckoutReq, $apiUsername = null) { $this->setStandardParams($setExpressCheckoutReq->SetExpressCheckoutRequest); $ret = new SetExpressCheckoutResponseType(); $resp = $this->call("SetExpressCheckout", $setExpressCheckoutReq, $apiUsername); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: SetExpressCheckout * @param SetExpressCheckoutReq $setExpressCheckoutReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return SetExpressCheckoutResponseType * @throws APIException */ public function SetExpressCheckout($setExpressCheckoutReq, $apiCredential = NULL) { $this->setStandardParams($setExpressCheckoutReq->SetExpressCheckoutRequest); $ret = new SetExpressCheckoutResponseType(); $resp = $this->call('PayPalAPIAA', 'SetExpressCheckout', $setExpressCheckoutReq, $apiCredential); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }
/** * Service Call: SetExpressCheckout * @param SetExpressCheckoutReq $setExpressCheckoutReq * @param mixed $apiCredential - Optional API credential - can either be * a username configured in sdk_config.ini or a ICredential object * created dynamically * @return SetExpressCheckoutResponseType * @throws APIException */ public function SetExpressCheckout($setExpressCheckoutReq, $apiCredential = NULL) { $this->setStandardParams($setExpressCheckoutReq->SetExpressCheckoutRequest); $apiContext = new PPApiContext($this->config); $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION)); $ret = new SetExpressCheckoutResponseType(); $resp = $this->call('PayPalAPIAA', 'SetExpressCheckout', $setExpressCheckoutReq, $apiContext, $handlers); $ret->init(PPUtils::xmlToArray($resp)); return $ret; }