<?php

/*
 * This file is part of the Omnipay package.
 *
 * (c) Adrian Macneil <adrian@adrianmacneil.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Omnipay\PayPal\Message;

use Symfony\Component\HttpFoundation\Request as HttpRequest;

/**
 * PayPal Express Complete Authorize Request
 */
class ExpressCompleteAuthorizeRequest extends AuthorizeRequest
{
    protected $paymentAction;

    public function getPaymentAction()
    {
        return $this->paymentAction;
    }

    public function setPaymentAction($value)
    {
        $this->paymentAction = $value;

        return $this;
    }

    public function getData()
    {
        $data = $this->getBaseData('DoExpressCheckoutPayment');

        $this->validate(array('amount'));

        $data['PAYMENTREQUEST_0_PAYMENTACTION'] = $this->getPaymentAction();
        $data['PAYMENTREQUEST_0_AMT'] = $this->getAmountDecimal();
        $data['PAYMENTREQUEST_0_CURRENCYCODE'] = $this->getCurrency();
        $data['PAYMENTREQUEST_0_DESC'] = $this->getDescription();

        $data['TOKEN'] = $this->httpRequest->query->get('token');
        $data['PAYERID'] = $this->httpRequest->query->get('PayerID');

        return $data;
    }
}

<?php

/*
 * This file is part of the Omnipay package.
 *
 * (c) Adrian Macneil <adrian@adrianmacneil.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace Omnipay\PayPal\Message;

/**
 * PayPal Express Complete Authorize Request
 */
class ExpressCompleteAuthorizeRequest extends AuthorizeRequest
{
    protected $paymentAction;

    public function getPaymentAction()
    {
        return $this->paymentAction;
    }

    public function setPaymentAction($value)
    {
        $this->paymentAction = $value;

        return $this;
    }

    public function getData()
    {
        $data = $this->getBaseData('DoExpressCheckoutPayment');

        $this->validate(array('amount'));

        $data['PAYMENTREQUEST_0_PAYMENTACTION'] = $this->getPaymentAction();
        $data['PAYMENTREQUEST_0_AMT'] = $this->getAmountDecimal();
        $data['PAYMENTREQUEST_0_CURRENCYCODE'] = $this->getCurrency();
        $data['PAYMENTREQUEST_0_DESC'] = $this->getDescription();

        $data['TOKEN'] = $this->httpRequest->query->get('token');
        $data['PAYERID'] = $this->httpRequest->query->get('PayerID');

        return $data;
    }
}

Add Pin & Stripe Request classes
Add Pin & Stripe Request classes
