first commit
This commit is contained in:
28
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action.php
vendored
Normal file
28
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action.php
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestAction extends Request
|
||||
{
|
||||
|
||||
public function execute($callback = null, $result_from_prev = [])
|
||||
{
|
||||
try {
|
||||
foreach ($result_from_prev as $k => $v) {
|
||||
$this->_data[$k] = $v;
|
||||
}
|
||||
$data = $this->validate();
|
||||
|
||||
return $this->_exec_post(Config::$PaymentOperationActionUrl, $data, $callback);
|
||||
} catch (\Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
public function _get_data_from_prev($result_from_prev)
|
||||
{
|
||||
$this->_data["merchantId"] = $result_from_prev["merchantId"];
|
||||
$this->_data["token"] = $result_from_prev["token"];
|
||||
}
|
||||
|
||||
}
|
||||
21
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Auth.php
vendored
Normal file
21
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Auth.php
vendored
Normal 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"],
|
||||
];
|
||||
|
||||
}
|
||||
14
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Capture.php
vendored
Normal file
14
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Capture.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestActionCapture extends RequestActionRefund
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_data["action"] = Payments::ACTION_CAPTURE;
|
||||
}
|
||||
|
||||
}
|
||||
14
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Purchase.php
vendored
Normal file
14
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Purchase.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestActionPurchase extends RequestActionAuth
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_data["action"] = Payments::ACTION_PURCHASE;
|
||||
}
|
||||
|
||||
}
|
||||
19
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Refund.php
vendored
Normal file
19
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Refund.php
vendored
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
25
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/StatusCheck.php
vendored
Normal file
25
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/StatusCheck.php
vendored
Normal 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;
|
||||
}
|
||||
|
||||
}
|
||||
20
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Tokenize.php
vendored
Normal file
20
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Tokenize.php
vendored
Normal 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"],
|
||||
];
|
||||
}
|
||||
7
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Void.php
vendored
Normal file
7
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Action/Void.php
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestActionVoid extends RequestActionRefund
|
||||
{
|
||||
}
|
||||
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Auth.php
vendored
Normal file
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Auth.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestAuth extends Request
|
||||
{
|
||||
|
||||
public function __construct($values = [])
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_token_request = new RequestTokenAuth($values);
|
||||
$this->_action_request = new RequestActionAuth($values);
|
||||
}
|
||||
|
||||
}
|
||||
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Capture.php
vendored
Normal file
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Capture.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestCapture extends RequestRefund
|
||||
{
|
||||
|
||||
public function __construct($values = [])
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_token_request = new RequestTokenCapture($values);
|
||||
$this->_action_request = new RequestActionCapture($values);
|
||||
}
|
||||
|
||||
}
|
||||
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Purchase.php
vendored
Normal file
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Purchase.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestPurchase extends RequestAuth
|
||||
{
|
||||
|
||||
public function __construct($values = [])
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_token_request = new RequestTokenPurchase($values);
|
||||
$this->_action_request = new RequestActionPurchase($values);
|
||||
}
|
||||
|
||||
}
|
||||
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Refund.php
vendored
Normal file
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Refund.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestRefund extends Request
|
||||
{
|
||||
|
||||
public function __construct($values = [])
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_token_request = new RequestTokenRefund($values);
|
||||
$this->_action_request = new RequestActionRefund($values);
|
||||
}
|
||||
|
||||
}
|
||||
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/StatusCheck.php
vendored
Normal file
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/StatusCheck.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestStatusCheck extends Request
|
||||
{
|
||||
|
||||
public function __construct($values = [])
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_token_request = new RequestTokenStatusCheck($values);
|
||||
$this->_action_request = new RequestActionStatusCheck($values);
|
||||
}
|
||||
|
||||
}
|
||||
21
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token.php
vendored
Normal file
21
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token.php
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestToken extends Request
|
||||
{
|
||||
|
||||
public function execute($callback = null, $result_from_prev = [])
|
||||
{
|
||||
try {
|
||||
foreach ($result_from_prev as $k => $v) {
|
||||
$this->_data[$k] = $v;
|
||||
}
|
||||
$data = $this->validate();
|
||||
|
||||
return $this->_exec_post(Config::$SessionTokenRequestUrl, $data, $callback);
|
||||
} catch (\Exception $e) {
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
}
|
||||
126
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Auth.php
vendored
Normal file
126
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Auth.php
vendored
Normal file
@@ -0,0 +1,126 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestTokenAuth extends RequestToken
|
||||
{
|
||||
|
||||
protected $_params = [
|
||||
"action" => [
|
||||
"type" => "mandatory",
|
||||
"values" => [Payments::ACTION_AUTH, Payments::ACTION_PURCHASE],
|
||||
],
|
||||
"merchantId" => ["type" => "mandatory"],
|
||||
"password" => ["type" => "mandatory"],
|
||||
"timestamp" => ["type" => "mandatory"],
|
||||
"allowOriginUrl" => ["type" => "mandatory"],
|
||||
"channel" => ["type" => "mandatory"],
|
||||
"amount" => ["type" => "mandatory"],
|
||||
"currency" => ["type" => "mandatory"],
|
||||
"country" => ["type" => "mandatory"],
|
||||
"paymentSolutionId" => ["type" => "mandatory"],
|
||||
"merchantNotificationUrl" => ["type" => "mandatory"],
|
||||
"customerId" => [
|
||||
"type" => "conditional",
|
||||
"mandatory" => ["paymentMethod" => "CreditCard"],
|
||||
],
|
||||
"customerDocumentNumber" => [
|
||||
"type" => "conditional",
|
||||
"mandatory" => ["customerDocumentType" => "isset"],
|
||||
],
|
||||
"payerDocumentNumber" => [
|
||||
"type" => "conditional",
|
||||
"mandatory" => ["payerDocumentType" => "isset"],
|
||||
],
|
||||
"merchantTxId" => ["type" => "optional"],
|
||||
"brandId" => ["type" => "optional"],
|
||||
"userDevice" => ["type" => "optional"],
|
||||
"userAgent" => ["type" => "optional"],
|
||||
"taxAmount" => ["type" => "optional"],
|
||||
"shippingAmount" => ["type" => "optional"],
|
||||
"chargeAmount" => ["type" => "optional"],
|
||||
"discountAmount" => ["type" => "optional"],
|
||||
"language" => ["type" => "optional"],
|
||||
"s_text1" => ["type" => "optional"],
|
||||
"s_text2" => ["type" => "optional"],
|
||||
"s_text3" => ["type" => "optional"],
|
||||
"s_text4" => ["type" => "optional"],
|
||||
"s_text5" => ["type" => "optional"],
|
||||
"d_date1" => ["type" => "optional"],
|
||||
"d_date2" => ["type" => "optional"],
|
||||
"d_date3" => ["type" => "optional"],
|
||||
"d_date4" => ["type" => "optional"],
|
||||
"d_date5" => ["type" => "optional"],
|
||||
"b_bool1" => ["type" => "optional"],
|
||||
"b_bool2" => ["type" => "optional"],
|
||||
"b_bool3" => ["type" => "optional"],
|
||||
"b_bool4" => ["type" => "optional"],
|
||||
"b_bool5" => ["type" => "optional"],
|
||||
"n_num1" => ["type" => "optional"],
|
||||
"n_num2" => ["type" => "optional"],
|
||||
"n_num3" => ["type" => "optional"],
|
||||
"n_num4" => ["type" => "optional"],
|
||||
"n_num5" => ["type" => "optional"],
|
||||
"merchantLandingPageUrl" => ["type" => "optional"],
|
||||
"firstTimeTransaction" => ["type" => "optional"],
|
||||
"customerDocumentType" => ["type" => "optional"],
|
||||
"customerFirstName" => ["type" => "optional"],
|
||||
"customerLastName" => ["type" => "optional"],
|
||||
"customerSex" => ["type" => "optional"],
|
||||
"customerDateOfBirth" => ["type" => "optional"],
|
||||
"customerRegistrationDate" => ["type" => "optional"],
|
||||
"customerEmail" => ["type" => "optional"],
|
||||
"customerPhone" => ["type" => "optional"],
|
||||
"customerIPAddress" => ["type" => "optional"],
|
||||
"customerCountry" => ["type" => "optional"],
|
||||
"customerAddressHouseName" => ["type" => "optional"],
|
||||
"customerAddressHouseNumber" => ["type" => "optional"],
|
||||
"customerAddressFlat" => ["type" => "optional"],
|
||||
"customerAddressStreet" => ["type" => "optional"],
|
||||
"customerAddressCity" => ["type" => "optional"],
|
||||
"customerAddressDistrict" => ["type" => "optional"],
|
||||
"customerAddressPostalCode" => ["type" => "optional"],
|
||||
"customerAddressCountry" => ["type" => "optional"],
|
||||
"customerAddressState" => ["type" => "optional"],
|
||||
"customerAddressPhone" => ["type" => "optional"],
|
||||
"customerShippingAddressHouseName" => ["type" => "optional"],
|
||||
"customerShippingAddressHouseNumber" => ["type" => "optional"],
|
||||
"customerShippingAddressFlat" => ["type" => "optional"],
|
||||
"customerShippingAddressStreet" => ["type" => "optional"],
|
||||
"customerShippingAddressCity" => ["type" => "optional"],
|
||||
"customerShippingAddressDistrict" => ["type" => "optional"],
|
||||
"customerShippingAddressPostalCode" => ["type" => "optional"],
|
||||
"customerShippingAddressCountry" => ["type" => "optional"],
|
||||
"customerShippingAddressState" => ["type" => "optional"],
|
||||
"customerShippingAddressPhone" => ["type" => "optional"],
|
||||
"customerBillingAddressHouseName" => ["type" => "optional"],
|
||||
"customerBillingAddressHouseNumber" => ["type" => "optional"],
|
||||
"customerBillingAddressFlat" => ["type" => "optional"],
|
||||
"customerBillingAddressStreet" => ["type" => "optional"],
|
||||
"customerBillingAddressCity" => ["type" => "optional"],
|
||||
"customerBillingAddressDistrict" => ["type" => "optional"],
|
||||
"customerBillingAddressPostalCode" => ["type" => "optional"],
|
||||
"customerBillingAddressCountry" => ["type" => "optional"],
|
||||
"customerBillingAddressState" => ["type" => "optional"],
|
||||
"customerBillingAddressPhone" => ["type" => "optional"],
|
||||
"payerFirstName" => ["type" => "optional"],
|
||||
"payerLastName" => ["type" => "optional"],
|
||||
"payerEmail" => ["type" => "optional"],
|
||||
"payerDateOfBirth" => ["type" => "optional"],
|
||||
"payerPhone" => ["type" => "optional"],
|
||||
"payerDocumentType" => ["type" => "optional"],
|
||||
"payerCustomerId" => ["type" => "optional"],
|
||||
"forceSecurePayment" => ["type" => "optional"],
|
||||
"processUnknownSecurePayment" => ["type" => "optional"],
|
||||
"specinCreditCardToken" => ["type" => "optional"],
|
||||
"specinProcessWithoutCvv2" => ["type" => "optional"],
|
||||
"bankMid" => ["type" => "optional"],
|
||||
];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_data["action"] = Payments::ACTION_AUTH;
|
||||
}
|
||||
|
||||
}
|
||||
14
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Capture.php
vendored
Normal file
14
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Capture.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestTokenCapture extends RequestTokenRefund
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_data["action"] = Payments::ACTION_CAPTURE;
|
||||
}
|
||||
|
||||
}
|
||||
14
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Purchase.php
vendored
Normal file
14
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Purchase.php
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestTokenPurchase extends RequestTokenAuth
|
||||
{
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_data["action"] = Payments::ACTION_PURCHASE;
|
||||
}
|
||||
|
||||
}
|
||||
29
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Refund.php
vendored
Normal file
29
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Refund.php
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestTokenRefund extends RequestToken
|
||||
{
|
||||
|
||||
protected $_params = [
|
||||
"merchantId" => ["type" => "mandatory"],
|
||||
"originalMerchantTxId" => ["type" => "mandatory"],
|
||||
"password" => ["type" => "mandatory"],
|
||||
"action" => [
|
||||
"type" => "mandatory",
|
||||
"values" => [Payments::ACTION_REFUND, Payments::ACTION_CAPTURE],
|
||||
],
|
||||
"timestamp" => ["type" => "mandatory"],
|
||||
"allowOriginUrl" => ["type" => "mandatory"],
|
||||
"amount" => ["type" => "mandatory"],
|
||||
"originalTxId" => ["type" => "optional"],
|
||||
"agentId" => ["type" => "optional"],
|
||||
];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_data["action"] = Payments::ACTION_REFUND;
|
||||
}
|
||||
|
||||
}
|
||||
25
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/StatusCheck.php
vendored
Normal file
25
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/StatusCheck.php
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestTokenStatusCheck extends RequestToken
|
||||
{
|
||||
|
||||
protected $_params = [
|
||||
"merchantId" => ["type" => "mandatory"],
|
||||
"password" => ["type" => "mandatory"],
|
||||
"action" => [
|
||||
"type" => "mandatory",
|
||||
"values" => [Payments::ACTION_STATUS_CHECK],
|
||||
],
|
||||
"timestamp" => ["type" => "mandatory"],
|
||||
"allowOriginUrl" => ["type" => "mandatory"],
|
||||
];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_data["action"] = Payments::ACTION_STATUS_CHECK;
|
||||
}
|
||||
|
||||
}
|
||||
26
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Tokenize.php
vendored
Normal file
26
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Token/Tokenize.php
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestTokenTokenize extends RequestToken
|
||||
{
|
||||
|
||||
protected $_params = [
|
||||
"action" => [
|
||||
"type" => "mandatory",
|
||||
"values" => [Payments::ACTION_TOKENIZE],
|
||||
],
|
||||
"merchantId" => ["type" => "mandatory"],
|
||||
"password" => ["type" => "mandatory"],
|
||||
"timestamp" => ["type" => "mandatory"],
|
||||
"allowOriginUrl" => ["type" => "mandatory"],
|
||||
"customerId" => ["type" => "optional"],
|
||||
];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_data["action"] = Payments::ACTION_TOKENIZE;
|
||||
}
|
||||
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Tokenize.php
vendored
Normal file
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Tokenize.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestTokenize extends Request
|
||||
{
|
||||
|
||||
public function __construct($values = [])
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_token_request = new RequestTokenTokenize($values);
|
||||
$this->_action_request = new RequestActionTokenize($values);
|
||||
}
|
||||
|
||||
}
|
||||
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Void.php
vendored
Normal file
15
plugins/stEservice2Plugin/vendor/eservice-sdk/lib/Request/Void.php
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace Eservice;
|
||||
|
||||
class RequestVoid extends RequestRefund
|
||||
{
|
||||
|
||||
public function __construct($values = [])
|
||||
{
|
||||
parent::__construct();
|
||||
$this->_token_request = new RequestTokenVoid($values);
|
||||
$this->_action_request = new RequestActionVoid($values);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user