first commit

This commit is contained in:
2025-03-12 17:06:23 +01:00
commit 2241f7131f
13185 changed files with 1692479 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace Eservice;
class RequestActionAuth extends RequestAction
{
protected $_params = [
"merchantId" => ["type" => "mandatory"],
"token" => ["type" => "mandatory"],
"specinCreditCardCVV" => [
"type" => "conditional",
"mandatory" => [
"paymentMethod" => "CreditCard",
"channel" => "ECOM"
],
],
"freeText" => ["type" => "optional"],
];
}

View File

@@ -0,0 +1,14 @@
<?php
namespace Eservice;
class RequestActionCapture extends RequestActionRefund
{
public function __construct()
{
parent::__construct();
$this->_data["action"] = Payments::ACTION_CAPTURE;
}
}

View File

@@ -0,0 +1,14 @@
<?php
namespace Eservice;
class RequestActionPurchase extends RequestActionAuth
{
public function __construct()
{
parent::__construct();
$this->_data["action"] = Payments::ACTION_PURCHASE;
}
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Eservice;
class RequestActionRefund extends RequestAction
{
protected $_params = [
"merchantId" => ["type" => "mandatory"],
"token" => ["type" => "mandatory"],
];
public function __construct()
{
parent::__construct();
$this->_data["action"] = Payments::ACTION_REFUND;
}
}

View File

@@ -0,0 +1,25 @@
<?php
namespace Eservice;
class RequestActionStatusCheck extends RequestAction
{
protected $_params = [
"merchantId" => ["type" => "mandatory"],
"token" => ["type" => "mandatory"],
"action" => [
"type" => "mandatory",
"values" => [Payments::ACTION_STATUS_CHECK],
],
"txId" => ["type" => "optional"],
"merchantTxId" => ["type" => "optional"],
];
public function __construct()
{
parent::__construct();
$this->_data["action"] = Payments::ACTION_STATUS_CHECK;
}
}

View File

@@ -0,0 +1,20 @@
<?php
namespace Eservice;
class RequestActionTokenize extends RequestAction
{
protected $_params = [
"merchantId" => ["type" => "mandatory"],
"token" => ["type" => "mandatory"],
"number" => ["type" => "mandatory"],
"nameOnCard" => ["type" => "mandatory"],
"expiryMonth" => ["type" => "mandatory"],
"expiryYear" => ["type" => "mandatory"],
"startMonth" => ["type" => "optional"],
"startYear" => ["type" => "optional"],
"issueNumber" => ["type" => "optional"],
"cardDescription" => ["type" => "optional"],
];
}

View File

@@ -0,0 +1,7 @@
<?php
namespace Eservice;
class RequestActionVoid extends RequestActionRefund
{
}