first
This commit is contained in:
26
system/vendor/omnipay/paypal/src/Message/ExpressFetchCheckoutRequest.php
vendored
Executable file
26
system/vendor/omnipay/paypal/src/Message/ExpressFetchCheckoutRequest.php
vendored
Executable file
@@ -0,0 +1,26 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user