Files
kulakpos_web/vendor/omnipay/paypal/src/Message/ExpressFetchCheckoutRequest.php

27 lines
613 B
PHP
Raw Normal View History

2026-03-30 14:54:57 +07:00
<?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;
}
}