src/Payum/Paypal/ProHosted/Nvp/Action/Api/CreateButtonPaymentAction.php
public function execute($request)
    {
        /** @var $request CreateButtonPayment */
        RequestNotSupportedException::assertSupports($this, $request);
        $model = ArrayObject::ensureArrayObject($request->getModel());

        $model->validateNotEmpty([
            'subtotal',
            'currency_code',
        ]);

        $result = $this->api->doCreateButton((array) $model);
        $model->replace((array) $result);

        if ($model['EMAILLINK'] != null) {
            throw new HttpRedirect($model['EMAILLINK']);
        }
    }
public function execute($request)
    {
        /** @var $request CreateButtonPayment */
        RequestNotSupportedException::assertSupports($this, $request);
        $model = ArrayObject::ensureArrayObject($request->getModel());

        $model->validateNotEmpty([
            'subtotal',
            'currency_code',
        ]);

        $result = $this->api->doCreateButton((array) $model);
        $model->replace((array) $result);

        if ($model['EMAILLINK'] != null) {
            throw new HttpRedirect($model['EMAILLINK']);
        }
    }
{@inheritDoc}