new appraoch
This commit is contained in:
18
pancake/system/vendor/omnipay/paypal/src/Message/ExpressVoidRequest.php
vendored
Executable file
18
pancake/system/vendor/omnipay/paypal/src/Message/ExpressVoidRequest.php
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Omnipay\PayPal\Message;
|
||||
|
||||
/**
|
||||
* PayPal Express Void Request
|
||||
*/
|
||||
class ExpressVoidRequest extends AbstractRequest
|
||||
{
|
||||
public function getData()
|
||||
{
|
||||
$this->validate('transactionReference');
|
||||
$data = $this->getBaseData();
|
||||
$data['METHOD'] = 'DoVoid';
|
||||
$data['AUTHORIZATIONID'] = $this->getTransactionReference();
|
||||
return $data;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user