PayPal\Service\PayPalAPIInterfaceServiceService::DoMobileCheckoutPayment PHP Method

DoMobileCheckoutPayment() public method

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