src/Payum/Paypal/ExpressCheckout/Nvp/Action/Api/ConfirmOrderAction.php
public function execute($request)
    {
        /** @var $request SetExpressCheckout */
        RequestNotSupportedException::assertSupports($this, $request);

        $this->gateway->execute($httpRequest = new GetHttpRequest());
        if ('POST' == $httpRequest->method && false == empty($httpRequest->request['confirm'])) {
            return;
        }

        $renderTemplate = new RenderTemplate($this->templateName, array(
            'model' => ArrayObject::ensureArrayObject($request->getModel()),
            'firstModel' => $request->getFirstModel(),
        ));
        $this->gateway->execute($renderTemplate);

        throw new HttpResponse($renderTemplate->getResult());
    }
public function execute($request)
    {
        /** @var $request SetExpressCheckout */
        RequestNotSupportedException::assertSupports($this, $request);

        $this->gateway->execute($httpRequest = new GetHttpRequest());
        if ('POST' == $httpRequest->method && false == empty($httpRequest->request['confirm'])) {
            return;
        }

        $renderTemplate = new RenderTemplate($this->templateName, array(
            'model' => ArrayObject::ensureArrayObject($request->getModel()),
            'firstModel' => $request->getFirstModel(),
        ));
        $this->gateway->execute($renderTemplate);

        throw new HttpResponse($renderTemplate->getResult());
    }
{@inheritDoc}