Files
grzanieplus.pl/plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Void.php
2025-03-12 17:06:23 +01:00

29 lines
796 B
PHP

<?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;
}
}