first commit
This commit is contained in:
28
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Void.php
vendored
Normal file
28
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Void.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestTokenVoid extends RequestTokenRefund
|
||||
{
|
||||
|
||||
protected $_params = [
|
||||
"merchantId" => ["type" => "mandatory"],
|
||||
"originalMerchantTxId" => ["type" => "mandatory"],
|
||||
"password" => ["type" => "mandatory"],
|
||||
"action" => [
|
||||
"type" => "mandatory",
|
||||
"values" => [Payments::ACTION_VOID],
|
||||
],
|
||||
"timestamp" => ["type" => "mandatory"],
|
||||
"allowOriginUrl" => ["type" => "mandatory"],
|
||||
"originalTxId" => ["type" => "optional"],
|
||||
"agentId" => ["type" => "optional"],
|
||||
];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_data["action"] = Payments::ACTION_VOID;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user