PayPal\Service\PayPalAPIInterfaceServiceService::SetMobileCheckout PHP Method

SetMobileCheckout() public method

Service Call: SetMobileCheckout
public SetMobileCheckout ( SetMobileCheckoutReq $setMobileCheckoutReq, mixed $apiCredential = null ) : SetMobileCheckoutResponseType
$setMobileCheckoutReq PayPal\PayPalAPI\SetMobileCheckoutReq
$apiCredential mixed - Optional API credential - can either be a username configured in sdk_config.ini or a ICredential object created dynamically
return PayPal\PayPalAPI\SetMobileCheckoutResponseType
    public function SetMobileCheckout($setMobileCheckoutReq, $apiCredential = null)
    {
        $apiContext = new PPApiContext($this->config);
        $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
        $this->setStandardParams($setMobileCheckoutReq->SetMobileCheckoutRequest);
        $ret = new SetMobileCheckoutResponseType();
        $resp = $this->call('PayPalAPI', 'SetMobileCheckout', $setMobileCheckoutReq, $apiContext, $handlers);
        $ret->init(PPUtils::xmlToArray($resp));
        return $ret;
    }