• File: ExpressFetchCheckoutRequest.php
  • Full Path: /var/www/crm_set/application/vendor/omnipay/paypal/src/Message/ExpressFetchCheckoutRequest.php
  • Date Modified: 09/21/2026 4:20 AM
  • File size: 613 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?php

namespace Omnipay\PayPal\Message;

/**
 * PayPal Express Fetch Checkout Details Request
 */
class ExpressFetchCheckoutRequest extends AbstractRequest
{
    public function getData()
    {
        $this->validate();

        $data = $this->getBaseData();
        $data['METHOD'] = 'GetExpressCheckoutDetails';

        // token can either be specified directly, or inferred from the GET parameters
        if ($this->getToken()) {
            $data['TOKEN'] = $this->getToken();
        } else {
            $data['TOKEN'] = $this->httpRequest->query->get('token');
        }

        return $data;
    }
}