diff --git a/README.md b/README.md
index 66f88ba..0fe6d6b 100644
--- a/README.md
+++ b/README.md
@@ -1,2 +1,70 @@
-# utrust-for-whmcs
-Utrust for WHMCS (7 and 8)
+![Utrust integrations](https://user-images.githubusercontent.com/1558992/67495646-1e356b00-f673-11e9-8854-1beac877c586.png)
+
+# Utrust for WHMCS
+
+Accept Bitcoin, Ethereum, Utrust Token and other cryptocurrencies directly on your system with the Utrust payment gateway for WHMCS.
+Utrust is cryptocurrency agnostic and provides fiat settlements.
+The Utrust plugin extends WHMCS allowing you to take cryptocurrency payments directly on your store via the Utrust API.
+Find out more about Utrust at [utrust.com](https://utrust.com).
+
+## Requirements
+
+- Utrust Merchant account
+- WHMCS version 7 or above
+
+## Install
+
+### How to install
+
+1. Download our latest release zip file on the [releases page](https://github.com/utrustdev/utrust-for-WHMCS/releases).
+2. Extract the zip file.
+3. Copy the content to your server root folder of WHMCS.
+4. Once copied, follow the Setup instructions bellow.
+
+## Setup
+
+### On the Utrust side
+
+1. Go to [Utrust merchant dashboard](https://merchants.utrust.com).
+2. Log in or sign up if you didn't yet.
+3. On the left sidebar choose _Integrations_.
+4. Select _Custom API_ and click the button _Generate Credentials_.
+5. You will see now your `Api Key` and `Webhook Secret`, save them somewhere safe temporarily.
+
+ :warning: You will only be able to see the `Webhook Secret` once, after refreshing or changing page it will be no longer available to copy; if needed, you can always generate new credentials.
+
+ :no_entry_sign: Don't share your credentials with anyone. They can use it to place orders **on your behalf**.
+
+### On the WHMCS side
+
+1. Go to your WHMCS admin dashboard.
+2. Navigate to the _Modules and Services_ -> _Modules and Services_.
+3. Search for _Utrust_ in the list and click _Configure_
+4. Add your `Api Key` and `Webhook Secret` and click Save.
+
+5. Go to your WHMCS admin dashboard.
+6. Navigate to _System Settings_ -> _Payment Gateways_ -> _All Payment Gateways_ and activate Utrust.
+7. Navigate to _System Settings_ -> _Payment Gateways_ -> _Manager Existing Gateways_.
+8. Add your `Api Key` and `Webhook Secret` and Save.
+
+## Support
+
+Feel free to reach [by opening an issue on GitHub](https://github.com/utrustdev/utrust-for-WHMCS/issues/new) if you need any help with the Utrust for WHMCS plugin.
+
+If you're having specific problems with your account, then please contact support@utrust.com.
+
+In both cases, our team will be happy to help :purple_heart:.
+
+## Contribute
+
+You can contribute by simply letting us know your suggestions or any problems that you find [by opening an issue on GitHub](https://github.com/utrustdev/utrust-for-WHMCS/issues/new).
+
+You can also fork the repository on GitHub and open a pull request for the `master` branch with your missing features and/or bug fixes.
+Please make sure the new code follows the same style and conventions as already written code.
+Our team is eager to welcome new contributors into the mix :blush:.
+
+## License
+
+The Utrust for WHMCS plugin is maintained with :purple_heart: by the Utrust development team, and is available to the public under the GNU GPLv3 license. Please see [LICENSE](https://github.com/utrustdev/utrust-for-WHMCS/blob/master/LICENSE) for further details.
+
+© Utrust 2020
diff --git a/modules/gateways/callback/utrust.php b/modules/gateways/callback/utrust.php
new file mode 100644
index 0000000..02a8b67
--- /dev/null
+++ b/modules/gateways/callback/utrust.php
@@ -0,0 +1,102 @@
+
+validateSignature($webhooksSecret);
+ http_response_code(200); // Don't delete this
+
+ echo sprintf('Successully validated payload with order reference %s and type %s', $event->getOrderReference(), $event->getEventType());
+
+} catch (\Exception $exception) {
+ http_response_code(400); // Don't delete this
+
+ // Handle webhook error
+ echo 'Error: ' . $exception->getMessage();
+}
+
+// Change payload data to whmcs variables
+$json = json_decode($payload, true);
+$status = $json['state'];
+$success = false;
+if ($status == "completed") {
+ $status = "Success";
+ $success = true;
+}
+
+// Varies per payment gateway
+$transactionId = $json['resource']['reference'];
+$invoiceId = (int) $transactionId;
+$paymentAmount = (float) $json['resource']['amount'];
+$paymentFee = 0.00;
+
+// remove when bug was fix --------------------------------------\/
+
+$milliseconds = round(microtime(true) * 1000);
+$firstnum = substr($milliseconds, 12, 1);
+$secondnum = substr($milliseconds, 11, 1);
+$thirdnum = substr($milliseconds, 10, 1);
+$total = $firstnum + $secondnum + $thirdnum;
+sleep($total);
+
+$firstsleep = rand(0, 5);
+$secondsleep = rand(0, 5);
+while ($firstsleep == $secondsleep) {
+ $firstsleep = rand(0, 2);
+}
+
+sleep($firstsleep);
+sleep($secondsleep);
+// remove when bug was fix --------------------------------------/\
+
+// transaction STATUS
+$transactionStatus = $success ? 'Success' : 'Failure';
+
+// InvoiceId Check
+$invoiceId = checkCbInvoiceID($invoiceId, $gatewayParams['name']);
+
+// TransactionId Check
+checkCbTransID($transactionId);
+
+// Send Log Transaction
+logTransaction($gatewayParams['name'], $milliseconds . "-" . $total . $payload, $transactionStatus);
+
+// If status is Success then Add Invoice Payment
+if ($status == 'Success') {
+
+ addInvoicePayment(
+ $invoiceId,
+ $transactionId,
+ $paymentAmount,
+ $paymentFee,
+ $gatewayModuleName
+ );
+
+}
+
+?>
diff --git a/modules/gateways/utrust.php b/modules/gateways/utrust.php
new file mode 100755
index 0000000..d040242
--- /dev/null
+++ b/modules/gateways/utrust.php
@@ -0,0 +1,174 @@
+ 'Utrust',
+ 'APIVersion' => '1.1', // Use API Version 1.1
+ 'DisableLocalCredtCardInput' => true,
+ 'TokenisedStorage' => false,
+ );
+}
+
+// Configure Gateway configurations
+function utrust_config()
+{
+ return array(
+ // the friendly display name for a payment gateway should be
+ // defined here for backwards compatibility
+ 'FriendlyName' => array(
+ 'Type' => 'System',
+ 'Value' => 'Utrust',
+ ),
+ 'api_key' => array(
+ 'Type' => 'text',
+ 'Default' => '',
+ 'Description' => 'Insert API Key',
+ ),
+ 'webhooks_key' => array(
+ 'Type' => 'text',
+ 'Default' => '',
+ 'Description' => 'Insert Webhooks key',
+ ),
+ 'testMode' => array(
+ 'FriendlyName' => 'Test Mode',
+ 'Type' => 'yesno',
+ 'Description' => 'Tick to enable test mode',
+ ),
+ );
+}
+
+function utrust_link($params)
+{
+
+ // Gateway Configuration Parameters
+ $accountId = $params['accountID'];
+ $secretKey = $params['secretKey'];
+ $dropdownField = $params['dropdownField'];
+ $radioField = $params['radioField'];
+ $textareaField = $params['textareaField'];
+ $successurl = $params['returnurl'] . "&paymentsuccess=true";
+ $failurl = $params['returnurl'] . "&paymentfailed=true";
+ $api_key = $params['api_key'];
+ $webhooks_key = $params['webhooks_key'];
+
+ // TestMode verify
+ if ($params['testMode'] == 'on') {
+ $testMode = 'sandbox';
+ } else {
+ $testMode = 'production';
+ }
+
+ // Invoice Parameters
+ $invoiceId = $params['invoiceid'];
+ $description = $params["description"];
+ $amount = $params['amount'];
+ $currencyCode = $params['currency'];
+ $transid = $params['transid'];
+
+ // Client Parameters
+ $firstname = $params['clientdetails']['firstname'];
+ $lastname = $params['clientdetails']['lastname'];
+ $email = $params['clientdetails']['email'];
+ $address1 = $params['clientdetails']['address1'];
+ $address2 = $params['clientdetails']['address2'];
+ $city = $params['clientdetails']['city'];
+ $state = $params['clientdetails']['state'];
+ $postcode = $params['clientdetails']['postcode'];
+ $country = $params['clientdetails']['country'];
+ $phone = $params['clientdetails']['phonenumber'];
+
+ // System Parameters
+ $companyName = $params['companyname'];
+ $systemUrl = $params['systemurl'];
+ $returnUrl = $params['returnurl'];
+ $langPayNow = $params['langpaynow'];
+ $moduleDisplayName = $params['name'];
+ $moduleName = $params['paymentmethod'];
+ $whmcsVersion = $params['whmcsVersion'];
+
+ $postfields = array();
+ $postfields['username'] = $username;
+ $postfields['invoice_id'] = $invoiceId;
+ $postfields['description'] = $description;
+ $postfields['amount'] = $amount;
+ $postfields['currency'] = $currencyCode;
+ $postfields['first_name'] = $firstname;
+ $postfields['last_name'] = $lastname;
+ $postfields['email'] = $email;
+ $postfields['address1'] = $address1;
+ $postfields['address2'] = $address2;
+ $postfields['city'] = $city;
+ $postfields['state'] = $state;
+ $postfields['postcode'] = $postcode;
+ $postfields['country'] = $country;
+ $postfields['phone'] = $phone;
+ $callback = $systemUrl . '/modules/gateways/callback/utrust.php';
+
+ // Utrust
+ $utrustApi = new ApiClient($api_key, $testMode);
+
+ // Build Order data array
+ $orderData = [
+ 'reference' => "$invoiceId",
+ 'amount' => [
+ 'total' => $amount,
+ 'currency' => $currencyCode,
+ ],
+ 'return_urls' => [
+ 'return_url' => $successurl,
+ 'cancel_url' => $failurl,
+ 'callback_url' => $callback,
+ ],
+ 'line_items' => [
+ [
+ 'sku' => "$invoiceId",
+ 'name' => $description,
+ 'price' => $amount,
+ 'currency' => $currencyCode,
+ 'quantity' => 1,
+ ],
+ ],
+ ];
+
+ // Build Customer data array
+ $customerData = [
+ 'first_name' => $firstname,
+ 'last_name' => $lastname,
+ 'email' => $email,
+ 'country' => $country,
+ ];
+ try {
+ // Validate data
+ $orderIsValid = Validator::order($orderData);
+ $customerIsValid = Validator::customer($customerData);
+
+ // Make the API request
+ if ($orderIsValid == true && $customerIsValid == true) {
+ $response = $utrustApi->createOrder($orderData, $customerData);
+ }
+
+ // Use the $redirect_url to redirect the customer to our Payment Widget
+ //echo $response->attributes->redirect_url;
+ } catch (Exception $e) {
+ // Handle error (e.g.: show message to the customer)
+ echo 'Something went wrong: ' . $e->getMessage();
+ }
+
+ // Return url link to pay
+ $htmlOutput = '
';
+ return $htmlOutput;
+}
diff --git a/modules/gateways/vendor/autoload.php b/modules/gateways/vendor/autoload.php
new file mode 100755
index 0000000..acf9ce6
--- /dev/null
+++ b/modules/gateways/vendor/autoload.php
@@ -0,0 +1,7 @@
+
+ * Jordi Boggiano
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Composer\Autoload;
+
+/**
+ * ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
+ *
+ * $loader = new \Composer\Autoload\ClassLoader();
+ *
+ * // register classes with namespaces
+ * $loader->add('Symfony\Component', __DIR__.'/component');
+ * $loader->add('Symfony', __DIR__.'/framework');
+ *
+ * // activate the autoloader
+ * $loader->register();
+ *
+ * // to enable searching the include path (eg. for PEAR packages)
+ * $loader->setUseIncludePath(true);
+ *
+ * In this example, if you try to use a class in the Symfony\Component
+ * namespace or one of its children (Symfony\Component\Console for instance),
+ * the autoloader will first look for the class under the component/
+ * directory, and it will then fallback to the framework/ directory if not
+ * found before giving up.
+ *
+ * This class is loosely based on the Symfony UniversalClassLoader.
+ *
+ * @author Fabien Potencier
+ * @author Jordi Boggiano
+ * @see http://www.php-fig.org/psr/psr-0/
+ * @see http://www.php-fig.org/psr/psr-4/
+ */
+class ClassLoader
+{
+ // PSR-4
+ private $prefixLengthsPsr4 = array();
+ private $prefixDirsPsr4 = array();
+ private $fallbackDirsPsr4 = array();
+
+ // PSR-0
+ private $prefixesPsr0 = array();
+ private $fallbackDirsPsr0 = array();
+
+ private $useIncludePath = false;
+ private $classMap = array();
+ private $classMapAuthoritative = false;
+ private $missingClasses = array();
+ private $apcuPrefix;
+
+ public function getPrefixes()
+ {
+ if (!empty($this->prefixesPsr0)) {
+ return call_user_func_array('array_merge', $this->prefixesPsr0);
+ }
+
+ return array();
+ }
+
+ public function getPrefixesPsr4()
+ {
+ return $this->prefixDirsPsr4;
+ }
+
+ public function getFallbackDirs()
+ {
+ return $this->fallbackDirsPsr0;
+ }
+
+ public function getFallbackDirsPsr4()
+ {
+ return $this->fallbackDirsPsr4;
+ }
+
+ public function getClassMap()
+ {
+ return $this->classMap;
+ }
+
+ /**
+ * @param array $classMap Class to filename map
+ */
+ public function addClassMap(array $classMap)
+ {
+ if ($this->classMap) {
+ $this->classMap = array_merge($this->classMap, $classMap);
+ } else {
+ $this->classMap = $classMap;
+ }
+ }
+
+ /**
+ * Registers a set of PSR-0 directories for a given prefix, either
+ * appending or prepending to the ones previously set for this prefix.
+ *
+ * @param string $prefix The prefix
+ * @param array|string $paths The PSR-0 root directories
+ * @param bool $prepend Whether to prepend the directories
+ */
+ public function add($prefix, $paths, $prepend = false)
+ {
+ if (!$prefix) {
+ if ($prepend) {
+ $this->fallbackDirsPsr0 = array_merge(
+ (array) $paths,
+ $this->fallbackDirsPsr0
+ );
+ } else {
+ $this->fallbackDirsPsr0 = array_merge(
+ $this->fallbackDirsPsr0,
+ (array) $paths
+ );
+ }
+
+ return;
+ }
+
+ $first = $prefix[0];
+ if (!isset($this->prefixesPsr0[$first][$prefix])) {
+ $this->prefixesPsr0[$first][$prefix] = (array) $paths;
+
+ return;
+ }
+ if ($prepend) {
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
+ (array) $paths,
+ $this->prefixesPsr0[$first][$prefix]
+ );
+ } else {
+ $this->prefixesPsr0[$first][$prefix] = array_merge(
+ $this->prefixesPsr0[$first][$prefix],
+ (array) $paths
+ );
+ }
+ }
+
+ /**
+ * Registers a set of PSR-4 directories for a given namespace, either
+ * appending or prepending to the ones previously set for this namespace.
+ *
+ * @param string $prefix The prefix/namespace, with trailing '\\'
+ * @param array|string $paths The PSR-4 base directories
+ * @param bool $prepend Whether to prepend the directories
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function addPsr4($prefix, $paths, $prepend = false)
+ {
+ if (!$prefix) {
+ // Register directories for the root namespace.
+ if ($prepend) {
+ $this->fallbackDirsPsr4 = array_merge(
+ (array) $paths,
+ $this->fallbackDirsPsr4
+ );
+ } else {
+ $this->fallbackDirsPsr4 = array_merge(
+ $this->fallbackDirsPsr4,
+ (array) $paths
+ );
+ }
+ } elseif (!isset($this->prefixDirsPsr4[$prefix])) {
+ // Register directories for a new namespace.
+ $length = strlen($prefix);
+ if ('\\' !== $prefix[$length - 1]) {
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
+ }
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
+ } elseif ($prepend) {
+ // Prepend directories for an already registered namespace.
+ $this->prefixDirsPsr4[$prefix] = array_merge(
+ (array) $paths,
+ $this->prefixDirsPsr4[$prefix]
+ );
+ } else {
+ // Append directories for an already registered namespace.
+ $this->prefixDirsPsr4[$prefix] = array_merge(
+ $this->prefixDirsPsr4[$prefix],
+ (array) $paths
+ );
+ }
+ }
+
+ /**
+ * Registers a set of PSR-0 directories for a given prefix,
+ * replacing any others previously set for this prefix.
+ *
+ * @param string $prefix The prefix
+ * @param array|string $paths The PSR-0 base directories
+ */
+ public function set($prefix, $paths)
+ {
+ if (!$prefix) {
+ $this->fallbackDirsPsr0 = (array) $paths;
+ } else {
+ $this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
+ }
+ }
+
+ /**
+ * Registers a set of PSR-4 directories for a given namespace,
+ * replacing any others previously set for this namespace.
+ *
+ * @param string $prefix The prefix/namespace, with trailing '\\'
+ * @param array|string $paths The PSR-4 base directories
+ *
+ * @throws \InvalidArgumentException
+ */
+ public function setPsr4($prefix, $paths)
+ {
+ if (!$prefix) {
+ $this->fallbackDirsPsr4 = (array) $paths;
+ } else {
+ $length = strlen($prefix);
+ if ('\\' !== $prefix[$length - 1]) {
+ throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
+ }
+ $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
+ $this->prefixDirsPsr4[$prefix] = (array) $paths;
+ }
+ }
+
+ /**
+ * Turns on searching the include path for class files.
+ *
+ * @param bool $useIncludePath
+ */
+ public function setUseIncludePath($useIncludePath)
+ {
+ $this->useIncludePath = $useIncludePath;
+ }
+
+ /**
+ * Can be used to check if the autoloader uses the include path to check
+ * for classes.
+ *
+ * @return bool
+ */
+ public function getUseIncludePath()
+ {
+ return $this->useIncludePath;
+ }
+
+ /**
+ * Turns off searching the prefix and fallback directories for classes
+ * that have not been registered with the class map.
+ *
+ * @param bool $classMapAuthoritative
+ */
+ public function setClassMapAuthoritative($classMapAuthoritative)
+ {
+ $this->classMapAuthoritative = $classMapAuthoritative;
+ }
+
+ /**
+ * Should class lookup fail if not found in the current class map?
+ *
+ * @return bool
+ */
+ public function isClassMapAuthoritative()
+ {
+ return $this->classMapAuthoritative;
+ }
+
+ /**
+ * APCu prefix to use to cache found/not-found classes, if the extension is enabled.
+ *
+ * @param string|null $apcuPrefix
+ */
+ public function setApcuPrefix($apcuPrefix)
+ {
+ $this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
+ }
+
+ /**
+ * The APCu prefix in use, or null if APCu caching is not enabled.
+ *
+ * @return string|null
+ */
+ public function getApcuPrefix()
+ {
+ return $this->apcuPrefix;
+ }
+
+ /**
+ * Registers this instance as an autoloader.
+ *
+ * @param bool $prepend Whether to prepend the autoloader or not
+ */
+ public function register($prepend = false)
+ {
+ spl_autoload_register(array($this, 'loadClass'), true, $prepend);
+ }
+
+ /**
+ * Unregisters this instance as an autoloader.
+ */
+ public function unregister()
+ {
+ spl_autoload_unregister(array($this, 'loadClass'));
+ }
+
+ /**
+ * Loads the given class or interface.
+ *
+ * @param string $class The name of the class
+ * @return bool|null True if loaded, null otherwise
+ */
+ public function loadClass($class)
+ {
+ if ($file = $this->findFile($class)) {
+ includeFile($file);
+
+ return true;
+ }
+ }
+
+ /**
+ * Finds the path to the file where the class is defined.
+ *
+ * @param string $class The name of the class
+ *
+ * @return string|false The path if found, false otherwise
+ */
+ public function findFile($class)
+ {
+ // class map lookup
+ if (isset($this->classMap[$class])) {
+ return $this->classMap[$class];
+ }
+ if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
+ return false;
+ }
+ if (null !== $this->apcuPrefix) {
+ $file = apcu_fetch($this->apcuPrefix.$class, $hit);
+ if ($hit) {
+ return $file;
+ }
+ }
+
+ $file = $this->findFileWithExtension($class, '.php');
+
+ // Search for Hack files if we are running on HHVM
+ if (false === $file && defined('HHVM_VERSION')) {
+ $file = $this->findFileWithExtension($class, '.hh');
+ }
+
+ if (null !== $this->apcuPrefix) {
+ apcu_add($this->apcuPrefix.$class, $file);
+ }
+
+ if (false === $file) {
+ // Remember that this class does not exist.
+ $this->missingClasses[$class] = true;
+ }
+
+ return $file;
+ }
+
+ private function findFileWithExtension($class, $ext)
+ {
+ // PSR-4 lookup
+ $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
+
+ $first = $class[0];
+ if (isset($this->prefixLengthsPsr4[$first])) {
+ $subPath = $class;
+ while (false !== $lastPos = strrpos($subPath, '\\')) {
+ $subPath = substr($subPath, 0, $lastPos);
+ $search = $subPath . '\\';
+ if (isset($this->prefixDirsPsr4[$search])) {
+ $pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
+ foreach ($this->prefixDirsPsr4[$search] as $dir) {
+ if (file_exists($file = $dir . $pathEnd)) {
+ return $file;
+ }
+ }
+ }
+ }
+ }
+
+ // PSR-4 fallback dirs
+ foreach ($this->fallbackDirsPsr4 as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
+ return $file;
+ }
+ }
+
+ // PSR-0 lookup
+ if (false !== $pos = strrpos($class, '\\')) {
+ // namespaced class name
+ $logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
+ . strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
+ } else {
+ // PEAR-like class name
+ $logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
+ }
+
+ if (isset($this->prefixesPsr0[$first])) {
+ foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
+ if (0 === strpos($class, $prefix)) {
+ foreach ($dirs as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
+ return $file;
+ }
+ }
+ }
+ }
+ }
+
+ // PSR-0 fallback dirs
+ foreach ($this->fallbackDirsPsr0 as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
+ return $file;
+ }
+ }
+
+ // PSR-0 include paths.
+ if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
+ return $file;
+ }
+
+ return false;
+ }
+}
+
+/**
+ * Scope isolated include.
+ *
+ * Prevents access to $this/self from included files.
+ */
+function includeFile($file)
+{
+ include $file;
+}
diff --git a/modules/gateways/vendor/composer/LICENSE b/modules/gateways/vendor/composer/LICENSE
new file mode 100755
index 0000000..6256709
--- /dev/null
+++ b/modules/gateways/vendor/composer/LICENSE
@@ -0,0 +1,21 @@
+
+Copyright (c) Nils Adermann, Jordi Boggiano
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
diff --git a/modules/gateways/vendor/composer/autoload_classmap.php b/modules/gateways/vendor/composer/autoload_classmap.php
new file mode 100755
index 0000000..b50890d
--- /dev/null
+++ b/modules/gateways/vendor/composer/autoload_classmap.php
@@ -0,0 +1,9 @@
+ $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
+);
diff --git a/modules/gateways/vendor/composer/autoload_namespaces.php b/modules/gateways/vendor/composer/autoload_namespaces.php
new file mode 100755
index 0000000..d19daea
--- /dev/null
+++ b/modules/gateways/vendor/composer/autoload_namespaces.php
@@ -0,0 +1,9 @@
+ array($vendorDir . '/vlucas/valitron/src/Valitron'),
+ 'Utrust\\' => array($vendorDir . '/utrust/utrust/src'),
+ 'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
+ 'PhpOption\\' => array($vendorDir . '/phpoption/phpoption/src/PhpOption'),
+ 'Dotenv\\' => array($vendorDir . '/vlucas/phpdotenv/src'),
+);
diff --git a/modules/gateways/vendor/composer/autoload_real.php b/modules/gateways/vendor/composer/autoload_real.php
new file mode 100755
index 0000000..bfde20f
--- /dev/null
+++ b/modules/gateways/vendor/composer/autoload_real.php
@@ -0,0 +1,70 @@
+= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
+ if ($useStaticLoader) {
+ require_once __DIR__ . '/autoload_static.php';
+
+ call_user_func(\Composer\Autoload\ComposerStaticInit4d59f6df2bd1b818801c4a5877064a6f::getInitializer($loader));
+ } else {
+ $map = require __DIR__ . '/autoload_namespaces.php';
+ foreach ($map as $namespace => $path) {
+ $loader->set($namespace, $path);
+ }
+
+ $map = require __DIR__ . '/autoload_psr4.php';
+ foreach ($map as $namespace => $path) {
+ $loader->setPsr4($namespace, $path);
+ }
+
+ $classMap = require __DIR__ . '/autoload_classmap.php';
+ if ($classMap) {
+ $loader->addClassMap($classMap);
+ }
+ }
+
+ $loader->register(true);
+
+ if ($useStaticLoader) {
+ $includeFiles = Composer\Autoload\ComposerStaticInit4d59f6df2bd1b818801c4a5877064a6f::$files;
+ } else {
+ $includeFiles = require __DIR__ . '/autoload_files.php';
+ }
+ foreach ($includeFiles as $fileIdentifier => $file) {
+ composerRequire4d59f6df2bd1b818801c4a5877064a6f($fileIdentifier, $file);
+ }
+
+ return $loader;
+ }
+}
+
+function composerRequire4d59f6df2bd1b818801c4a5877064a6f($fileIdentifier, $file)
+{
+ if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
+ require $file;
+
+ $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
+ }
+}
diff --git a/modules/gateways/vendor/composer/autoload_static.php b/modules/gateways/vendor/composer/autoload_static.php
new file mode 100755
index 0000000..22c46d1
--- /dev/null
+++ b/modules/gateways/vendor/composer/autoload_static.php
@@ -0,0 +1,67 @@
+ __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
+ );
+
+ public static $prefixLengthsPsr4 = array (
+ 'V' =>
+ array (
+ 'Valitron\\' => 9,
+ ),
+ 'U' =>
+ array (
+ 'Utrust\\' => 7,
+ ),
+ 'S' =>
+ array (
+ 'Symfony\\Polyfill\\Ctype\\' => 23,
+ ),
+ 'P' =>
+ array (
+ 'PhpOption\\' => 10,
+ ),
+ 'D' =>
+ array (
+ 'Dotenv\\' => 7,
+ ),
+ );
+
+ public static $prefixDirsPsr4 = array (
+ 'Valitron\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/vlucas/valitron/src/Valitron',
+ ),
+ 'Utrust\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/utrust/utrust/src',
+ ),
+ 'Symfony\\Polyfill\\Ctype\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
+ ),
+ 'PhpOption\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/phpoption/phpoption/src/PhpOption',
+ ),
+ 'Dotenv\\' =>
+ array (
+ 0 => __DIR__ . '/..' . '/vlucas/phpdotenv/src',
+ ),
+ );
+
+ public static function getInitializer(ClassLoader $loader)
+ {
+ return \Closure::bind(function () use ($loader) {
+ $loader->prefixLengthsPsr4 = ComposerStaticInit4d59f6df2bd1b818801c4a5877064a6f::$prefixLengthsPsr4;
+ $loader->prefixDirsPsr4 = ComposerStaticInit4d59f6df2bd1b818801c4a5877064a6f::$prefixDirsPsr4;
+
+ }, null, ClassLoader::class);
+ }
+}
diff --git a/modules/gateways/vendor/composer/installed.json b/modules/gateways/vendor/composer/installed.json
new file mode 100755
index 0000000..1157d33
--- /dev/null
+++ b/modules/gateways/vendor/composer/installed.json
@@ -0,0 +1,273 @@
+[
+ {
+ "name": "phpoption/phpoption",
+ "version": "1.7.2",
+ "version_normalized": "1.7.2.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/schmittjoh/php-option.git",
+ "reference": "77f7c4d2e65413aff5b5a8cc8b3caf7a28d81959"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/77f7c4d2e65413aff5b5a8cc8b3caf7a28d81959",
+ "reference": "77f7c4d2e65413aff5b5a8cc8b3caf7a28d81959",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.5.9 || ^7.0"
+ },
+ "require-dev": {
+ "bamarni/composer-bin-plugin": "^1.3",
+ "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "time": "2019-12-15T19:35:24+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.7-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "PhpOption\\": "src/PhpOption/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "Apache-2.0"
+ ],
+ "authors": [
+ {
+ "name": "Johannes M. Schmitt",
+ "email": "schmittjoh@gmail.com"
+ },
+ {
+ "name": "Graham Campbell",
+ "email": "graham@alt-three.com"
+ }
+ ],
+ "description": "Option Type for PHP",
+ "keywords": [
+ "language",
+ "option",
+ "php",
+ "type"
+ ]
+ },
+ {
+ "name": "symfony/polyfill-ctype",
+ "version": "v1.13.1",
+ "version_normalized": "1.13.1.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-ctype.git",
+ "reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/f8f0b461be3385e56d6de3dbb5a0df24c0c275e3",
+ "reference": "f8f0b461be3385e56d6de3dbb5a0df24c0c275e3",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "suggest": {
+ "ext-ctype": "For best performance"
+ },
+ "time": "2019-11-27T13:56:44+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.13-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Gert de Pagter",
+ "email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for ctype functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "ctype",
+ "polyfill",
+ "portable"
+ ]
+ },
+ {
+ "name": "utrust/utrust",
+ "version": "v1.0.3",
+ "version_normalized": "1.0.3.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/utrustdev/utrust-php.git",
+ "reference": "f9f0ae51293cbf6074ad2c23f97cec9bedafb625"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/utrustdev/utrust-php/zipball/f9f0ae51293cbf6074ad2c23f97cec9bedafb625",
+ "reference": "f9f0ae51293cbf6074ad2c23f97cec9bedafb625",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0",
+ "vlucas/valitron": "^1.4.7"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^8",
+ "squizlabs/php_codesniffer": "*"
+ },
+ "time": "2020-01-15T16:45:46+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Utrust\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "GPL-3.0-or-later"
+ ],
+ "authors": [
+ {
+ "name": "Utrust Team",
+ "email": "team@utrust.com"
+ }
+ ],
+ "description": "Utrust API library"
+ },
+ {
+ "name": "vlucas/phpdotenv",
+ "version": "v4.1.0",
+ "version_normalized": "4.1.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/vlucas/phpdotenv.git",
+ "reference": "0176075a1b7ee9cf86f70143ec79edf7072c975a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/0176075a1b7ee9cf86f70143ec79edf7072c975a",
+ "reference": "0176075a1b7ee9cf86f70143ec79edf7072c975a",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.5.9 || ^7.0",
+ "phpoption/phpoption": "^1.7.1",
+ "symfony/polyfill-ctype": "^1.9"
+ },
+ "require-dev": {
+ "bamarni/composer-bin-plugin": "^1.3",
+ "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "time": "2019-12-14T13:59:29+00:00",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.1-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Dotenv\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Graham Campbell",
+ "email": "graham@alt-three.com",
+ "homepage": "https://gjcampbell.co.uk/"
+ },
+ {
+ "name": "Vance Lucas",
+ "email": "vance@vancelucas.com",
+ "homepage": "https://vancelucas.com/"
+ }
+ ],
+ "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
+ "keywords": [
+ "dotenv",
+ "env",
+ "environment"
+ ]
+ },
+ {
+ "name": "vlucas/valitron",
+ "version": "v1.4.7",
+ "version_normalized": "1.4.7.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/vlucas/valitron.git",
+ "reference": "a03072bed1679660200766d134507a30193eaf6d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/vlucas/valitron/zipball/a03072bed1679660200766d134507a30193eaf6d",
+ "reference": "a03072bed1679660200766d134507a30193eaf6d",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.5 || ^6.5"
+ },
+ "suggest": {
+ "ext-mbstring": "It can support the multiple bytes string length."
+ },
+ "time": "2019-08-29T19:49:43+00:00",
+ "type": "library",
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "Valitron\\": "src/Valitron"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Vance Lucas",
+ "email": "vance@vancelucas.com",
+ "homepage": "http://www.vancelucas.com"
+ }
+ ],
+ "description": "Simple, elegant, stand-alone validation library with NO dependencies",
+ "homepage": "http://github.com/vlucas/valitron",
+ "keywords": [
+ "valid",
+ "validation",
+ "validator"
+ ]
+ }
+]
diff --git a/modules/gateways/vendor/phpoption/phpoption/LICENSE b/modules/gateways/vendor/phpoption/phpoption/LICENSE
new file mode 100755
index 0000000..753842b
--- /dev/null
+++ b/modules/gateways/vendor/phpoption/phpoption/LICENSE
@@ -0,0 +1,201 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
\ No newline at end of file
diff --git a/modules/gateways/vendor/phpoption/phpoption/composer.json b/modules/gateways/vendor/phpoption/phpoption/composer.json
new file mode 100755
index 0000000..f43df5a
--- /dev/null
+++ b/modules/gateways/vendor/phpoption/phpoption/composer.json
@@ -0,0 +1,38 @@
+{
+ "name": "phpoption/phpoption",
+ "description": "Option Type for PHP",
+ "keywords": ["php", "option", "language", "type"],
+ "license": "Apache-2.0",
+ "authors": [
+ {
+ "name": "Johannes M. Schmitt",
+ "email": "schmittjoh@gmail.com"
+ },
+ {
+ "name": "Graham Campbell",
+ "email": "graham@alt-three.com"
+ }
+ ],
+ "require": {
+ "php": "^5.5.9 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0",
+ "bamarni/composer-bin-plugin": "^1.3"
+ },
+ "autoload": {
+ "psr-4": {
+ "PhpOption\\": "src/PhpOption/"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "PhpOption\\Tests\\": "tests/PhpOption/Tests/"
+ }
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.7-dev"
+ }
+ }
+}
diff --git a/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php b/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php
new file mode 100755
index 0000000..c4b9990
--- /dev/null
+++ b/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/LazyOption.php
@@ -0,0 +1,169 @@
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace PhpOption;
+
+/**
+ * @template T
+ *
+ * @extends Option
+ */
+final class LazyOption extends Option
+{
+ /** @var callable(mixed...):(Option) */
+ private $callback;
+
+ /** @var array */
+ private $arguments;
+
+ /** @var Option|null */
+ private $option;
+
+ /**
+ * @template S
+ * @param callable(mixed...):(Option) $callback
+ * @param array $arguments
+ *
+ * @return LazyOption
+ */
+ public static function create($callback, array $arguments = [])
+ {
+ return new self($callback, $arguments);
+ }
+
+ /**
+ * @param callable(mixed...):(Option) $callback
+ * @param array $arguments
+ */
+ public function __construct($callback, array $arguments = [])
+ {
+ if (!is_callable($callback)) {
+ throw new \InvalidArgumentException('Invalid callback given');
+ }
+
+ $this->callback = $callback;
+ $this->arguments = $arguments;
+ }
+
+ public function isDefined()
+ {
+ return $this->option()->isDefined();
+ }
+
+ public function isEmpty()
+ {
+ return $this->option()->isEmpty();
+ }
+
+ public function get()
+ {
+ return $this->option()->get();
+ }
+
+ public function getOrElse($default)
+ {
+ return $this->option()->getOrElse($default);
+ }
+
+ public function getOrCall($callable)
+ {
+ return $this->option()->getOrCall($callable);
+ }
+
+ public function getOrThrow(\Exception $ex)
+ {
+ return $this->option()->getOrThrow($ex);
+ }
+
+ public function orElse(Option $else)
+ {
+ return $this->option()->orElse($else);
+ }
+
+ public function ifDefined($callable)
+ {
+ $this->option()->ifDefined($callable);
+ }
+
+ public function forAll($callable)
+ {
+ return $this->option()->forAll($callable);
+ }
+
+ public function map($callable)
+ {
+ return $this->option()->map($callable);
+ }
+
+ public function flatMap($callable)
+ {
+ return $this->option()->flatMap($callable);
+ }
+
+ public function filter($callable)
+ {
+ return $this->option()->filter($callable);
+ }
+
+ public function filterNot($callable)
+ {
+ return $this->option()->filterNot($callable);
+ }
+
+ public function select($value)
+ {
+ return $this->option()->select($value);
+ }
+
+ public function reject($value)
+ {
+ return $this->option()->reject($value);
+ }
+
+ public function getIterator()
+ {
+ return $this->option()->getIterator();
+ }
+
+ public function foldLeft($initialValue, $callable)
+ {
+ return $this->option()->foldLeft($initialValue, $callable);
+ }
+
+ public function foldRight($initialValue, $callable)
+ {
+ return $this->option()->foldRight($initialValue, $callable);
+ }
+
+ /**
+ * @return Option
+ */
+ private function option()
+ {
+ if (null === $this->option) {
+ $this->option = call_user_func_array($this->callback, $this->arguments);
+ if (!$this->option instanceof Option) {
+ $this->option = null;
+
+ throw new \RuntimeException(sprintf('Expected instance of \%s', Option::class));
+ }
+ }
+
+ return $this->option;
+ }
+}
diff --git a/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/None.php b/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/None.php
new file mode 100755
index 0000000..614bcbd
--- /dev/null
+++ b/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/None.php
@@ -0,0 +1,136 @@
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace PhpOption;
+
+use EmptyIterator;
+
+/**
+ * @extends Option
+ */
+final class None extends Option
+{
+ /** @var None|null */
+ private static $instance;
+
+ /**
+ * @return None
+ */
+ public static function create()
+ {
+ if (null === self::$instance) {
+ self::$instance = new self();
+ }
+
+ return self::$instance;
+ }
+
+ public function get()
+ {
+ throw new \RuntimeException('None has no value.');
+ }
+
+ public function getOrCall($callable)
+ {
+ return $callable();
+ }
+
+ public function getOrElse($default)
+ {
+ return $default;
+ }
+
+ public function getOrThrow(\Exception $ex)
+ {
+ throw $ex;
+ }
+
+ public function isEmpty()
+ {
+ return true;
+ }
+
+ public function isDefined()
+ {
+ return false;
+ }
+
+ public function orElse(Option $else)
+ {
+ return $else;
+ }
+
+ public function ifDefined($callable)
+ {
+ // Just do nothing in that case.
+ }
+
+ public function forAll($callable)
+ {
+ return $this;
+ }
+
+ public function map($callable)
+ {
+ return $this;
+ }
+
+ public function flatMap($callable)
+ {
+ return $this;
+ }
+
+ public function filter($callable)
+ {
+ return $this;
+ }
+
+ public function filterNot($callable)
+ {
+ return $this;
+ }
+
+ public function select($value)
+ {
+ return $this;
+ }
+
+ public function reject($value)
+ {
+ return $this;
+ }
+
+ public function getIterator()
+ {
+ return new EmptyIterator();
+ }
+
+ public function foldLeft($initialValue, $callable)
+ {
+ return $initialValue;
+ }
+
+ public function foldRight($initialValue, $callable)
+ {
+ return $initialValue;
+ }
+
+ private function __construct()
+ {
+ }
+}
diff --git a/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/Option.php b/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/Option.php
new file mode 100755
index 0000000..93e4caa
--- /dev/null
+++ b/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/Option.php
@@ -0,0 +1,434 @@
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace PhpOption;
+
+use ArrayAccess;
+use IteratorAggregate;
+
+/**
+ * @template T
+ *
+ * @implements IteratorAggregate
+ */
+abstract class Option implements IteratorAggregate
+{
+ /**
+ * Creates an option given a return value.
+ *
+ * This is intended for consuming existing APIs and allows you to easily
+ * convert them to an option. By default, we treat ``null`` as the None
+ * case, and everything else as Some.
+ *
+ * @template S
+ *
+ * @param S $value The actual return value.
+ * @param S $noneValue The value which should be considered "None"; null by
+ * default.
+ *
+ * @return Option
+ */
+ public static function fromValue($value, $noneValue = null)
+ {
+ if ($value === $noneValue) {
+ return None::create();
+ }
+
+ return new Some($value);
+ }
+
+ /**
+ * Creates an option from an array's value.
+ *
+ * If the key does not exist in the array, the array is not actually an
+ * array, or the array's value at the given key is null, None is returned.
+ * Otherwise, Some is returned wrapping the value at the given key.
+ *
+ * @template S
+ *
+ * @param array|ArrayAccess|null $array A potential array or \ArrayAccess value.
+ * @param string $key The key to check.
+ *
+ * @return Option
+ */
+ public static function fromArraysValue($array, $key)
+ {
+ if (!(is_array($array) || $array instanceof ArrayAccess) || !isset($array[$key])) {
+ return None::create();
+ }
+
+ return new Some($array[$key]);
+ }
+
+ /**
+ * Creates a lazy-option with the given callback.
+ *
+ * This is also a helper constructor for lazy-consuming existing APIs where
+ * the return value is not yet an option. By default, we treat ``null`` as
+ * None case, and everything else as Some.
+ *
+ * @template S
+ *
+ * @param callable $callback The callback to evaluate.
+ * @param array $arguments The arguments for the callback.
+ * @param S $noneValue The value which should be considered "None";
+ * null by default.
+ *
+ * @return LazyOption
+ */
+ public static function fromReturn($callback, array $arguments = [], $noneValue = null)
+ {
+ return new LazyOption(function () use ($callback, $arguments, $noneValue) {
+ /** @var mixed */
+ $return = call_user_func_array($callback, $arguments);
+
+ if ($return === $noneValue) {
+ return None::create();
+ }
+
+ return new Some($return);
+ });
+ }
+
+ /**
+ * Option factory, which creates new option based on passed value.
+ *
+ * If value is already an option, it simply returns. If value is callable,
+ * LazyOption with passed callback created and returned. If Option
+ * returned from callback, it returns directly. On other case value passed
+ * to Option::fromValue() method.
+ *
+ * @template S
+ *
+ * @param Option|callable|S $value
+ * @param S $noneValue Used when $value is mixed or
+ * callable, for None-check.
+ *
+ * @return Option|LazyOption
+ */
+ public static function ensure($value, $noneValue = null)
+ {
+ if ($value instanceof self) {
+ return $value;
+ } elseif (is_callable($value)) {
+ return new LazyOption(function () use ($value, $noneValue) {
+ /** @var mixed */
+ $return = $value();
+
+ if ($return instanceof self) {
+ return $return;
+ } else {
+ return self::fromValue($return, $noneValue);
+ }
+ });
+ } else {
+ return self::fromValue($value, $noneValue);
+ }
+ }
+
+ /**
+ * Lift a function so that it accepts Option as parameters.
+ *
+ * We return a new closure that wraps the original callback. If any of the
+ * parameters passed to the lifted function is empty, the function will
+ * return a value of None. Otherwise, we will pass all parameters to the
+ * original callback and return the value inside a new Option, unless an
+ * Option is returned from the function, in which case, we use that.
+ *
+ * @template S
+ *
+ * @param callable $callback
+ * @param mixed $noneValue
+ *
+ * @return callable
+ */
+ public static function lift($callback, $noneValue = null)
+ {
+ return function () use ($callback, $noneValue) {
+ /** @var array */
+ $args = func_get_args();
+
+ $reduced_args = array_reduce(
+ $args,
+ /** @param bool $status */
+ function ($status, self $o) {
+ return $o->isEmpty() ? true : $status;
+ },
+ false
+ );
+ // if at least one parameter is empty, return None
+ if ($reduced_args) {
+ return None::create();
+ }
+
+ $args = array_map(
+ /** @return T */
+ function (self $o) {
+ // it is safe to do so because the fold above checked
+ // that all arguments are of type Some
+ /** @var T */
+ return $o->get();
+ },
+ $args
+ );
+
+ return self::ensure(call_user_func_array($callback, $args), $noneValue);
+ };
+ }
+
+ /**
+ * Returns the value if available, or throws an exception otherwise.
+ *
+ * @throws \RuntimeException If value is not available.
+ *
+ * @return T
+ */
+ abstract public function get();
+
+ /**
+ * Returns the value if available, or the default value if not.
+ *
+ * @template S
+ *
+ * @param S $default
+ *
+ * @return T|S
+ */
+ abstract public function getOrElse($default);
+
+ /**
+ * Returns the value if available, or the results of the callable.
+ *
+ * This is preferable over ``getOrElse`` if the computation of the default
+ * value is expensive.
+ *
+ * @template S
+ *
+ * @param callable():S $callable
+ *
+ * @return T|S
+ */
+ abstract public function getOrCall($callable);
+
+ /**
+ * Returns the value if available, or throws the passed exception.
+ *
+ * @param \Exception $ex
+ *
+ * @return T
+ */
+ abstract public function getOrThrow(\Exception $ex);
+
+ /**
+ * Returns true if no value is available, false otherwise.
+ *
+ * @return bool
+ */
+ abstract public function isEmpty();
+
+ /**
+ * Returns true if a value is available, false otherwise.
+ *
+ * @return bool
+ */
+ abstract public function isDefined();
+
+ /**
+ * Returns this option if non-empty, or the passed option otherwise.
+ *
+ * This can be used to try multiple alternatives, and is especially useful
+ * with lazy evaluating options:
+ *
+ * ```php
+ * $repo->findSomething()
+ * ->orElse(new LazyOption(array($repo, 'findSomethingElse')))
+ * ->orElse(new LazyOption(array($repo, 'createSomething')));
+ * ```
+ *
+ * @param Option $else
+ *
+ * @return Option
+ */
+ abstract public function orElse(self $else);
+
+ /**
+ * This is similar to map() below except that the return value has no meaning;
+ * the passed callable is simply executed if the option is non-empty, and
+ * ignored if the option is empty.
+ *
+ * In all cases, the return value of the callable is discarded.
+ *
+ * ```php
+ * $comment->getMaybeFile()->ifDefined(function($file) {
+ * // Do something with $file here.
+ * });
+ * ```
+ *
+ * If you're looking for something like ``ifEmpty``, you can use ``getOrCall``
+ * and ``getOrElse`` in these cases.
+ *
+ * @deprecated Use forAll() instead.
+ *
+ * @param callable(T):mixed $callable
+ *
+ * @return void
+ */
+ abstract public function ifDefined($callable);
+
+ /**
+ * This is similar to map() except that the return value of the callable has no meaning.
+ *
+ * The passed callable is simply executed if the option is non-empty, and ignored if the
+ * option is empty. This method is preferred for callables with side-effects, while map()
+ * is intended for callables without side-effects.
+ *
+ * @param callable(T):mixed $callable
+ *
+ * @return Option
+ */
+ abstract public function forAll($callable);
+
+ /**
+ * Applies the callable to the value of the option if it is non-empty,
+ * and returns the return value of the callable wrapped in Some().
+ *
+ * If the option is empty, then the callable is not applied.
+ *
+ * ```php
+ * (new Some("foo"))->map('strtoupper')->get(); // "FOO"
+ * ```
+ *
+ * @template S
+ *
+ * @param callable(T):S $callable
+ *
+ * @return Option
+ */
+ abstract public function map($callable);
+
+ /**
+ * Applies the callable to the value of the option if it is non-empty, and
+ * returns the return value of the callable directly.
+ *
+ * In contrast to ``map``, the return value of the callable is expected to
+ * be an Option itself; it is not automatically wrapped in Some().
+ *
+ * @template S
+ *
+ * @param callable(T):Option $callable must return an Option
+ *
+ * @return Option
+ */
+ abstract public function flatMap($callable);
+
+ /**
+ * If the option is empty, it is returned immediately without applying the callable.
+ *
+ * If the option is non-empty, the callable is applied, and if it returns true,
+ * the option itself is returned; otherwise, None is returned.
+ *
+ * @param callable(T):bool $callable
+ *
+ * @return Option
+ */
+ abstract public function filter($callable);
+
+ /**
+ * If the option is empty, it is returned immediately without applying the callable.
+ *
+ * If the option is non-empty, the callable is applied, and if it returns false,
+ * the option itself is returned; otherwise, None is returned.
+ *
+ * @param callable(T):bool $callable
+ *
+ * @return Option
+ */
+ abstract public function filterNot($callable);
+
+ /**
+ * If the option is empty, it is returned immediately.
+ *
+ * If the option is non-empty, and its value does not equal the passed value
+ * (via a shallow comparison ===), then None is returned. Otherwise, the
+ * Option is returned.
+ *
+ * In other words, this will filter all but the passed value.
+ *
+ * @param T $value
+ *
+ * @return Option
+ */
+ abstract public function select($value);
+
+ /**
+ * If the option is empty, it is returned immediately.
+ *
+ * If the option is non-empty, and its value does equal the passed value (via
+ * a shallow comparison ===), then None is returned; otherwise, the Option is
+ * returned.
+ *
+ * In other words, this will let all values through except the passed value.
+ *
+ * @param T $value
+ *
+ * @return Option
+ */
+ abstract public function reject($value);
+
+ /**
+ * Binary operator for the initial value and the option's value.
+ *
+ * If empty, the initial value is returned. If non-empty, the callable
+ * receives the initial value and the option's value as arguments.
+ *
+ * ```php
+ *
+ * $some = new Some(5);
+ * $none = None::create();
+ * $result = $some->foldLeft(1, function($a, $b) { return $a + $b; }); // int(6)
+ * $result = $none->foldLeft(1, function($a, $b) { return $a + $b; }); // int(1)
+ *
+ * // This can be used instead of something like the following:
+ * $option = Option::fromValue($integerOrNull);
+ * $result = 1;
+ * if ( ! $option->isEmpty()) {
+ * $result += $option->get();
+ * }
+ * ```
+ *
+ * @template S
+ *
+ * @param S $initialValue
+ * @param callable(S, T):S $callable
+ *
+ * @return S
+ */
+ abstract public function foldLeft($initialValue, $callable);
+
+ /**
+ * foldLeft() but with reversed arguments for the callable.
+ *
+ * @template S
+ *
+ * @param S $initialValue
+ * @param callable(T, S):S $callable
+ *
+ * @return S
+ */
+ abstract public function foldRight($initialValue, $callable);
+}
diff --git a/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/Some.php b/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/Some.php
new file mode 100755
index 0000000..f70db0f
--- /dev/null
+++ b/modules/gateways/vendor/phpoption/phpoption/src/PhpOption/Some.php
@@ -0,0 +1,165 @@
+
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+namespace PhpOption;
+
+use ArrayIterator;
+
+/**
+ * @template T
+ *
+ * @extends Option
+ */
+final class Some extends Option
+{
+ /** @var T */
+ private $value;
+
+ /**
+ * @param T $value
+ */
+ public function __construct($value)
+ {
+ $this->value = $value;
+ }
+
+ /**
+ * @template U
+ *
+ * @param U $value
+ *
+ * @return Some
+ */
+ public static function create($value)
+ {
+ return new self($value);
+ }
+
+ public function isDefined()
+ {
+ return true;
+ }
+
+ public function isEmpty()
+ {
+ return false;
+ }
+
+ public function get()
+ {
+ return $this->value;
+ }
+
+ public function getOrElse($default)
+ {
+ return $this->value;
+ }
+
+ public function getOrCall($callable)
+ {
+ return $this->value;
+ }
+
+ public function getOrThrow(\Exception $ex)
+ {
+ return $this->value;
+ }
+
+ public function orElse(Option $else)
+ {
+ return $this;
+ }
+
+ public function ifDefined($callable)
+ {
+ $callable($this->value);
+ }
+
+ public function forAll($callable)
+ {
+ $callable($this->value);
+
+ return $this;
+ }
+
+ public function map($callable)
+ {
+ return new self($callable($this->value));
+ }
+
+ public function flatMap($callable)
+ {
+ $rs = $callable($this->value);
+ if (!$rs instanceof Option) {
+ throw new \RuntimeException('Callables passed to flatMap() must return an Option. Maybe you should use map() instead?');
+ }
+
+ return $rs;
+ }
+
+ public function filter($callable)
+ {
+ if (true === $callable($this->value)) {
+ return $this;
+ }
+
+ return None::create();
+ }
+
+ public function filterNot($callable)
+ {
+ if (false === $callable($this->value)) {
+ return $this;
+ }
+
+ return None::create();
+ }
+
+ public function select($value)
+ {
+ if ($this->value === $value) {
+ return $this;
+ }
+
+ return None::create();
+ }
+
+ public function reject($value)
+ {
+ if ($this->value === $value) {
+ return None::create();
+ }
+
+ return $this;
+ }
+
+ public function getIterator()
+ {
+ return new ArrayIterator([$this->value]);
+ }
+
+ public function foldLeft($initialValue, $callable)
+ {
+ return $callable($initialValue, $this->value);
+ }
+
+ public function foldRight($initialValue, $callable)
+ {
+ return $callable($this->value, $initialValue);
+ }
+}
diff --git a/modules/gateways/vendor/symfony/polyfill-ctype/Ctype.php b/modules/gateways/vendor/symfony/polyfill-ctype/Ctype.php
new file mode 100755
index 0000000..3232dca
--- /dev/null
+++ b/modules/gateways/vendor/symfony/polyfill-ctype/Ctype.php
@@ -0,0 +1,227 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+namespace Symfony\Polyfill\Ctype;
+
+/**
+ * Ctype implementation through regex.
+ *
+ * @internal
+ *
+ * @author Gert de Pagter
+ */
+final class Ctype
+{
+ /**
+ * Returns TRUE if every character in text is either a letter or a digit, FALSE otherwise.
+ *
+ * @see https://php.net/ctype-alnum
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_alnum($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z0-9]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in text is a letter, FALSE otherwise.
+ *
+ * @see https://php.net/ctype-alpha
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_alpha($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^A-Za-z]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in text is a control character from the current locale, FALSE otherwise.
+ *
+ * @see https://php.net/ctype-cntrl
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_cntrl($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^\x00-\x1f\x7f]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in the string text is a decimal digit, FALSE otherwise.
+ *
+ * @see https://php.net/ctype-digit
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_digit($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^0-9]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in text is printable and actually creates visible output (no white space), FALSE otherwise.
+ *
+ * @see https://php.net/ctype-graph
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_graph($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^!-~]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in text is a lowercase letter.
+ *
+ * @see https://php.net/ctype-lower
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_lower($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^a-z]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in text will actually create output (including blanks). Returns FALSE if text contains control characters or characters that do not have any output or control function at all.
+ *
+ * @see https://php.net/ctype-print
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_print($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^ -~]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in text is printable, but neither letter, digit or blank, FALSE otherwise.
+ *
+ * @see https://php.net/ctype-punct
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_punct($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^!-\/\:-@\[-`\{-~]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in text creates some sort of white space, FALSE otherwise. Besides the blank character this also includes tab, vertical tab, line feed, carriage return and form feed characters.
+ *
+ * @see https://php.net/ctype-space
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_space($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^\s]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in text is an uppercase letter.
+ *
+ * @see https://php.net/ctype-upper
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_upper($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^A-Z]/', $text);
+ }
+
+ /**
+ * Returns TRUE if every character in text is a hexadecimal 'digit', that is a decimal digit or a character from [A-Fa-f] , FALSE otherwise.
+ *
+ * @see https://php.net/ctype-xdigit
+ *
+ * @param string|int $text
+ *
+ * @return bool
+ */
+ public static function ctype_xdigit($text)
+ {
+ $text = self::convert_int_to_char_for_ctype($text);
+
+ return \is_string($text) && '' !== $text && !preg_match('/[^A-Fa-f0-9]/', $text);
+ }
+
+ /**
+ * Converts integers to their char versions according to normal ctype behaviour, if needed.
+ *
+ * If an integer between -128 and 255 inclusive is provided,
+ * it is interpreted as the ASCII value of a single character
+ * (negative values have 256 added in order to allow characters in the Extended ASCII range).
+ * Any other integer is interpreted as a string containing the decimal digits of the integer.
+ *
+ * @param string|int $int
+ *
+ * @return mixed
+ */
+ private static function convert_int_to_char_for_ctype($int)
+ {
+ if (!\is_int($int)) {
+ return $int;
+ }
+
+ if ($int < -128 || $int > 255) {
+ return (string) $int;
+ }
+
+ if ($int < 0) {
+ $int += 256;
+ }
+
+ return \chr($int);
+ }
+}
diff --git a/modules/gateways/vendor/symfony/polyfill-ctype/LICENSE b/modules/gateways/vendor/symfony/polyfill-ctype/LICENSE
new file mode 100755
index 0000000..24807a6
--- /dev/null
+++ b/modules/gateways/vendor/symfony/polyfill-ctype/LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2018-2019 Fabien Potencier
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is furnished
+to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/modules/gateways/vendor/symfony/polyfill-ctype/README.md b/modules/gateways/vendor/symfony/polyfill-ctype/README.md
new file mode 100755
index 0000000..8add1ab
--- /dev/null
+++ b/modules/gateways/vendor/symfony/polyfill-ctype/README.md
@@ -0,0 +1,12 @@
+Symfony Polyfill / Ctype
+========================
+
+This component provides `ctype_*` functions to users who run php versions without the ctype extension.
+
+More information can be found in the
+[main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
+
+License
+=======
+
+This library is released under the [MIT license](LICENSE).
diff --git a/modules/gateways/vendor/symfony/polyfill-ctype/bootstrap.php b/modules/gateways/vendor/symfony/polyfill-ctype/bootstrap.php
new file mode 100755
index 0000000..5e91dbd
--- /dev/null
+++ b/modules/gateways/vendor/symfony/polyfill-ctype/bootstrap.php
@@ -0,0 +1,26 @@
+
+ *
+ * For the full copyright and license information, please view the LICENSE
+ * file that was distributed with this source code.
+ */
+
+use Symfony\Polyfill\Ctype as p;
+
+if (!function_exists('ctype_alnum')) {
+ function ctype_alnum($text) { return p\Ctype::ctype_alnum($text); }
+ function ctype_alpha($text) { return p\Ctype::ctype_alpha($text); }
+ function ctype_cntrl($text) { return p\Ctype::ctype_cntrl($text); }
+ function ctype_digit($text) { return p\Ctype::ctype_digit($text); }
+ function ctype_graph($text) { return p\Ctype::ctype_graph($text); }
+ function ctype_lower($text) { return p\Ctype::ctype_lower($text); }
+ function ctype_print($text) { return p\Ctype::ctype_print($text); }
+ function ctype_punct($text) { return p\Ctype::ctype_punct($text); }
+ function ctype_space($text) { return p\Ctype::ctype_space($text); }
+ function ctype_upper($text) { return p\Ctype::ctype_upper($text); }
+ function ctype_xdigit($text) { return p\Ctype::ctype_xdigit($text); }
+}
diff --git a/modules/gateways/vendor/symfony/polyfill-ctype/composer.json b/modules/gateways/vendor/symfony/polyfill-ctype/composer.json
new file mode 100755
index 0000000..2a2ea04
--- /dev/null
+++ b/modules/gateways/vendor/symfony/polyfill-ctype/composer.json
@@ -0,0 +1,34 @@
+{
+ "name": "symfony/polyfill-ctype",
+ "type": "library",
+ "description": "Symfony polyfill for ctype functions",
+ "keywords": ["polyfill", "compatibility", "portable", "ctype"],
+ "homepage": "https://symfony.com",
+ "license": "MIT",
+ "authors": [
+ {
+ "name": "Gert de Pagter",
+ "email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "autoload": {
+ "psr-4": { "Symfony\\Polyfill\\Ctype\\": "" },
+ "files": [ "bootstrap.php" ]
+ },
+ "suggest": {
+ "ext-ctype": "For best performance"
+ },
+ "minimum-stability": "dev",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.13-dev"
+ }
+ }
+}
diff --git a/modules/gateways/vendor/utrust/utrust/.github/workflows/test.yml b/modules/gateways/vendor/utrust/utrust/.github/workflows/test.yml
new file mode 100755
index 0000000..0f74dd1
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/.github/workflows/test.yml
@@ -0,0 +1,31 @@
+name: Test Suite
+on:
+ push:
+ branches:
+ - master
+ pull_request:
+ types: [opened, synchronize]
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ container:
+ image: composer:1.9
+
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v1
+
+ - name: Display PHP and Composer info
+ run: |
+ php -v
+ composer --version
+
+ - name: Install project dependencies
+ run: composer install
+
+ - name: Run Linter
+ run: composer lint
+
+ - name: Run Unit tests
+ run: composer test
diff --git a/modules/gateways/vendor/utrust/utrust/.gitignore b/modules/gateways/vendor/utrust/utrust/.gitignore
new file mode 100755
index 0000000..d4bdb9b
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/.gitignore
@@ -0,0 +1,3 @@
+*/vendor/
+/vendor/
+.env
\ No newline at end of file
diff --git a/modules/gateways/vendor/utrust/utrust/LICENSE b/modules/gateways/vendor/utrust/utrust/LICENSE
new file mode 100755
index 0000000..3877ae0
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/modules/gateways/vendor/utrust/utrust/README.md b/modules/gateways/vendor/utrust/utrust/README.md
new file mode 100755
index 0000000..d0be668
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/README.md
@@ -0,0 +1,120 @@
+# Utrust PHP
+
+[![CircleCI](https://circleci.com/gh/utrustdev/utrust-php.svg?style=svg)](https://circleci.com/gh/utrustdev/utrust-php)
+
+The official PHP library for the [Utrust API](https://docs.api.utrust.com).
+
+## Minimum Requirements
+
+- PHP version 5.4 or above.
+
+## Install
+
+Install with composer:
+
+```
+composer require utrust/utrust
+```
+
+## Usage
+
+### API Client
+
+Creating a new Order:
+
+```php
+use Utrust\ApiClient;
+use Utrust\Store\Customer;
+use Utrust\Store\Order;
+
+$order = new Order([...]);
+$customer = new Customer([...]);
+
+$utrust_api = new ApiClient('API_KEY');
+$response = $utrust_api->createOrder($order, $customer);
+echo $response->attributes->redirect_url;
+```
+
+### Validations
+
+The `Validator` class can be used to check your data array before passing it to the API Client.
+It will throw an exception with the errors array if the validations don't pass, otherwise it will return `true`:
+
+```php
+$orderIsValid = Validator::order($orderData);
+$customerIsValid = Validator::customer($customerData);
+
+if ($orderIsValid && $customerIsValid) {
+ // create the order here
+}
+```
+
+### Webhooks
+
+The `Webhook\Event` class can be used to verify an incoming event via Webhook.
+It will throw an exception if the event has an invalid format or invalid signature:
+
+```php
+$event = new Event($payload);
+$event->validateSignature($webhooksSecret);
+```
+
+Check the `examples/` directory for further details.
+
+## Contribute
+
+This library was written and is maintained by the Utrust development team.
+We have now opened it to the world so that the community using this library may have the chance of shaping its development.
+
+You can contribute by simply letting us know your suggestions or any problems that you find [by opening an issue on GitHub](https://github.com/utrustdev/utrust-php/issues/new).
+
+You can also fork the repository on GitHub and open a pull request for the `master` branch with your missing features and/or bug fixes.
+Please make sure the new code follows the same style and conventions as already written code.
+Our team is eager to welcome new contributors into the mix :blush:.
+
+### Tests
+
+When contributing with new changes, please make an effort to provide the respective tests.
+This is especially important when fixing any problems, as it will prevent other contributors
+from accidentally reintroducing the issue in the future.
+
+Before submitting a pull request with your changes, please make sure every test passes:
+
+```
+composer test
+```
+
+When in doubt whether you caused a test to fail, check the build for `master` in
+[CircleCI](https://circleci.com/gh/utrustdev/utrust-php).
+
+### Lint
+
+This project uses [PHPCodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) with PSR-2 coding stardard.
+
+Before contributing your changes, make sure it passes on the linter:
+
+```
+composer lint
+```
+
+When in doubt whether you introduced a linter error, check the build for `master` in
+[CircleCI](https://circleci.com/gh/utrustdev/utrust-php).
+
+## Publish
+
+We are publishing the library to [Packagist](https://packagist.org/packages/utrust/utrust).
+We are using [semantic versioning](https://semver.org) to keep track of package changes.
+To publish a new package version run the following commands:
+
+```
+git tag v1.0.0
+git push origin v1.0.0
+```
+
+## License
+
+Utrust PHP is maintained with :purple_heart: by the Utrust development team,
+and is available to the public under the GNU GPLv3 license.
+Please see [LICENSE](https://github.com/utrustdev/utrust-php/blob/master/LICENSE) for further details.
+
+© Utrust 2019
diff --git a/modules/gateways/vendor/utrust/utrust/composer.json b/modules/gateways/vendor/utrust/utrust/composer.json
new file mode 100755
index 0000000..b789660
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/composer.json
@@ -0,0 +1,33 @@
+{
+ "name": "utrust/utrust",
+ "description": "Utrust API library",
+ "type": "library",
+ "license": "GPL-3.0-or-later",
+ "authors": [
+ {
+ "name": "Utrust Team",
+ "email": "team@utrust.com"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.0",
+ "vlucas/valitron": "^1.4.7"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^8",
+ "squizlabs/php_codesniffer": "*"
+ },
+ "autoload": {
+ "psr-4": {
+ "Utrust\\": "src/"
+ }
+ },
+ "scripts": {
+ "lint": [
+ "./vendor/bin/phpcs --standard=PSR2 src/"
+ ],
+ "test": [
+ "phpunit tests/"
+ ]
+ }
+}
diff --git a/modules/gateways/vendor/utrust/utrust/composer.lock b/modules/gateways/vendor/utrust/utrust/composer.lock
new file mode 100755
index 0000000..2150272
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/composer.lock
@@ -0,0 +1,1639 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "This file is @generated automatically"
+ ],
+ "content-hash": "329344471e492f5403bb7a46812a090c",
+ "packages": [
+ {
+ "name": "vlucas/valitron",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/vlucas/valitron.git",
+ "reference": "d0134c33d23eb2c7deb9f65928bc40c9ee04ced2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/vlucas/valitron/zipball/d0134c33d23eb2c7deb9f65928bc40c9ee04ced2",
+ "reference": "d0134c33d23eb2c7deb9f65928bc40c9ee04ced2",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.5 || ^6.5"
+ },
+ "suggest": {
+ "ext-mbstring": "It can support the multiple bytes string length."
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "Valitron\\": "src/Valitron"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Vance Lucas",
+ "email": "vance@vancelucas.com",
+ "homepage": "http://www.vancelucas.com"
+ }
+ ],
+ "description": "Simple, elegant, stand-alone validation library with NO dependencies",
+ "homepage": "http://github.com/vlucas/valitron",
+ "keywords": [
+ "valid",
+ "validation",
+ "validator"
+ ],
+ "time": "2019-10-24T14:46:33+00:00"
+ }
+ ],
+ "packages-dev": [
+ {
+ "name": "doctrine/instantiator",
+ "version": "1.3.x-dev",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/doctrine/instantiator.git",
+ "reference": "ae466f726242e637cebdd526a7d991b9433bacf1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/doctrine/instantiator/zipball/ae466f726242e637cebdd526a7d991b9433bacf1",
+ "reference": "ae466f726242e637cebdd526a7d991b9433bacf1",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1"
+ },
+ "require-dev": {
+ "doctrine/coding-standard": "^6.0",
+ "ext-pdo": "*",
+ "ext-phar": "*",
+ "phpbench/phpbench": "^0.13",
+ "phpstan/phpstan-phpunit": "^0.11",
+ "phpstan/phpstan-shim": "^0.11",
+ "phpunit/phpunit": "^7.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.2.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Doctrine\\Instantiator\\": "src/Doctrine/Instantiator/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Marco Pivetta",
+ "email": "ocramius@gmail.com",
+ "homepage": "http://ocramius.github.com/"
+ }
+ ],
+ "description": "A small, lightweight utility to instantiate objects in PHP without invoking their constructors",
+ "homepage": "https://www.doctrine-project.org/projects/instantiator.html",
+ "keywords": [
+ "constructor",
+ "instantiate"
+ ],
+ "time": "2019-10-21T16:45:58+00:00"
+ },
+ {
+ "name": "myclabs/deep-copy",
+ "version": "1.x-dev",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/myclabs/DeepCopy.git",
+ "reference": "9012edbd1604a93cee7e7422d07a2c5776c56e0c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/9012edbd1604a93cee7e7422d07a2c5776c56e0c",
+ "reference": "9012edbd1604a93cee7e7422d07a2c5776c56e0c",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1"
+ },
+ "replace": {
+ "myclabs/deep-copy": "self.version"
+ },
+ "require-dev": {
+ "doctrine/collections": "^1.0",
+ "doctrine/common": "^2.6",
+ "phpunit/phpunit": "^7.1"
+ },
+ "type": "library",
+ "autoload": {
+ "psr-4": {
+ "DeepCopy\\": "src/DeepCopy/"
+ },
+ "files": [
+ "src/DeepCopy/deep_copy.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "description": "Create deep copies (clones) of your objects",
+ "keywords": [
+ "clone",
+ "copy",
+ "duplicate",
+ "object",
+ "object graph"
+ ],
+ "time": "2019-08-26T15:40:39+00:00"
+ },
+ {
+ "name": "phar-io/manifest",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phar-io/manifest.git",
+ "reference": "6008a32fa23816a6ac71889c80da7d58c056c2bb"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phar-io/manifest/zipball/6008a32fa23816a6ac71889c80da7d58c056c2bb",
+ "reference": "6008a32fa23816a6ac71889c80da7d58c056c2bb",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-phar": "*",
+ "ext-xmlwriter": "*",
+ "phar-io/version": "^2.0",
+ "php": "^7.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^8.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Arne Blankerts",
+ "email": "arne@blankerts.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Heuer",
+ "email": "sebastian@phpeople.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "Developer"
+ }
+ ],
+ "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
+ "time": "2019-10-11T06:20:36+00:00"
+ },
+ {
+ "name": "phar-io/version",
+ "version": "2.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phar-io/version.git",
+ "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phar-io/version/zipball/45a2ec53a73c70ce41d55cedef9063630abaf1b6",
+ "reference": "45a2ec53a73c70ce41d55cedef9063630abaf1b6",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.6 || ^7.0"
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Arne Blankerts",
+ "email": "arne@blankerts.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Heuer",
+ "email": "sebastian@phpeople.de",
+ "role": "Developer"
+ },
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "Developer"
+ }
+ ],
+ "description": "Library for handling version information and constraints",
+ "time": "2018-07-08T19:19:57+00:00"
+ },
+ {
+ "name": "phpdocumentor/reflection-common",
+ "version": "2.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpDocumentor/ReflectionCommon.git",
+ "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionCommon/zipball/63a995caa1ca9e5590304cd845c15ad6d482a62a",
+ "reference": "63a995caa1ca9e5590304cd845c15ad6d482a62a",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "~6"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "phpDocumentor\\Reflection\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Jaap van Otterdijk",
+ "email": "opensource@ijaap.nl"
+ }
+ ],
+ "description": "Common reflection classes used by phpdocumentor to reflect the code structure",
+ "homepage": "http://www.phpdoc.org",
+ "keywords": [
+ "FQSEN",
+ "phpDocumentor",
+ "phpdoc",
+ "reflection",
+ "static analysis"
+ ],
+ "time": "2018-08-07T13:53:10+00:00"
+ },
+ {
+ "name": "phpdocumentor/reflection-docblock",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git",
+ "reference": "8fcadfe5f85c38705151c9ab23b4781f23e6a70e"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/8fcadfe5f85c38705151c9ab23b4781f23e6a70e",
+ "reference": "8fcadfe5f85c38705151c9ab23b4781f23e6a70e",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1",
+ "phpdocumentor/type-resolver": "^0",
+ "webmozart/assert": "^1"
+ },
+ "require-dev": {
+ "doctrine/instantiator": "^1",
+ "mockery/mockery": "^1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "5.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "phpDocumentor\\Reflection\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Mike van Riel",
+ "email": "me@mikevanriel.com"
+ }
+ ],
+ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
+ "time": "2019-06-15T20:45:01+00:00"
+ },
+ {
+ "name": "phpdocumentor/type-resolver",
+ "version": "0.7.x-dev",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpDocumentor/TypeResolver.git",
+ "reference": "6f6f66c1d4e14e9b0ad124cae85864dfa03104c7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6f6f66c1d4e14e9b0ad124cae85864dfa03104c7",
+ "reference": "6f6f66c1d4e14e9b0ad124cae85864dfa03104c7",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=7.1",
+ "phpdocumentor/reflection-common": "~2.0.0-beta1"
+ },
+ "require-dev": {
+ "mockery/mockery": "~1",
+ "phpunit/phpunit": "~6"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "0.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "phpDocumentor\\Reflection\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Mike van Riel",
+ "email": "me@mikevanriel.com"
+ }
+ ],
+ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names",
+ "time": "2019-08-22T17:55:41+00:00"
+ },
+ {
+ "name": "phpspec/prophecy",
+ "version": "1.9.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/phpspec/prophecy.git",
+ "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/phpspec/prophecy/zipball/f6811d96d97bdf400077a0cc100ae56aa32b9203",
+ "reference": "f6811d96d97bdf400077a0cc100ae56aa32b9203",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/instantiator": "^1.0.2",
+ "php": "^5.3|^7.0",
+ "phpdocumentor/reflection-docblock": "^2.0|^3.0.2|^4.0|^5.0",
+ "sebastian/comparator": "^1.1|^2.0|^3.0",
+ "sebastian/recursion-context": "^1.0|^2.0|^3.0"
+ },
+ "require-dev": {
+ "phpspec/phpspec": "^2.5|^3.2",
+ "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.5 || ^7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.8.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Prophecy\\": "src/Prophecy"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Konstantin Kudryashov",
+ "email": "ever.zet@gmail.com",
+ "homepage": "http://everzet.com"
+ },
+ {
+ "name": "Marcello Duarte",
+ "email": "marcello.duarte@gmail.com"
+ }
+ ],
+ "description": "Highly opinionated mocking framework for PHP 5.3+",
+ "homepage": "https://github.com/phpspec/prophecy",
+ "keywords": [
+ "Double",
+ "Dummy",
+ "fake",
+ "mock",
+ "spy",
+ "stub"
+ ],
+ "time": "2019-10-03T11:07:50+00:00"
+ },
+ {
+ "name": "phpunit/php-code-coverage",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
+ "reference": "8198f748870693e87fe40e19452768cef00869ea"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/8198f748870693e87fe40e19452768cef00869ea",
+ "reference": "8198f748870693e87fe40e19452768cef00869ea",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-xmlwriter": "*",
+ "php": "^7.2",
+ "phpunit/php-file-iterator": "^2.0.2",
+ "phpunit/php-text-template": "^1.2.1",
+ "phpunit/php-token-stream": "^3.1.1",
+ "sebastian/code-unit-reverse-lookup": "^1.0.1",
+ "sebastian/environment": "^4.2.2",
+ "sebastian/version": "^2.0.1",
+ "theseer/tokenizer": "^1.1.3"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^8.2.2"
+ },
+ "suggest": {
+ "ext-xdebug": "^2.7.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "7.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.",
+ "homepage": "https://github.com/sebastianbergmann/php-code-coverage",
+ "keywords": [
+ "coverage",
+ "testing",
+ "xunit"
+ ],
+ "time": "2019-11-15T18:53:04+00:00"
+ },
+ {
+ "name": "phpunit/php-file-iterator",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-file-iterator.git",
+ "reference": "ee5d93c00b87b36e206f1e8407dfe3306f5fcb4d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/ee5d93c00b87b36e206f1e8407dfe3306f5fcb4d",
+ "reference": "ee5d93c00b87b36e206f1e8407dfe3306f5fcb4d",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "FilterIterator implementation that filters files based on a list of suffixes.",
+ "homepage": "https://github.com/sebastianbergmann/php-file-iterator/",
+ "keywords": [
+ "filesystem",
+ "iterator"
+ ],
+ "time": "2019-10-23T09:07:44+00:00"
+ },
+ {
+ "name": "phpunit/php-text-template",
+ "version": "1.2.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-text-template.git",
+ "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
+ "reference": "31f8b717e51d9a2afca6c9f046f5d69fc27c8686",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Simple template engine.",
+ "homepage": "https://github.com/sebastianbergmann/php-text-template/",
+ "keywords": [
+ "template"
+ ],
+ "time": "2015-06-21T13:50:34+00:00"
+ },
+ {
+ "name": "phpunit/php-timer",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-timer.git",
+ "reference": "190db5a4b930a73afbba041cd3015aeb10d444d4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/190db5a4b930a73afbba041cd3015aeb10d444d4",
+ "reference": "190db5a4b930a73afbba041cd3015aeb10d444d4",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^7.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.1-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Utility class for timing",
+ "homepage": "https://github.com/sebastianbergmann/php-timer/",
+ "keywords": [
+ "timer"
+ ],
+ "time": "2019-10-23T09:04:52+00:00"
+ },
+ {
+ "name": "phpunit/php-token-stream",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/php-token-stream.git",
+ "reference": "5bc2030589cad93e6c73ce3ccee3f5e960604a0d"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-token-stream/zipball/5bc2030589cad93e6c73ce3ccee3f5e960604a0d",
+ "reference": "5bc2030589cad93e6c73ce3ccee3f5e960604a0d",
+ "shasum": ""
+ },
+ "require": {
+ "ext-tokenizer": "*",
+ "php": "^7.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^7.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.1-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Wrapper around PHP's tokenizer extension.",
+ "homepage": "https://github.com/sebastianbergmann/php-token-stream/",
+ "keywords": [
+ "tokenizer"
+ ],
+ "time": "2019-10-23T09:04:36+00:00"
+ },
+ {
+ "name": "phpunit/phpunit",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/phpunit.git",
+ "reference": "d484ce1ce091d8615c598cc05e013054ad4cd002"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/d484ce1ce091d8615c598cc05e013054ad4cd002",
+ "reference": "d484ce1ce091d8615c598cc05e013054ad4cd002",
+ "shasum": ""
+ },
+ "require": {
+ "doctrine/instantiator": "^1.2.0",
+ "ext-dom": "*",
+ "ext-json": "*",
+ "ext-libxml": "*",
+ "ext-mbstring": "*",
+ "ext-xml": "*",
+ "ext-xmlwriter": "*",
+ "myclabs/deep-copy": "^1.9.1",
+ "phar-io/manifest": "^1.0.3",
+ "phar-io/version": "^2.0.1",
+ "php": "^7.2",
+ "phpspec/prophecy": "^1.8.1",
+ "phpunit/php-code-coverage": "^7.0.7",
+ "phpunit/php-file-iterator": "^2.0.2",
+ "phpunit/php-text-template": "^1.2.1",
+ "phpunit/php-timer": "^2.1.2",
+ "sebastian/comparator": "^3.0.2",
+ "sebastian/diff": "^3.0.2",
+ "sebastian/environment": "^4.2.2",
+ "sebastian/exporter": "^3.1.1",
+ "sebastian/global-state": "^3.0.0",
+ "sebastian/object-enumerator": "^3.0.3",
+ "sebastian/resource-operations": "^2.0.1",
+ "sebastian/type": "^1.1.3",
+ "sebastian/version": "^2.0.1"
+ },
+ "require-dev": {
+ "ext-pdo": "*"
+ },
+ "suggest": {
+ "ext-soap": "*",
+ "ext-xdebug": "*",
+ "phpunit/php-invoker": "^2.0.0"
+ },
+ "bin": [
+ "phpunit"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "8.5-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "The PHP Unit Testing framework.",
+ "homepage": "https://phpunit.de/",
+ "keywords": [
+ "phpunit",
+ "testing",
+ "xunit"
+ ],
+ "time": "2019-11-19T16:34:28+00:00"
+ },
+ {
+ "name": "sebastian/code-unit-reverse-lookup",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/code-unit-reverse-lookup.git",
+ "reference": "5872e3737247e650995ac60e98611f69bfe8c556"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/code-unit-reverse-lookup/zipball/5872e3737247e650995ac60e98611f69bfe8c556",
+ "reference": "5872e3737247e650995ac60e98611f69bfe8c556",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.6 || ^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^5.7 || ^6.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Looks up which function or method a line of code belongs to",
+ "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
+ "time": "2019-10-23T09:08:24+00:00"
+ },
+ {
+ "name": "sebastian/comparator",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/comparator.git",
+ "reference": "c57ba51c28b64ef8a4b14b40bceb2c5ca19e9406"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/c57ba51c28b64ef8a4b14b40bceb2c5ca19e9406",
+ "reference": "c57ba51c28b64ef8a4b14b40bceb2c5ca19e9406",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1",
+ "sebastian/diff": "^3.0",
+ "sebastian/exporter": "^3.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@2bepublished.at"
+ }
+ ],
+ "description": "Provides the functionality to compare PHP values for equality",
+ "homepage": "https://github.com/sebastianbergmann/comparator",
+ "keywords": [
+ "comparator",
+ "compare",
+ "equality"
+ ],
+ "time": "2019-10-28T09:22:49+00:00"
+ },
+ {
+ "name": "sebastian/diff",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/diff.git",
+ "reference": "16e54fbc971c14d98779b9c3b22572178ff9411f"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/16e54fbc971c14d98779b9c3b22572178ff9411f",
+ "reference": "16e54fbc971c14d98779b9c3b22572178ff9411f",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^7.5 || ^8.0",
+ "symfony/process": "^2 || ^3.3 || ^4 || ^5"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Kore Nordmann",
+ "email": "mail@kore-nordmann.de"
+ }
+ ],
+ "description": "Diff implementation",
+ "homepage": "https://github.com/sebastianbergmann/diff",
+ "keywords": [
+ "diff",
+ "udiff",
+ "unidiff",
+ "unified diff"
+ ],
+ "time": "2019-11-18T19:26:59+00:00"
+ },
+ {
+ "name": "sebastian/environment",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/environment.git",
+ "reference": "0f73ef4aa2d8a5e00393c06729012a50845e9e4c"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/0f73ef4aa2d8a5e00393c06729012a50845e9e4c",
+ "reference": "0f73ef4aa2d8a5e00393c06729012a50845e9e4c",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^7.5"
+ },
+ "suggest": {
+ "ext-posix": "*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.2-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Provides functionality to handle HHVM/PHP environments",
+ "homepage": "http://www.github.com/sebastianbergmann/environment",
+ "keywords": [
+ "Xdebug",
+ "environment",
+ "hhvm"
+ ],
+ "time": "2019-10-23T09:05:42+00:00"
+ },
+ {
+ "name": "sebastian/exporter",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/exporter.git",
+ "reference": "10b761abeab7ea48c2b89f16a7fca10d2f544d25"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/10b761abeab7ea48c2b89f16a7fca10d2f544d25",
+ "reference": "10b761abeab7ea48c2b89f16a7fca10d2f544d25",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.0",
+ "sebastian/recursion-context": "^3.0"
+ },
+ "require-dev": {
+ "ext-mbstring": "*",
+ "phpunit/phpunit": "^6.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.1.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Volker Dusch",
+ "email": "github@wallbash.com"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
+ },
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@gmail.com"
+ }
+ ],
+ "description": "Provides the functionality to export PHP variables for visualization",
+ "homepage": "http://www.github.com/sebastianbergmann/exporter",
+ "keywords": [
+ "export",
+ "exporter"
+ ],
+ "time": "2019-10-23T09:05:12+00:00"
+ },
+ {
+ "name": "sebastian/global-state",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/global-state.git",
+ "reference": "95e10dd8f625c50dc0dcbeab936aadac79f017c7"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/95e10dd8f625c50dc0dcbeab936aadac79f017c7",
+ "reference": "95e10dd8f625c50dc0dcbeab936aadac79f017c7",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2",
+ "sebastian/object-reflector": "^1.1.1",
+ "sebastian/recursion-context": "^3.0"
+ },
+ "require-dev": {
+ "ext-dom": "*",
+ "phpunit/phpunit": "^8.0"
+ },
+ "suggest": {
+ "ext-uopz": "*"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Snapshotting of global state",
+ "homepage": "http://www.github.com/sebastianbergmann/global-state",
+ "keywords": [
+ "global state"
+ ],
+ "time": "2019-10-23T09:05:27+00:00"
+ },
+ {
+ "name": "sebastian/object-enumerator",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/object-enumerator.git",
+ "reference": "6096279595e26594a68c03571fba1d7c0253f19a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/6096279595e26594a68c03571fba1d7c0253f19a",
+ "reference": "6096279595e26594a68c03571fba1d7c0253f19a",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.0",
+ "sebastian/object-reflector": "^1.1.1",
+ "sebastian/recursion-context": "^3.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^6.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Traverses array structures and object graphs to enumerate all referenced objects",
+ "homepage": "https://github.com/sebastianbergmann/object-enumerator/",
+ "time": "2019-10-23T09:08:54+00:00"
+ },
+ {
+ "name": "sebastian/object-reflector",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/object-reflector.git",
+ "reference": "aff2a6b4fffc8e9f0f1de6388f3d7bd0f729dddc"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/aff2a6b4fffc8e9f0f1de6388f3d7bd0f729dddc",
+ "reference": "aff2a6b4fffc8e9f0f1de6388f3d7bd0f729dddc",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^6.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.1-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Allows reflection of object attributes, including inherited and non-public ones",
+ "homepage": "https://github.com/sebastianbergmann/object-reflector/",
+ "time": "2019-10-23T09:07:29+00:00"
+ },
+ {
+ "name": "sebastian/recursion-context",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/recursion-context.git",
+ "reference": "f95dcff26fa9fd4df1960c503d4180ec2f8172fd"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/f95dcff26fa9fd4df1960c503d4180ec2f8172fd",
+ "reference": "f95dcff26fa9fd4df1960c503d4180ec2f8172fd",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^6.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ },
+ {
+ "name": "Jeff Welch",
+ "email": "whatthejeff@gmail.com"
+ },
+ {
+ "name": "Adam Harvey",
+ "email": "aharvey@php.net"
+ }
+ ],
+ "description": "Provides functionality to recursively process PHP variables",
+ "homepage": "http://www.github.com/sebastianbergmann/recursion-context",
+ "time": "2019-10-23T09:08:39+00:00"
+ },
+ {
+ "name": "sebastian/resource-operations",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/resource-operations.git",
+ "reference": "89893975fe3fcc2e60214471761af5e91cc7a933"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/resource-operations/zipball/89893975fe3fcc2e60214471761af5e91cc7a933",
+ "reference": "89893975fe3fcc2e60214471761af5e91cc7a933",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.1"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de"
+ }
+ ],
+ "description": "Provides a list of PHP built-in functions that operate on resources",
+ "homepage": "https://www.github.com/sebastianbergmann/resource-operations",
+ "time": "2019-10-23T09:09:44+00:00"
+ },
+ {
+ "name": "sebastian/type",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/type.git",
+ "reference": "b4b5b44e8b89f789356aa9cd9a1f05d78a9d819a"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b4b5b44e8b89f789356aa9cd9a1f05d78a9d819a",
+ "reference": "b4b5b44e8b89f789356aa9cd9a1f05d78a9d819a",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^7.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^8.2"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.1-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Collection of value objects that represent the types of the PHP type system",
+ "homepage": "https://github.com/sebastianbergmann/type",
+ "time": "2019-10-23T09:06:38+00:00"
+ },
+ {
+ "name": "sebastian/version",
+ "version": "2.0.1",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/sebastianbergmann/version.git",
+ "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/99732be0ddb3361e16ad77b68ba41efc8e979019",
+ "reference": "99732be0ddb3361e16ad77b68ba41efc8e979019",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.6"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.0.x-dev"
+ }
+ },
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Sebastian Bergmann",
+ "email": "sebastian@phpunit.de",
+ "role": "lead"
+ }
+ ],
+ "description": "Library that helps with managing the version number of Git-hosted PHP projects",
+ "homepage": "https://github.com/sebastianbergmann/version",
+ "time": "2016-10-03T07:35:21+00:00"
+ },
+ {
+ "name": "squizlabs/php_codesniffer",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/squizlabs/PHP_CodeSniffer.git",
+ "reference": "68e0b062d012b93c7381096a6e14b6848cccfe27"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/68e0b062d012b93c7381096a6e14b6848cccfe27",
+ "reference": "68e0b062d012b93c7381096a6e14b6848cccfe27",
+ "shasum": ""
+ },
+ "require": {
+ "ext-simplexml": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": ">=5.4.0"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.0 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "bin": [
+ "bin/phpcs",
+ "bin/phpcbf"
+ ],
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "3.x-dev"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Greg Sherwood",
+ "role": "lead"
+ }
+ ],
+ "description": "PHP_CodeSniffer tokenizes PHP, JavaScript and CSS files and detects violations of a defined set of coding standards.",
+ "homepage": "https://github.com/squizlabs/PHP_CodeSniffer",
+ "keywords": [
+ "phpcs",
+ "standards"
+ ],
+ "time": "2019-11-20T02:51:34+00:00"
+ },
+ {
+ "name": "symfony/polyfill-ctype",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-ctype.git",
+ "reference": "550ebaac289296ce228a706d0867afc34687e3f4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/550ebaac289296ce228a706d0867afc34687e3f4",
+ "reference": "550ebaac289296ce228a706d0867afc34687e3f4",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "suggest": {
+ "ext-ctype": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.12-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Gert de Pagter",
+ "email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for ctype functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "ctype",
+ "polyfill",
+ "portable"
+ ],
+ "time": "2019-08-06T08:03:45+00:00"
+ },
+ {
+ "name": "theseer/tokenizer",
+ "version": "1.1.3",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/theseer/tokenizer.git",
+ "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/theseer/tokenizer/zipball/11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
+ "reference": "11336f6f84e16a720dae9d8e6ed5019efa85a0f9",
+ "shasum": ""
+ },
+ "require": {
+ "ext-dom": "*",
+ "ext-tokenizer": "*",
+ "ext-xmlwriter": "*",
+ "php": "^7.0"
+ },
+ "type": "library",
+ "autoload": {
+ "classmap": [
+ "src/"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Arne Blankerts",
+ "email": "arne@blankerts.de",
+ "role": "Developer"
+ }
+ ],
+ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
+ "time": "2019-06-13T22:48:21+00:00"
+ },
+ {
+ "name": "webmozart/assert",
+ "version": "1.5.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/webmozart/assert.git",
+ "reference": "88e6d84706d09a236046d686bbea96f07b3a34f4"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/webmozart/assert/zipball/88e6d84706d09a236046d686bbea96f07b3a34f4",
+ "reference": "88e6d84706d09a236046d686bbea96f07b3a34f4",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.3.3 || ^7.0",
+ "symfony/polyfill-ctype": "^1.8"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.36 || ^7.5.13"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.3-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Webmozart\\Assert\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Bernhard Schussek",
+ "email": "bschussek@gmail.com"
+ }
+ ],
+ "description": "Assertions to validate method input/output with nice error messages.",
+ "keywords": [
+ "assert",
+ "check",
+ "validate"
+ ],
+ "time": "2019-08-24T08:43:50+00:00"
+ }
+ ],
+ "aliases": [],
+ "minimum-stability": "dev",
+ "stability-flags": {
+ "vlucas/valitron": 20
+ },
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": {
+ "php": ">=5.3.0"
+ },
+ "platform-dev": []
+}
diff --git a/modules/gateways/vendor/utrust/utrust/examples/composer.json b/modules/gateways/vendor/utrust/utrust/examples/composer.json
new file mode 100755
index 0000000..1f2c5f5
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/examples/composer.json
@@ -0,0 +1,21 @@
+{
+ "name": "utrust/examples",
+ "description": "Examples using Utrust PHP",
+ "type": "project",
+ "license": "GPL-3.0-or-later",
+ "authors": [
+ {
+ "name": "Utrust Team",
+ "email": "team@utrust.com"
+ }
+ ],
+ "minimum-stability": "dev",
+ "autoload": {
+ "psr-4": {
+ "Utrust\\": "../src/"
+ }
+ },
+ "require": {
+ "vlucas/phpdotenv": "^4.0@dev"
+ }
+}
diff --git a/modules/gateways/vendor/utrust/utrust/examples/composer.lock b/modules/gateways/vendor/utrust/utrust/examples/composer.lock
new file mode 100755
index 0000000..e732341
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/examples/composer.lock
@@ -0,0 +1,191 @@
+{
+ "_readme": [
+ "This file locks the dependencies of your project to a known state",
+ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
+ "This file is @generated automatically"
+ ],
+ "content-hash": "2967bfa28111dfab415bd65ea75adbff",
+ "packages": [
+ {
+ "name": "phpoption/phpoption",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/schmittjoh/php-option.git",
+ "reference": "bb52d61329132b1946981d894de7fcff38122b04"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/bb52d61329132b1946981d894de7fcff38122b04",
+ "reference": "bb52d61329132b1946981d894de7fcff38122b04",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.5.9 || ^7.0"
+ },
+ "require-dev": {
+ "bamarni/composer-bin-plugin": "^1.3",
+ "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.7-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "PhpOption\\": "src/PhpOption/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "Apache-2.0"
+ ],
+ "authors": [
+ {
+ "name": "Johannes M. Schmitt",
+ "email": "schmittjoh@gmail.com"
+ },
+ {
+ "name": "Graham Campbell",
+ "email": "graham@alt-three.com"
+ }
+ ],
+ "description": "Option Type for PHP",
+ "keywords": [
+ "language",
+ "option",
+ "php",
+ "type"
+ ],
+ "time": "2020-01-13T12:31:33+00:00"
+ },
+ {
+ "name": "symfony/polyfill-ctype",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/symfony/polyfill-ctype.git",
+ "reference": "fbdeaec0df06cf3d51c93de80c7eb76e271f5a38"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/fbdeaec0df06cf3d51c93de80c7eb76e271f5a38",
+ "reference": "fbdeaec0df06cf3d51c93de80c7eb76e271f5a38",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3"
+ },
+ "suggest": {
+ "ext-ctype": "For best performance"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.14-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Symfony\\Polyfill\\Ctype\\": ""
+ },
+ "files": [
+ "bootstrap.php"
+ ]
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Gert de Pagter",
+ "email": "BackEndTea@gmail.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://symfony.com/contributors"
+ }
+ ],
+ "description": "Symfony polyfill for ctype functions",
+ "homepage": "https://symfony.com",
+ "keywords": [
+ "compatibility",
+ "ctype",
+ "polyfill",
+ "portable"
+ ],
+ "time": "2020-01-13T11:15:53+00:00"
+ },
+ {
+ "name": "vlucas/phpdotenv",
+ "version": "dev-master",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/vlucas/phpdotenv.git",
+ "reference": "92c402dad814531e4fd0469cf867302ef1f59b47"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/92c402dad814531e4fd0469cf867302ef1f59b47",
+ "reference": "92c402dad814531e4fd0469cf867302ef1f59b47",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.5.9 || ^7.0",
+ "phpoption/phpoption": "^1.7.2",
+ "symfony/polyfill-ctype": "^1.9"
+ },
+ "require-dev": {
+ "bamarni/composer-bin-plugin": "^1.3",
+ "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.1-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "Dotenv\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Graham Campbell",
+ "email": "graham@alt-three.com",
+ "homepage": "https://gjcampbell.co.uk/"
+ },
+ {
+ "name": "Vance Lucas",
+ "email": "vance@vancelucas.com",
+ "homepage": "https://vancelucas.com/"
+ }
+ ],
+ "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
+ "keywords": [
+ "dotenv",
+ "env",
+ "environment"
+ ],
+ "time": "2020-01-13T12:50:29+00:00"
+ }
+ ],
+ "packages-dev": [],
+ "aliases": [],
+ "minimum-stability": "dev",
+ "stability-flags": {
+ "vlucas/phpdotenv": 20
+ },
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": [],
+ "platform-dev": []
+}
diff --git a/modules/gateways/vendor/utrust/utrust/examples/create_simple_order.php b/modules/gateways/vendor/utrust/utrust/examples/create_simple_order.php
new file mode 100755
index 0000000..6a5955d
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/examples/create_simple_order.php
@@ -0,0 +1,61 @@
+load();
+
+use Utrust\ApiClient;
+use Utrust\Validator;
+
+// Load the env var API_KEY (using phpdotenv package)
+$api_key = getenv('API_KEY');
+
+// Init Utrust API
+$utrustApi = new ApiClient($api_key, 'sandbox');
+
+// Build Order data array
+$orderData = [
+ 'reference' => 'REF-12345678',
+ 'amount' => [
+ 'total' => '0.99',
+ 'currency' => 'EUR',
+ ],
+ 'return_urls' => [
+ 'return_url' => 'http://example.com/order_success',
+ 'cancel_url' => 'http://example.com/order_canceled',
+ 'callback_url' => 'http://example.com/webhook_url',
+ ],
+ 'line_items' => [
+ [
+ 'sku' => 'tshirt-1234',
+ 'name' => 'T-shirt',
+ 'price' => '10.00',
+ 'currency' => 'EUR',
+ 'quantity' => 1,
+ ],
+ ],
+];
+
+// Build Customer data array
+$customerData = [
+ 'first_name' => 'Daniel',
+ 'last_name' => 'Coelho',
+ 'email' => 'daniel+php@utrust.com',
+ 'country' => 'PT',
+];
+
+try {
+ // Validate data
+ $orderIsValid = Validator::order($orderData);
+ $customerIsValid = Validator::customer($customerData);
+
+ // Make the API request
+ if ($orderIsValid == true && $customerIsValid == true) {
+ $response = $utrustApi->createOrder($orderData, $customerData);
+ }
+
+ // Use the $redirect_url to redirect the customer to our Payment Widget
+ echo $response->attributes->redirect_url;
+} catch (Exception $e) {
+ // Handle error (e.g.: show message to the customer)
+ echo 'Something went wrong: ' . $e->getMessage();
+}
diff --git a/modules/gateways/vendor/utrust/utrust/examples/validate_webhook.php b/modules/gateways/vendor/utrust/utrust/examples/validate_webhook.php
new file mode 100755
index 0000000..ec46fea
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/examples/validate_webhook.php
@@ -0,0 +1,28 @@
+load();
+
+use Utrust\Webhook\Event;
+
+// Load the env var WEBHOOKS_SECRET (using phpdotenv package)
+$webhooksSecret = getenv('WEBHOOKS_SECRET');
+
+// The payload should come from something like:
+// $payload = file_get_contents( 'php://input' );
+// But for demo purposes, we will hardcode an example payload that Utrust can send
+$payload = "{ \"event_type\": \"ORDER.PAYMENT.CANCELLED\", \"resource\": { \"amount\": \"0.99\", \"currency\": \"EUR\", \"reference\": \"REF-12345678\" }, \"signature\": \"47215d0f4737341f4f1f5fb947b5ebb16af71c1d701800b2ab869890d0ac1c27\", \"state\": \"cancelled\" }";
+
+try {
+ $event = new Event($payload);
+ $event->validateSignature($webhooksSecret);
+ http_response_code(200); // Don't delete this
+
+ // Here you can change your Order status
+ echo sprintf('Successully validated payload with order reference %s and type %s', $event->getOrderReference(), $event->getEventType());
+} catch (\Exception $exception) {
+ http_response_code(400); // Don't delete this
+
+ // Handle webhook error
+ echo 'Error: ' . $exception->getMessage();
+}
diff --git a/modules/gateways/vendor/utrust/utrust/src/ApiClient.php b/modules/gateways/vendor/utrust/utrust/src/ApiClient.php
new file mode 100755
index 0000000..966faa6
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/src/ApiClient.php
@@ -0,0 +1,118 @@
+apiKey = $apiKey;
+ $this->apiUrl = ($environment == 'production') ? PRODUCTION_URL : SANDBOX_URL;
+ $this->curlHandle = null;
+ }
+
+ public function __destruct()
+ {
+ if ($this->curlHandle !== null) {
+ curl_close($this->curlHandle);
+ }
+ }
+
+ /**
+ * Executes a POST cURL request to the Utrust API.
+ *
+ * @param string $method The API method to call.
+ * @param array $body The required and optional fields to pass with the method.
+ *
+ * @return array Result with the api response.
+ */
+ private function post($endpoint, array $body = [])
+ {
+ // Check the cURL handle has not already been initiated
+ if ($this->curlHandle === null) {
+ // Initiate cURL
+ $this->curlHandle = curl_init();
+
+ // Set options
+ curl_setopt($this->curlHandle, CURLOPT_RETURNTRANSFER, 1);
+ curl_setopt($this->curlHandle, CURLOPT_MAXREDIRS, 10);
+ curl_setopt($this->curlHandle, CURLOPT_TIMEOUT, 30);
+ curl_setopt($this->curlHandle, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
+ curl_setopt($this->curlHandle, CURLOPT_POST, 1);
+ }
+
+ // Set headers
+ $headers = array();
+ $headers[] = 'Authorization: Bearer ' . $this->apiKey;
+ $headers[] = 'Content-Type: application/json';
+ curl_setopt($this->curlHandle, CURLOPT_HTTPHEADER, $headers);
+
+ // Set URL
+ curl_setopt($this->curlHandle, CURLOPT_URL, $this->apiUrl . 'stores/orders/');
+
+ // Set body
+ curl_setopt($this->curlHandle, CURLOPT_POSTFIELDS, json_encode($body));
+
+ // Execute cURL
+ $response = curl_exec($this->curlHandle);
+
+ // Check the response of the cURL session
+ if ($response !== false) {
+ $result = false;
+
+ // Prepare JSON result
+ $decoded = json_decode($response);
+
+ // Check the json decoding and set an error in the result if it failed
+ if (!empty($decoded)) {
+ $result = $decoded;
+ } else {
+ $result = ['error' => 'Unable to parse JSON result (' . json_last_error() . ')'];
+ }
+ } else {
+ // Returns the error if the response of the cURL session is false
+ $result = ['errors' => 'cURL error: ' . curl_error($this->curlHandle)];
+ }
+
+ return $result;
+ }
+
+ /**
+ * Creates a Order.
+ *
+ * @param object $order The Order object.
+ * @param object $customer The Customer object.
+ *
+ * @return string|object Response data.
+ * @throws Exception
+ */
+ public function createOrder($orderData, $customerData): ?object
+ {
+ // Build body
+ $body = [
+ 'data' => [
+ 'type' => 'orders',
+ 'attributes' => [
+ 'order' => $orderData,
+ 'customer' => $customerData,
+ ],
+ ],
+ ];
+
+ $response = $this->post('stores/orders', $body);
+
+ if (isset($response->errors)) {
+ throw new \Exception('Exception: Request Error! ' . print_r($response->errors, true));
+ } elseif (!isset($response->data->attributes->redirect_url)) {
+ throw new \Exception('Exception: Missing redirect_url!');
+ }
+
+ return $response->data;
+ }
+}
diff --git a/modules/gateways/vendor/utrust/utrust/src/Validator.php b/modules/gateways/vendor/utrust/utrust/src/Validator.php
new file mode 100755
index 0000000..fca50c8
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/src/Validator.php
@@ -0,0 +1,96 @@
+rules([
+ 'required' => [
+ ['first_name'],
+ ['last_name'],
+ ['email'],
+ ['country'],
+ ],
+ 'optional' => [
+ ['address1'],
+ ['address2'],
+ ['city'],
+ ['state'],
+ ['postcode'],
+ ],
+ 'email' => [
+ ['email'],
+ ],
+ 'regex' => [
+ ['country', '/^[a-zA-Z]{2}$/'],
+ ],
+ ]);
+
+ if ($validator->validate()) {
+ return true;
+ } else {
+ throw new \Exception(print_r($validator->errors(), true));
+ }
+ }
+
+ public function order($data)
+ {
+ $validator = new Valitron\Validator($data);
+
+ $validator->rules([
+ 'required' => [
+ ['reference'],
+ ['amount'],
+ ['amount.total'],
+ ['amount.currency'],
+ ['return_urls'],
+ ['return_urls.return_url'],
+ ['line_items'],
+ ['line_items.*.sku'],
+ ['line_items.*.name'],
+ ['line_items.*.price'],
+ ['line_items.*.currency'],
+ ['line_items.*.quantity'],
+ ],
+ 'optional' => [
+ ['amount.details'],
+ ['amount.details.subtotal'],
+ ['amount.details.tax'],
+ ['amount.details.shipping'],
+ ['amount.details.discount'],
+ ['return_urls.cancel_url'],
+ ['return_urls.callback_url'],
+ ],
+ 'array' => [
+ ['amount'],
+ ['return_urls'],
+ ['line_items'],
+ ],
+ 'integer' => [
+ ['line_items.*.quantity'],
+ ],
+ 'regex' => [
+ ['amount.currency', '/^[a-zA-Z]{3}$/'],
+ ['line_items.*.currency', '/^[a-zA-Z]{3}$/'],
+ ],
+ 'url' => [
+ ['return_urls.return_url'],
+ ['return_urls.cancel_url'],
+ ['return_urls.callback_url'],
+ ],
+ ]);
+
+ if ($validator->validate()) {
+ return true;
+ } else {
+ throw new \Exception(print_r($validator->errors(), true));
+ }
+ }
+}
diff --git a/modules/gateways/vendor/utrust/utrust/src/Webhook/Event.php b/modules/gateways/vendor/utrust/utrust/src/Webhook/Event.php
new file mode 100755
index 0000000..590d1f6
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/src/Webhook/Event.php
@@ -0,0 +1,114 @@
+payload = \json_decode($payload);
+
+ // Make sure it's a valid JSON
+ if (json_last_error()) {
+ throw new \Exception('Invalid payload provided. No JSON object could be decoded.'
+ . print_r($this->payload, true));
+ }
+
+ // Make sure it has event type
+ if (!isset($this->payload->event_type)) {
+ throw new \Exception('Event_type is missing on the payload.' . print_r($this->payload, true));
+ }
+
+ // Make sure it has reference
+ if (!isset($this->payload->resource->reference)) {
+ throw new \Exception('Reference is missing on the payload.' . print_r($this->payload, true));
+ }
+ }
+
+ /**
+ * Gets Event Type data
+ *
+ * @return string Event Type data.
+ */
+ public function getEventType()
+ {
+ return $this->payload->event_type;
+ }
+
+ /**
+ * Gets Order Reference data
+ *
+ * @return string Order Reference data.
+ */
+ public function getOrderReference()
+ {
+ return $this->payload->resource->reference;
+ }
+
+ /**
+ * Gets Signature data
+ *
+ * @return string Signature data.
+ */
+ public function getSignature()
+ {
+ return $this->payload->signature;
+ }
+
+ /**
+ * Gets Payload data
+ *
+ * @return string Payload data.
+ */
+ public function getPayload()
+ {
+ return $this->payload;
+ }
+
+ /**
+ * Verify the incoming webhook notification to make sure it is legit.
+ *
+ * @param string $webhooksSecret The Webhooks Secret from Utrust Merchant dashboard.
+ *
+ * @return bool
+ * @throws Exception
+ */
+ public function validateSignature($webhooksSecret)
+ {
+ if ($webhooksSecret == null) {
+ throw new \Exception('Webhooks Secret cant be NULL!');
+ }
+
+ $payload = clone $this->payload;
+
+ // Removes signature from response
+ unset($payload->signature);
+
+ // Concat keys and values into one string
+ $concatedPayload = [];
+ foreach ($payload as $key => $value) {
+ if (is_object($value)) {
+ foreach ($value as $k => $v) {
+ $concatedPayload[] = $key;
+ $concatedPayload[] = $k . $v;
+ }
+ } else {
+ $concatedPayload[] = $key . $value;
+ }
+ }
+ // Sort array alphabetically
+ ksort($concatedPayload);
+ // Concat the array
+ $concatedPayload = join('', $concatedPayload);
+ // Sign string with HMAC SHA256
+ $signedPayload = hash_hmac('sha256', $concatedPayload, $webhooksSecret);
+
+ // Check if signature is correct
+ if ($this->getSignature() === $signedPayload) {
+ return true;
+ }
+
+ throw new \Exception('Invalid signature!');
+ }
+}
diff --git a/modules/gateways/vendor/utrust/utrust/tests/ValidatorTest.php b/modules/gateways/vendor/utrust/utrust/tests/ValidatorTest.php
new file mode 100755
index 0000000..4c1f640
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/tests/ValidatorTest.php
@@ -0,0 +1,116 @@
+ 'Daniel',
+ 'last_name' => 'Coelho',
+ 'email' => 'daniel+php@utrust.com',
+ 'country' => 'PT',
+ ];
+
+ $result = Validator::customer($validCustomerData);
+ $this->assertTrue($result);
+ }
+
+ public function testInvalidCustomer(): void
+ {
+ // Missing required field email
+ $invalidCustomerData = [
+ 'first_name' => 'Daniel',
+ 'last_name' => 'Coelho',
+ 'postcode' => '4000',
+ 'country' => 'PT',
+ ];
+
+ $expected_errors_message = print_r([
+ 'email' => [
+ 'Email is required',
+ 'Email is not a valid email address',
+ ],
+ ], true);
+
+ $this->expectExceptionMessage($expected_errors_message);
+ Validator::customer($invalidCustomerData);
+ }
+
+ public function testValidOrder(): void
+ {
+ $validOrderData = [
+ 'reference' => 'REF-12345678',
+ 'amount' => [
+ 'total' => '0.99',
+ 'currency' => 'EUR',
+ ],
+ 'return_urls' => [
+ 'return_url' => 'http://example.com/order_success',
+ 'cancel_url' => 'http://example.com/order_canceled',
+ 'callback_url' => 'http://example.com/webhook_url',
+ ],
+ 'line_items' => [
+ [
+ 'sku' => 'tshirt-1234',
+ 'name' => 'T-shirt',
+ 'price' => '10.00',
+ 'currency' => 'EUR',
+ 'quantity' => 1,
+ ],
+ ],
+ ];
+
+ $result = Validator::order($validOrderData);
+ $this->assertTrue($result);
+ }
+
+ public function testInvalidOrder(): void
+ {
+ // Missing some required fields
+ $invalidOrderData = [
+ 'amount' => [
+ 'total' => '0.99',
+ 'currency' => 'EURO',
+ ],
+ 'return_urls' => [
+ 'return_url' => 'http://example.com/order_success',
+ 'cancel_url' => 'example.com/this-is-not-a-correct-url',
+ ],
+ 'line_items' => [
+ [
+ 'sku' => 'tshirt-1234',
+ 'quantity' => 'this-is-not-an-integer',
+ ],
+ ],
+ ];
+
+ $expected_errors_message = print_r([
+ "reference" => ["Reference is required"],
+ "line_items.*.name" => [
+ "Line Items.*.name is required",
+ ],
+ "line_items.*.price" => [
+ "Line Items.*.price is required",
+ ],
+ "line_items.*.currency" => [
+ "Line Items.*.currency is required",
+ "Line Items.*.currency contains invalid characters",
+ ],
+ "line_items.*.quantity" => [
+
+ "Line Items.*.quantity must be an integer",
+ ],
+ "amount.currency" => [
+ "Amount.currency contains invalid characters",
+ ],
+ "return_urls.cancel_url" => [
+ "Return Urls.cancel Url is not a valid URL",
+ ],
+ ], true);
+
+ $this->expectExceptionMessage($expected_errors_message);
+ Validator::order($invalidOrderData);
+ }
+}
diff --git a/modules/gateways/vendor/utrust/utrust/tests/WebhookTest.php b/modules/gateways/vendor/utrust/utrust/tests/WebhookTest.php
new file mode 100755
index 0000000..7103502
--- /dev/null
+++ b/modules/gateways/vendor/utrust/utrust/tests/WebhookTest.php
@@ -0,0 +1,59 @@
+expectException(Exception::class);
+ $this->expectExceptionMessage('Invalid payload provided.');
+
+ $event = new Event($invalidPayload);
+ }
+
+ public function testInvalidPayloadMissingEventType(): void
+ {
+ $invalidPayload = "{ \"resource\": { \"amount\": \"0.99\", \"currency\": \"EUR\", \"reference\": \"REF-12345678\" }, \"signature\": \"1234-this-is-an-invalid-signature-1234\", \"state\": \"cancelled\" }";
+
+ $this->expectException(Exception::class);
+ $this->expectExceptionMessage('Event_type is missing on the payload.');
+
+ $event = new Event($invalidPayload);
+ }
+
+ public function testInvalidPayloadMissingReference(): void
+ {
+ $invalidPayload = "{ \"event_type\": \"ORDER.PAYMENT.CANCELLED\", \"resource\": { \"amount\": \"0.99\", \"currency\": \"EUR\" }, \"signature\": \"1234-this-is-an-invalid-signature-1234\", \"state\": \"cancelled\" }";
+
+ $this->expectException(Exception::class);
+ $this->expectExceptionMessage('Reference is missing on the payload.');
+
+ $event = new Event($invalidPayload);
+ }
+
+ public function testValidSignature(): void
+ {
+ $validPayload = "{ \"event_type\": \"ORDER.PAYMENT.CANCELLED\", \"resource\": { \"amount\": \"0.99\", \"currency\": \"EUR\", \"reference\": \"REF-12345678\" }, \"signature\": \"bb32374545004b5f4a1264a8e8e78e3357e27a35a8a3b334fe1a2a47b60a35ba\", \"state\": \"cancelled\" }";
+
+ $event = new Event($validPayload);
+ $result = $event->validateSignature('u_test_webhooks_123456789');
+
+ $this->assertTrue($result);
+ }
+
+ public function testInvalidSignature(): void
+ {
+ $invalidPayload = "{ \"event_type\": \"ORDER.PAYMENT.CANCELLED\", \"resource\": { \"amount\": \"0.99\", \"currency\": \"EUR\", \"reference\": \"REF-12345678\" }, \"signature\": \"1234-this-is-an-invalid-signature-1234\", \"state\": \"cancelled\" }";
+
+ $event = new Event($invalidPayload);
+
+ $this->expectException(Exception::class);
+ $this->expectExceptionMessage("Invalid signature!");
+
+ $event->validateSignature('u_test_webhooks_123456789');
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/LICENSE b/modules/gateways/vendor/vlucas/phpdotenv/LICENSE
new file mode 100755
index 0000000..f41fa72
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/LICENSE
@@ -0,0 +1,30 @@
+BSD 3-Clause License
+
+Copyright (c) 2014, Graham Campbell.
+Copyright (c) 2013, Vance Lucas.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+2. Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+3. Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/composer.json b/modules/gateways/vendor/vlucas/phpdotenv/composer.json
new file mode 100755
index 0000000..2fa9e82
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/composer.json
@@ -0,0 +1,42 @@
+{
+ "name": "vlucas/phpdotenv",
+ "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.",
+ "keywords": ["env", "dotenv", "environment"],
+ "license": "BSD-3-Clause",
+ "authors": [
+ {
+ "name": "Graham Campbell",
+ "email": "graham@alt-three.com",
+ "homepage": "https://gjcampbell.co.uk/"
+ },
+ {
+ "name": "Vance Lucas",
+ "email": "vance@vancelucas.com",
+ "homepage": "https://vancelucas.com/"
+ }
+ ],
+ "require": {
+ "php": "^5.5.9 || ^7.0",
+ "phpoption/phpoption": "^1.7.1",
+ "symfony/polyfill-ctype": "^1.9"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.0 || ^6.0 || ^7.0",
+ "bamarni/composer-bin-plugin": "^1.3"
+ },
+ "autoload": {
+ "psr-4": {
+ "Dotenv\\": "src/"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "Dotenv\\Tests\\": "tests/Dotenv/"
+ }
+ },
+ "extra": {
+ "branch-alias": {
+ "dev-master": "4.1-dev"
+ }
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Dotenv.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Dotenv.php
new file mode 100755
index 0000000..a0ec927
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Dotenv.php
@@ -0,0 +1,157 @@
+loader = $loader;
+ $this->repository = $repository;
+ $this->store = is_array($store) ? new FileStore($store, true) : $store;
+ }
+
+ /**
+ * Create a new dotenv instance.
+ *
+ * @param \Dotenv\Repository\RepositoryInterface $repository
+ * @param string|string[] $paths
+ * @param string|string[]|null $names
+ * @param bool $shortCircuit
+ *
+ * @return \Dotenv\Dotenv
+ */
+ public static function create(RepositoryInterface $repository, $paths, $names = null, $shortCircuit = true)
+ {
+ $builder = StoreBuilder::create()->withPaths($paths)->withNames($names);
+
+ if ($shortCircuit) {
+ $builder = $builder->shortCircuit();
+ }
+
+ return new self(new Loader(), $repository, $builder->make());
+ }
+
+ /**
+ * Create a new mutable dotenv instance with default repository.
+ *
+ * @param string|string[] $paths
+ * @param string|string[]|null $names
+ * @param bool $shortCircuit
+ *
+ * @return \Dotenv\Dotenv
+ */
+ public static function createMutable($paths, $names = null, $shortCircuit = true)
+ {
+ $repository = RepositoryBuilder::create()->make();
+
+ return self::create($repository, $paths, $names, $shortCircuit);
+ }
+
+ /**
+ * Create a new immutable dotenv instance with default repository.
+ *
+ * @param string|string[] $paths
+ * @param string|string[]|null $names
+ * @param bool $shortCircuit
+ *
+ * @return \Dotenv\Dotenv
+ */
+ public static function createImmutable($paths, $names = null, $shortCircuit = true)
+ {
+ $repository = RepositoryBuilder::create()->immutable()->make();
+
+ return self::create($repository, $paths, $names, $shortCircuit);
+ }
+
+ /**
+ * Read and load environment file(s).
+ *
+ * @throws \Dotenv\Exception\InvalidPathException|\Dotenv\Exception\InvalidFileException
+ *
+ * @return array
+ */
+ public function load()
+ {
+ return $this->loader->load($this->repository, $this->store->read());
+ }
+
+ /**
+ * Read and load environment file(s), silently failing if no files can be read.
+ *
+ * @throws \Dotenv\Exception\InvalidFileException
+ *
+ * @return array
+ */
+ public function safeLoad()
+ {
+ try {
+ return $this->load();
+ } catch (InvalidPathException $e) {
+ // suppressing exception
+ return [];
+ }
+ }
+
+ /**
+ * Required ensures that the specified variables exist, and returns a new validator object.
+ *
+ * @param string|string[] $variables
+ *
+ * @return \Dotenv\Validator
+ */
+ public function required($variables)
+ {
+ return new Validator($this->repository, (array) $variables);
+ }
+
+ /**
+ * Returns a new validator object that won't check if the specified variables exist.
+ *
+ * @param string|string[] $variables
+ *
+ * @return \Dotenv\Validator
+ */
+ public function ifPresent($variables)
+ {
+ return new Validator($this->repository, (array) $variables, false);
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php
new file mode 100755
index 0000000..0ce735f
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Exception/ExceptionInterface.php
@@ -0,0 +1,8 @@
+ 1;
+ }
+
+ /**
+ * Get all pairs of adjacent characters within the line.
+ *
+ * @param string $line
+ *
+ * @return array{array{string,string|null}}
+ */
+ private static function getCharPairs($line)
+ {
+ $chars = str_split($line);
+
+ return array_map(null, $chars, array_slice($chars, 1));
+ }
+
+ /**
+ * Determine if the line in the file is a comment, e.g. begins with a #.
+ *
+ * @param string $line
+ *
+ * @return bool
+ */
+ private static function isComment($line)
+ {
+ $line = ltrim($line);
+
+ return isset($line[0]) && $line[0] === '#';
+ }
+
+ /**
+ * Determine if the given line looks like it's setting a variable.
+ *
+ * @param string $line
+ *
+ * @return bool
+ */
+ private static function isSetter($line)
+ {
+ return strpos($line, '=') !== false;
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/Loader.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/Loader.php
new file mode 100755
index 0000000..f758754
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/Loader.php
@@ -0,0 +1,118 @@
+whitelist = $whitelist;
+ }
+
+ /**
+ * Load the given environment file content into the repository.
+ *
+ * @param \Dotenv\Repository\RepositoryInterface $repository
+ * @param string $content
+ *
+ * @throws \Dotenv\Exception\InvalidFileException
+ *
+ * @return array
+ */
+ public function load(RepositoryInterface $repository, $content)
+ {
+ return $this->processEntries(
+ $repository,
+ Lines::process(Regex::split("/(\r\n|\n|\r)/", $content)->getSuccess())
+ );
+ }
+
+ /**
+ * Process the environment variable entries.
+ *
+ * We'll fill out any nested variables, and acually set the variable using
+ * the underlying environment variables instance.
+ *
+ * @param \Dotenv\Repository\RepositoryInterface $repository
+ * @param string[] $entries
+ *
+ * @throws \Dotenv\Exception\InvalidFileException
+ *
+ * @return array
+ */
+ private function processEntries(RepositoryInterface $repository, array $entries)
+ {
+ $vars = [];
+
+ foreach ($entries as $entry) {
+ list($name, $value) = Parser::parse($entry);
+ if ($this->whitelist === null || in_array($name, $this->whitelist, true)) {
+ $vars[$name] = self::resolveNestedVariables($repository, $value);
+ $repository->set($name, $vars[$name]);
+ }
+ }
+
+ return $vars;
+ }
+
+ /**
+ * Resolve the nested variables.
+ *
+ * Look for ${varname} patterns in the variable value and replace with an
+ * existing environment variable.
+ *
+ * @param \Dotenv\Repository\RepositoryInterface $repository
+ * @param \Dotenv\Loader\Value|null $value
+ *
+ * @return string|null
+ */
+ private static function resolveNestedVariables(RepositoryInterface $repository, Value $value = null)
+ {
+ return Option::fromValue($value)
+ ->map(function (Value $v) use ($repository) {
+ return array_reduce($v->getVars(), function ($s, $i) use ($repository) {
+ return substr($s, 0, $i).self::resolveNestedVariable($repository, substr($s, $i));
+ }, $v->getChars());
+ })
+ ->getOrElse(null);
+ }
+
+ /**
+ * Resolve a single nested variable.
+ *
+ * @param \Dotenv\Repository\RepositoryInterface $repository
+ * @param string $str
+ *
+ * @return string
+ */
+ private static function resolveNestedVariable(RepositoryInterface $repository, $str)
+ {
+ return Regex::replaceCallback(
+ '/\A\${([a-zA-Z0-9_.]+)}/',
+ function (array $matches) use ($repository) {
+ return Option::fromValue($repository->get($matches[1]))
+ ->getOrElse($matches[0]);
+ },
+ $str,
+ 1
+ )->success()->getOrElse($str);
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php
new file mode 100755
index 0000000..8054b74
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/LoaderInterface.php
@@ -0,0 +1,20 @@
+
+ */
+ public function load(RepositoryInterface $repository, $content);
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/Parser.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/Parser.php
new file mode 100755
index 0000000..a88a033
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/Parser.php
@@ -0,0 +1,214 @@
+mapError(function ($err) use ($value) {
+ throw new InvalidFileException(
+ self::getErrorMessage($err, $value)
+ );
+ })->mapSuccess(function ($val) use ($data) {
+ return [$data[0]->append($val[0], $val[1]), $val[2]];
+ })->getSuccess();
+ }, [Value::blank(), self::INITIAL_STATE])[0];
+ }
+
+ /**
+ * Process the given character.
+ *
+ * @param int $state
+ * @param string $char
+ *
+ * @return \Dotenv\Result\Result
+ */
+ private static function processChar($state, $char)
+ {
+ switch ($state) {
+ case self::INITIAL_STATE:
+ if ($char === '\'') {
+ return Success::create(['', false, self::SINGLE_QUOTED_STATE]);
+ } elseif ($char === '"') {
+ return Success::create(['', false, self::DOUBLE_QUOTED_STATE]);
+ } elseif ($char === '#') {
+ return Success::create(['', false, self::COMMENT_STATE]);
+ } elseif ($char === '$') {
+ return Success::create([$char, true, self::UNQUOTED_STATE]);
+ } else {
+ return Success::create([$char, false, self::UNQUOTED_STATE]);
+ }
+ case self::UNQUOTED_STATE:
+ if ($char === '#') {
+ return Success::create(['', false, self::COMMENT_STATE]);
+ } elseif (ctype_space($char)) {
+ return Success::create(['', false, self::WHITESPACE_STATE]);
+ } elseif ($char === '$') {
+ return Success::create([$char, true, self::UNQUOTED_STATE]);
+ } else {
+ return Success::create([$char, false, self::UNQUOTED_STATE]);
+ }
+ case self::SINGLE_QUOTED_STATE:
+ if ($char === '\'') {
+ return Success::create(['', false, self::WHITESPACE_STATE]);
+ } else {
+ return Success::create([$char, false, self::SINGLE_QUOTED_STATE]);
+ }
+ case self::DOUBLE_QUOTED_STATE:
+ if ($char === '"') {
+ return Success::create(['', false, self::WHITESPACE_STATE]);
+ } elseif ($char === '\\') {
+ return Success::create(['', false, self::ESCAPE_SEQUENCE_STATE]);
+ } elseif ($char === '$') {
+ return Success::create([$char, true, self::DOUBLE_QUOTED_STATE]);
+ } else {
+ return Success::create([$char, false, self::DOUBLE_QUOTED_STATE]);
+ }
+ case self::ESCAPE_SEQUENCE_STATE:
+ if ($char === '"' || $char === '\\') {
+ return Success::create([$char, false, self::DOUBLE_QUOTED_STATE]);
+ } elseif ($char === '$') {
+ return Success::create([$char, false, self::DOUBLE_QUOTED_STATE]);
+ } elseif (in_array($char, ['f', 'n', 'r', 't', 'v'], true)) {
+ return Success::create([stripcslashes('\\'.$char), false, self::DOUBLE_QUOTED_STATE]);
+ } else {
+ return Error::create('an unexpected escape sequence');
+ }
+ case self::WHITESPACE_STATE:
+ if ($char === '#') {
+ return Success::create(['', false, self::COMMENT_STATE]);
+ } elseif (!ctype_space($char)) {
+ return Error::create('unexpected whitespace');
+ } else {
+ return Success::create(['', false, self::WHITESPACE_STATE]);
+ }
+ case self::COMMENT_STATE:
+ return Success::create(['', false, self::COMMENT_STATE]);
+ }
+ }
+
+ /**
+ * Generate a friendly error message.
+ *
+ * @param string $cause
+ * @param string $subject
+ *
+ * @return string
+ */
+ private static function getErrorMessage($cause, $subject)
+ {
+ return sprintf(
+ 'Failed to parse dotenv file due to %s. Failed at [%s].',
+ $cause,
+ strtok($subject, "\n")
+ );
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/Value.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/Value.php
new file mode 100755
index 0000000..a51f903
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Loader/Value.php
@@ -0,0 +1,83 @@
+chars = $chars;
+ $this->vars = $vars;
+ }
+
+ /**
+ * Create an empty value instance.
+ *
+ * @return \Dotenv\Loader\Value
+ */
+ public static function blank()
+ {
+ return new self('', []);
+ }
+
+ /**
+ * Create a new value instance, appending the character.
+ *
+ * @param string $char
+ * @param bool $var
+ *
+ * @return \Dotenv\Loader\Value
+ */
+ public function append($char, $var)
+ {
+ return new self(
+ $this->chars.$char,
+ $var ? array_merge($this->vars, [strlen($this->chars)]) : $this->vars
+ );
+ }
+
+ /**
+ * Get the string representation of the parsed value.
+ *
+ * @return string
+ */
+ public function getChars()
+ {
+ return $this->chars;
+ }
+
+ /**
+ * Get the locations of the variables in the value.
+ *
+ * @return int[]
+ */
+ public function getVars()
+ {
+ $vars = $this->vars;
+ rsort($vars);
+
+ return $vars;
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Regex/Regex.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Regex/Regex.php
new file mode 100755
index 0000000..f1984b2
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Regex/Regex.php
@@ -0,0 +1,122 @@
+
+ */
+ public static function match($pattern, $subject)
+ {
+ return self::pregAndWrap(function ($subject) use ($pattern) {
+ return (int) @preg_match($pattern, $subject);
+ }, $subject);
+ }
+
+ /**
+ * Perform a preg replace, wrapping up the result.
+ *
+ * @param string $pattern
+ * @param string $replacement
+ * @param string $subject
+ * @param int|null $limit
+ *
+ * @return \Dotenv\Result\Result
+ */
+ public static function replace($pattern, $replacement, $subject, $limit = null)
+ {
+ return self::pregAndWrap(function ($subject) use ($pattern, $replacement, $limit) {
+ return (string) @preg_replace($pattern, $replacement, $subject, $limit === null ? -1 : $limit);
+ }, $subject);
+ }
+
+ /**
+ * Perform a preg replace callback, wrapping up the result.
+ *
+ * @param string $pattern
+ * @param callable $callback
+ * @param string $subject
+ * @param int|null $limit
+ *
+ * @return \Dotenv\Result\Result
+ */
+ public static function replaceCallback($pattern, callable $callback, $subject, $limit = null)
+ {
+ return self::pregAndWrap(function ($subject) use ($pattern, $callback, $limit) {
+ return (string) @preg_replace_callback($pattern, $callback, $subject, $limit === null ? -1 : $limit);
+ }, $subject);
+ }
+
+ /**
+ * Perform a preg split, wrapping up the result.
+ *
+ * @param string $pattern
+ * @param string $subject
+ *
+ * @return \Dotenv\Result\Result
+ */
+ public static function split($pattern, $subject)
+ {
+ return self::pregAndWrap(function ($subject) use ($pattern) {
+ return (array) @preg_split($pattern, $subject);
+ }, $subject);
+ }
+
+ /**
+ * Perform a preg operation, wrapping up the result.
+ *
+ * @template V
+ *
+ * @param callable(string): V $operation
+ * @param string $subject
+ *
+ * @return \Dotenv\Result\Result
+ */
+ private static function pregAndWrap(callable $operation, $subject)
+ {
+ $result = $operation($subject);
+
+ if (($e = preg_last_error()) !== PREG_NO_ERROR) {
+ return Error::create(self::lookupError($e));
+ }
+
+ return Success::create($result);
+ }
+
+ /**
+ * Lookup the preg error code.
+ *
+ * @param int $code
+ *
+ * @return string
+ */
+ private static function lookupError($code)
+ {
+ return Option::fromValue(get_defined_constants(true))
+ ->filter(function (array $consts) {
+ return isset($consts['pcre']) && defined('ARRAY_FILTER_USE_KEY');
+ })
+ ->map(function (array $consts) {
+ return array_filter($consts['pcre'], function ($msg) {
+ return substr($msg, -6) === '_ERROR';
+ }, ARRAY_FILTER_USE_KEY);
+ })
+ ->flatMap(function (array $errors) use ($code) {
+ return Option::fromValue(
+ array_search($code, $errors, true)
+ );
+ })
+ ->getOrElse('PREG_ERROR');
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php
new file mode 100755
index 0000000..a7ef7e0
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/AbstractRepository.php
@@ -0,0 +1,175 @@
+immutable = $immutable;
+ $this->loaded = new ArrayAdapter();
+ }
+
+ /**
+ * Get an environment variable.
+ *
+ * @param string $name
+ *
+ * @throws \InvalidArgumentException
+ *
+ * @return string|null
+ */
+ public function get($name)
+ {
+ if (!is_string($name)) {
+ throw new InvalidArgumentException('Expected name to be a string.');
+ }
+
+ return $this->getInternal($name);
+ }
+
+ /**
+ * Get an environment variable.
+ *
+ * @param string $name
+ *
+ * @return string|null
+ */
+ abstract protected function getInternal($name);
+
+ /**
+ * Set an environment variable.
+ *
+ * @param string $name
+ * @param string|null $value
+ *
+ * @throws \InvalidArgumentException
+ *
+ * @return void
+ */
+ public function set($name, $value = null)
+ {
+ if (!is_string($name)) {
+ throw new InvalidArgumentException('Expected name to be a string.');
+ }
+
+ // Don't overwrite existing environment variables if we're immutable
+ // Ruby's dotenv does this with `ENV[key] ||= value`.
+ if ($this->immutable && $this->get($name) !== null && $this->loaded->get($name)->isEmpty()) {
+ return;
+ }
+
+ $this->setInternal($name, $value);
+ $this->loaded->set($name, '');
+ }
+
+ /**
+ * Set an environment variable.
+ *
+ * @param string $name
+ * @param string|null $value
+ *
+ * @return void
+ */
+ abstract protected function setInternal($name, $value = null);
+
+ /**
+ * Clear an environment variable.
+ *
+ * @param string $name
+ *
+ * @throws \InvalidArgumentException
+ *
+ * @return void
+ */
+ public function clear($name)
+ {
+ if (!is_string($name)) {
+ throw new InvalidArgumentException('Expected name to be a string.');
+ }
+
+ // Don't clear anything if we're immutable.
+ if ($this->immutable) {
+ return;
+ }
+
+ $this->clearInternal($name);
+ }
+
+ /**
+ * Clear an environment variable.
+ *
+ * @param string $name
+ *
+ * @return void
+ */
+ abstract protected function clearInternal($name);
+
+ /**
+ * Tells whether environment variable has been defined.
+ *
+ * @param string $name
+ *
+ * @return bool
+ */
+ public function has($name)
+ {
+ return is_string($name) && $this->get($name) !== null;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function offsetExists($offset)
+ {
+ return $this->has($offset);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function offsetGet($offset)
+ {
+ return $this->get($offset);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function offsetSet($offset, $value)
+ {
+ $this->set($offset, $value);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function offsetUnset($offset)
+ {
+ $this->clear($offset);
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php
new file mode 100755
index 0000000..3a1150d
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ApacheAdapter.php
@@ -0,0 +1,64 @@
+
+ */
+ public function get($name)
+ {
+ return None::create();
+ }
+
+ /**
+ * Set an environment variable.
+ *
+ * Only if an existing apache variable exists do we overwrite it.
+ *
+ * @param string $name
+ * @param string|null $value
+ *
+ * @return void
+ */
+ public function set($name, $value = null)
+ {
+ if (apache_getenv($name) !== false) {
+ apache_setenv($name, (string) $value);
+ }
+ }
+
+ /**
+ * Clear an environment variable.
+ *
+ * @param string $name
+ *
+ * @return void
+ */
+ public function clear($name)
+ {
+ // Nothing to do here.
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php
new file mode 100755
index 0000000..b71c011
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ArrayAdapter.php
@@ -0,0 +1,67 @@
+
+ */
+ private $variables = [];
+
+ /**
+ * Determines if the adapter is supported.
+ *
+ * @return bool
+ */
+ public function isSupported()
+ {
+ return true;
+ }
+
+ /**
+ * Get an environment variable, if it exists.
+ *
+ * @param string $name
+ *
+ * @return \PhpOption\Option
+ */
+ public function get($name)
+ {
+ if (array_key_exists($name, $this->variables)) {
+ return Some::create($this->variables[$name]);
+ }
+
+ return None::create();
+ }
+
+ /**
+ * Set an environment variable.
+ *
+ * @param string $name
+ * @param string|null $value
+ *
+ * @return void
+ */
+ public function set($name, $value = null)
+ {
+ $this->variables[$name] = $value;
+ }
+
+ /**
+ * Clear an environment variable.
+ *
+ * @param string $name
+ *
+ * @return void
+ */
+ public function clear($name)
+ {
+ unset($this->variables[$name]);
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/AvailabilityInterface.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/AvailabilityInterface.php
new file mode 100755
index 0000000..407f9bf
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/AvailabilityInterface.php
@@ -0,0 +1,13 @@
+
+ */
+ public function get($name)
+ {
+ if (array_key_exists($name, $_ENV)) {
+ return Some::create($_ENV[$name]);
+ }
+
+ return None::create();
+ }
+
+ /**
+ * Set an environment variable.
+ *
+ * @param string $name
+ * @param string|null $value
+ *
+ * @return void
+ */
+ public function set($name, $value = null)
+ {
+ $_ENV[$name] = $value;
+ }
+
+ /**
+ * Clear an environment variable.
+ *
+ * @param string $name
+ *
+ * @return void
+ */
+ public function clear($name)
+ {
+ unset($_ENV[$name]);
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php
new file mode 100755
index 0000000..22aa75c
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/PutenvAdapter.php
@@ -0,0 +1,55 @@
+
+ */
+ public function get($name)
+ {
+ return Option::fromValue(getenv($name), false);
+ }
+
+ /**
+ * Set an environment variable.
+ *
+ * @param string $name
+ * @param string|null $value
+ *
+ * @return void
+ */
+ public function set($name, $value = null)
+ {
+ putenv("$name=$value");
+ }
+
+ /**
+ * Clear an environment variable.
+ *
+ * @param string $name
+ *
+ * @return void
+ */
+ public function clear($name)
+ {
+ putenv($name);
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php
new file mode 100755
index 0000000..5a8e7ad
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ReaderInterface.php
@@ -0,0 +1,15 @@
+
+ */
+ public function get($name);
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php
new file mode 100755
index 0000000..0f9f2e8
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/ServerConstAdapter.php
@@ -0,0 +1,60 @@
+
+ */
+ public function get($name)
+ {
+ if (array_key_exists($name, $_SERVER)) {
+ return Some::create($_SERVER[$name]);
+ }
+
+ return None::create();
+ }
+
+ /**
+ * Set an environment variable.
+ *
+ * @param string $name
+ * @param string|null $value
+ *
+ * @return void
+ */
+ public function set($name, $value = null)
+ {
+ $_SERVER[$name] = $value;
+ }
+
+ /**
+ * Clear an environment variable.
+ *
+ * @param string $name
+ *
+ * @return void
+ */
+ public function clear($name)
+ {
+ unset($_SERVER[$name]);
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php
new file mode 100755
index 0000000..b289790
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/Adapter/WriterInterface.php
@@ -0,0 +1,25 @@
+readers = $readers;
+ $this->writers = $writers;
+ parent::__construct($immutable);
+ }
+
+ /**
+ * Get an environment variable.
+ *
+ * We do this by querying our readers sequentially.
+ *
+ * @param string $name
+ *
+ * @return string|null
+ */
+ protected function getInternal($name)
+ {
+ foreach ($this->readers as $reader) {
+ $result = $reader->get($name);
+ if ($result->isDefined()) {
+ return $result->get();
+ }
+ }
+ }
+
+ /**
+ * Set an environment variable.
+ *
+ * @param string $name
+ * @param string|null $value
+ *
+ * @return void
+ */
+ protected function setInternal($name, $value = null)
+ {
+ foreach ($this->writers as $writers) {
+ $writers->set($name, $value);
+ }
+ }
+
+ /**
+ * Clear an environment variable.
+ *
+ * @param string $name
+ *
+ * @return void
+ */
+ protected function clearInternal($name)
+ {
+ foreach ($this->writers as $writers) {
+ $writers->clear($name);
+ }
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php
new file mode 100755
index 0000000..e6c93ef
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/RepositoryBuilder.php
@@ -0,0 +1,144 @@
+readers = $readers;
+ $this->writers = $writers;
+ $this->immutable = $immutable;
+ }
+
+ /**
+ * Create a new repository builder instance.
+ *
+ * @return \Dotenv\Repository\RepositoryBuilder
+ */
+ public static function create()
+ {
+ return new self();
+ }
+
+ /**
+ * Creates a repository builder with the given readers.
+ *
+ * @param \Dotenv\Repository\Adapter\ReaderInterface[]|null $readers
+ *
+ * @return \Dotenv\Repository\RepositoryBuilder
+ */
+ public function withReaders(array $readers = null)
+ {
+ $readers = $readers === null ? null : self::filterByAvailability($readers);
+
+ return new self($readers, $this->writers, $this->immutable);
+ }
+
+ /**
+ * Creates a repository builder with the given writers.
+ *
+ * @param \Dotenv\Repository\Adapter\WriterInterface[]|null $writers
+ *
+ * @return \Dotenv\Repository\RepositoryBuilder
+ */
+ public function withWriters(array $writers = null)
+ {
+ $writers = $writers === null ? null : self::filterByAvailability($writers);
+
+ return new self($this->readers, $writers, $this->immutable);
+ }
+
+ /**
+ * Creates a repository builder with mutability enabled.
+ *
+ * @return \Dotenv\Repository\RepositoryBuilder
+ */
+ public function immutable()
+ {
+ return new self($this->readers, $this->writers, true);
+ }
+
+ /**
+ * Creates a new repository instance.
+ *
+ * @return \Dotenv\Repository\RepositoryInterface
+ */
+ public function make()
+ {
+ if ($this->readers === null || $this->writers === null) {
+ $defaults = self::defaultAdapters();
+ }
+
+ return new AdapterRepository(
+ $this->readers === null ? $defaults : $this->readers,
+ $this->writers === null ? $defaults : $this->writers,
+ $this->immutable
+ );
+ }
+
+ /**
+ * Return the array of default adapters.
+ *
+ * @return \Dotenv\Repository\Adapter\AvailabilityInterface[]
+ */
+ private static function defaultAdapters()
+ {
+ return self::filterByAvailability([
+ new ApacheAdapter(),
+ new EnvConstAdapter(),
+ new ServerConstAdapter(),
+ new PutenvAdapter(),
+ ]);
+ }
+
+ /**
+ * Filter an array of adapters to only those that are supported.
+ *
+ * @param \Dotenv\Repository\Adapter\AvailabilityInterface[] $adapters
+ *
+ * @return \Dotenv\Repository\Adapter\AvailabilityInterface[]
+ */
+ private static function filterByAvailability(array $adapters)
+ {
+ return array_filter($adapters, function (AvailabilityInterface $adapter) {
+ return $adapter->isSupported();
+ });
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php
new file mode 100755
index 0000000..bbf3990
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Repository/RepositoryInterface.php
@@ -0,0 +1,54 @@
+
+ */
+interface RepositoryInterface extends ArrayAccess
+{
+ /**
+ * Tells whether environment variable has been defined.
+ *
+ * @param string $name
+ *
+ * @return bool
+ */
+ public function has($name);
+
+ /**
+ * Get an environment variable.
+ *
+ * @param string $name
+ *
+ * @throws \InvalidArgumentException
+ *
+ * @return string|null
+ */
+ public function get($name);
+
+ /**
+ * Set an environment variable.
+ *
+ * @param string $name
+ * @param string|null $value
+ *
+ * @throws \InvalidArgumentException
+ *
+ * @return void
+ */
+ public function set($name, $value = null);
+
+ /**
+ * Clear an environment variable.
+ *
+ * @param string $name
+ *
+ * @throws \InvalidArgumentException
+ *
+ * @return void
+ */
+ public function clear($name);
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Result/Error.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Result/Error.php
new file mode 100755
index 0000000..085cec1
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Result/Error.php
@@ -0,0 +1,93 @@
+
+ */
+class Error extends Result
+{
+ /**
+ * @var E
+ */
+ private $value;
+
+ /**
+ * Internal constructor for an error value.
+ *
+ * @param E $value
+ *
+ * @return void
+ */
+ private function __construct($value)
+ {
+ $this->value = $value;
+ }
+
+ /**
+ * Create a new error value.
+ *
+ * @template F
+ *
+ * @param F $value
+ *
+ * @return \Dotenv\Result\Result
+ */
+ public static function create($value)
+ {
+ return new self($value);
+ }
+
+ /**
+ * Get the success option value.
+ *
+ * @return \PhpOption\Option
+ */
+ public function success()
+ {
+ return None::create();
+ }
+
+ /**
+ * Map over the success value.
+ *
+ * @template S
+ *
+ * @param callable(T): S $f
+ *
+ * @return \Dotenv\Result\Result
+ */
+ public function mapSuccess(callable $f)
+ {
+ return self::create($this->value);
+ }
+
+ /**
+ * Get the error option value.
+ *
+ * @return \PhpOption\Option
+ */
+ public function error()
+ {
+ return Some::create($this->value);
+ }
+
+ /**
+ * Map over the error value.
+ *
+ * @template F
+ *
+ * @param callable(E): F $f
+ *
+ * @return \Dotenv\Result\Result
+ */
+ public function mapError(callable $f)
+ {
+ return self::create($f($this->value));
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Result/Result.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Result/Result.php
new file mode 100755
index 0000000..b67ef46
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Result/Result.php
@@ -0,0 +1,70 @@
+
+ */
+ abstract public function success();
+
+ /**
+ * Get the success value, if possible.
+ *
+ * @throws \RuntimeException
+ *
+ * @return T
+ */
+ public function getSuccess()
+ {
+ return $this->success()->get();
+ }
+
+ /**
+ * Map over the success value.
+ *
+ * @template S
+ *
+ * @param callable(T): S $f
+ *
+ * @return \Dotenv\Result\Result
+ */
+ abstract public function mapSuccess(callable $f);
+
+ /**
+ * Get the error option value.
+ *
+ * @return \PhpOption\Option
+ */
+ abstract public function error();
+
+ /**
+ * Get the error value, if possible.
+ *
+ * @throws \RuntimeException
+ *
+ * @return E
+ */
+ public function getError()
+ {
+ return $this->error()->get();
+ }
+
+ /**
+ * Map over the error value.
+ *
+ * @template F
+ *
+ * @param callable(E): F $f
+ *
+ * @return \Dotenv\Result\Result
+ */
+ abstract public function mapError(callable $f);
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Result/Success.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Result/Success.php
new file mode 100755
index 0000000..7499d9c
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Result/Success.php
@@ -0,0 +1,93 @@
+
+ */
+class Success extends Result
+{
+ /**
+ * @var T
+ */
+ private $value;
+
+ /**
+ * Internal constructor for a success value.
+ *
+ * @param T $value
+ *
+ * @return void
+ */
+ private function __construct($value)
+ {
+ $this->value = $value;
+ }
+
+ /**
+ * Create a new error value.
+ *
+ * @template S
+ *
+ * @param S $value
+ *
+ * @return \Dotenv\Result\Result
+ */
+ public static function create($value)
+ {
+ return new self($value);
+ }
+
+ /**
+ * Get the success option value.
+ *
+ * @return \PhpOption\Option
+ */
+ public function success()
+ {
+ return Some::create($this->value);
+ }
+
+ /**
+ * Map over the success value.
+ *
+ * @template S
+ *
+ * @param callable(T): S $f
+ *
+ * @return \Dotenv\Result\Result
+ */
+ public function mapSuccess(callable $f)
+ {
+ return self::create($f($this->value));
+ }
+
+ /**
+ * Get the error option value.
+ *
+ * @return \PhpOption\Option
+ */
+ public function error()
+ {
+ return None::create();
+ }
+
+ /**
+ * Map over the error value.
+ *
+ * @template F
+ *
+ * @param callable(E): F $f
+ *
+ * @return \Dotenv\Result\Result
+ */
+ public function mapError(callable $f)
+ {
+ return self::create($this->value);
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Store/File/Paths.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Store/File/Paths.php
new file mode 100755
index 0000000..2f4a279
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Store/File/Paths.php
@@ -0,0 +1,27 @@
+
+ */
+ public static function read(array $filePaths, $shortCircuit = true)
+ {
+ $output = [];
+
+ foreach ($filePaths as $filePath) {
+ $content = self::readFromFile($filePath);
+ if ($content->isDefined()) {
+ $output[$filePath] = $content->get();
+ if ($shortCircuit) {
+ break;
+ }
+ }
+ }
+
+ return $output;
+ }
+
+ /**
+ * Read the given file.
+ *
+ * @param string $filePath
+ *
+ * @return \PhpOption\Option
+ */
+ private static function readFromFile($filePath)
+ {
+ $content = @file_get_contents($filePath);
+
+ return Option::fromValue($content, false);
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Store/FileStore.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Store/FileStore.php
new file mode 100755
index 0000000..c0351b2
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Store/FileStore.php
@@ -0,0 +1,61 @@
+filePaths = $filePaths;
+ $this->shortCircuit = $shortCircuit;
+ }
+
+ /**
+ * Read the content of the environment file(s).
+ *
+ * @throws \Dotenv\Exception\InvalidPathException
+ *
+ * @return string
+ */
+ public function read()
+ {
+ if ($this->filePaths === []) {
+ throw new InvalidPathException('At least one environment file path must be provided.');
+ }
+
+ $contents = Reader::read($this->filePaths, $this->shortCircuit);
+
+ if ($contents) {
+ return implode("\n", $contents);
+ }
+
+ throw new InvalidPathException(
+ sprintf('Unable to read any of the environment file(s) at [%s].', implode(', ', $this->filePaths))
+ );
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php
new file mode 100755
index 0000000..421a10f
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Store/StoreBuilder.php
@@ -0,0 +1,102 @@
+paths = $paths;
+ $this->names = $names;
+ $this->shortCircuit = $shortCircuit;
+ }
+
+ /**
+ * Create a new store builder instance.
+ *
+ * @return \Dotenv\Store\StoreBuilder
+ */
+ public static function create()
+ {
+ return new self();
+ }
+
+ /**
+ * Creates a store builder with the given paths.
+ *
+ * @param string|string[] $paths
+ *
+ * @return \Dotenv\Store\StoreBuilder
+ */
+ public function withPaths($paths)
+ {
+ return new self((array) $paths, $this->names, $this->shortCircuit);
+ }
+
+ /**
+ * Creates a store builder with the given names.
+ *
+ * @param string|string[]|null $names
+ *
+ * @return \Dotenv\Store\StoreBuilder
+ */
+ public function withNames($names = null)
+ {
+ return new self($this->paths, $names === null ? null : (array) $names, $this->shortCircuit);
+ }
+
+ /**
+ * Creates a store builder with short circuit mode enabled.
+ *
+ * @return \Dotenv\Store\StoreBuilder
+ */
+ public function shortCircuit()
+ {
+ return new self($this->paths, $this->names, true);
+ }
+
+ /**
+ * Creates a new store instance.
+ *
+ * @return \Dotenv\Store\StoreInterface
+ */
+ public function make()
+ {
+ return new FileStore(
+ Paths::filePaths($this->paths, $this->names === null ? ['.env'] : $this->names),
+ $this->shortCircuit
+ );
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php b/modules/gateways/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php
new file mode 100755
index 0000000..2929c7d
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/phpdotenv/src/Store/StoreInterface.php
@@ -0,0 +1,15 @@
+repository = $repository;
+ $this->variables = $variables;
+
+ if ($required) {
+ $this->assertCallback(
+ function ($value) {
+ return $value !== null;
+ },
+ 'is missing'
+ );
+ }
+ }
+
+ /**
+ * Assert that each variable is not empty.
+ *
+ * @throws \Dotenv\Exception\ValidationException
+ *
+ * @return \Dotenv\Validator
+ */
+ public function notEmpty()
+ {
+ return $this->assertCallback(
+ function ($value) {
+ if ($value === null) {
+ return true;
+ }
+
+ return strlen(trim($value)) > 0;
+ },
+ 'is empty'
+ );
+ }
+
+ /**
+ * Assert that each specified variable is an integer.
+ *
+ * @throws \Dotenv\Exception\ValidationException
+ *
+ * @return \Dotenv\Validator
+ */
+ public function isInteger()
+ {
+ return $this->assertCallback(
+ function ($value) {
+ if ($value === null) {
+ return true;
+ }
+
+ return ctype_digit($value);
+ },
+ 'is not an integer'
+ );
+ }
+
+ /**
+ * Assert that each specified variable is a boolean.
+ *
+ * @throws \Dotenv\Exception\ValidationException
+ *
+ * @return \Dotenv\Validator
+ */
+ public function isBoolean()
+ {
+ return $this->assertCallback(
+ function ($value) {
+ if ($value === null) {
+ return true;
+ }
+
+ if ($value === '') {
+ return false;
+ }
+
+ return filter_var($value, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) !== null;
+ },
+ 'is not a boolean'
+ );
+ }
+
+ /**
+ * Assert that each variable is amongst the given choices.
+ *
+ * @param string[] $choices
+ *
+ * @throws \Dotenv\Exception\ValidationException
+ *
+ * @return \Dotenv\Validator
+ */
+ public function allowedValues(array $choices)
+ {
+ return $this->assertCallback(
+ function ($value) use ($choices) {
+ return in_array($value, $choices, true);
+ },
+ sprintf('is not one of [%s]', implode(', ', $choices))
+ );
+ }
+
+ /**
+ * Assert that each variable matches the given regular expression.
+ *
+ * @param string $regex
+ *
+ * @throws \Dotenv\Exception\ValidationException
+ *
+ * @return \Dotenv\Validator
+ */
+ public function allowedRegexValues($regex)
+ {
+ return $this->assertCallback(
+ function ($value) use ($regex) {
+ if ($value === null) {
+ return true;
+ }
+
+ return Regex::match($regex, $value)->success()->getOrElse(0) === 1;
+ },
+ sprintf('does not match "%s"', $regex)
+ );
+ }
+
+ /**
+ * Assert that the callback returns true for each variable.
+ *
+ * @param callable $callback
+ * @param string $message
+ *
+ * @throws \Dotenv\Exception\ValidationException
+ *
+ * @return \Dotenv\Validator
+ */
+ protected function assertCallback(callable $callback, $message = 'failed callback assertion')
+ {
+ $failing = [];
+
+ foreach ($this->variables as $variable) {
+ if ($callback($this->repository->get($variable)) === false) {
+ $failing[] = sprintf('%s %s', $variable, $message);
+ }
+ }
+
+ if (count($failing) > 0) {
+ throw new ValidationException(sprintf(
+ 'One or more environment variables failed assertions: %s.',
+ implode(', ', $failing)
+ ));
+ }
+
+ return $this;
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/valitron/.github/FUNDING.yml b/modules/gateways/vendor/vlucas/valitron/.github/FUNDING.yml
new file mode 100755
index 0000000..ce3de2d
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/.github/FUNDING.yml
@@ -0,0 +1 @@
+tidelift: "packagist/vlucas/valitron"
diff --git a/modules/gateways/vendor/vlucas/valitron/LICENSE.txt b/modules/gateways/vendor/vlucas/valitron/LICENSE.txt
new file mode 100755
index 0000000..a8f7e4c
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/LICENSE.txt
@@ -0,0 +1,32 @@
+The BSD 3-Clause License
+http://opensource.org/licenses/BSD-3-Clause
+
+Copyright (c) 2013, Vance Lucas
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+ * Redistributions of source code must retain the above copyright
+ notice,
+this list of conditions and the following disclaimer.
+ * Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+ * Neither the name of the Vance Lucas nor the names of its contributors
+may be used to endorse or promote products derived from this software
+without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
diff --git a/modules/gateways/vendor/vlucas/valitron/README.md b/modules/gateways/vendor/vlucas/valitron/README.md
new file mode 100755
index 0000000..30b538a
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/README.md
@@ -0,0 +1,1326 @@
+## Valitron: Easy Validation That Doesn't Suck
+
+Valitron is a simple, minimal and elegant stand-alone validation library
+with NO dependencies. Valitron uses simple, straightforward validation
+methods with a focus on readable and concise syntax. Valitron is the
+simple and pragmatic validation library you've been looking for.
+
+[![Build
+Status](https://travis-ci.org/vlucas/valitron.png?branch=master)](https://travis-ci.org/vlucas/valitron)
+[![Latest Stable Version](https://poser.pugx.org/vlucas/valitron/v/stable.png)](https://packagist.org/packages/vlucas/valitron)
+[![Total Downloads](https://poser.pugx.org/vlucas/valitron/downloads.png)](https://packagist.org/packages/vlucas/valitron)
+
+## Why Valitron?
+
+Valitron was created out of frustration with other validation libraries
+that have dependencies on large components from other frameworks like
+Symfony's HttpFoundation, pulling in a ton of extra files that aren't
+really needed for basic validation. It also has purposefully simple
+syntax used to run all validations in one call instead of individually
+validating each value by instantiating new classes and validating values
+one at a time like some other validation libraries require.
+
+In short, Valitron is everything you've been looking for in a validation
+library but haven't been able to find until now: simple pragmatic
+syntax, lightweight code that makes sense, extensible for custom
+callbacks and validations, well tested, and without dependencies. Let's
+get started.
+
+## Installation
+
+Valitron uses [Composer](http://getcomposer.org) to install and update:
+
+```
+curl -s http://getcomposer.org/installer | php
+php composer.phar require vlucas/valitron
+```
+
+The examples below use PHP 5.4 syntax, but Valitron works on PHP 5.3+.
+
+## Usage
+
+Usage is simple and straightforward. Just supply an array of data you
+wish to validate, add some rules, and then call `validate()`. If there
+are any errors, you can call `errors()` to get them.
+
+```php
+$v = new Valitron\Validator(array('name' => 'Chester Tester'));
+$v->rule('required', 'name');
+if($v->validate()) {
+ echo "Yay! We're all good!";
+} else {
+ // Errors
+ print_r($v->errors());
+}
+```
+
+Using this format, you can validate `$_POST` data directly and easily,
+and can even apply a rule like `required` to an array of fields:
+
+```php
+$v = new Valitron\Validator($_POST);
+$v->rule('required', ['name', 'email']);
+$v->rule('email', 'email');
+if($v->validate()) {
+ echo "Yay! We're all good!";
+} else {
+ // Errors
+ print_r($v->errors());
+}
+```
+
+You may use dot syntax to access members of multi-dimensional arrays,
+and an asterisk to validate each member of an array:
+
+```php
+$v = new Valitron\Validator(array('settings' => array(
+ array('threshold' => 50),
+ array('threshold' => 90)
+)));
+$v->rule('max', 'settings.*.threshold', 100);
+if($v->validate()) {
+ echo "Yay! We're all good!";
+} else {
+ // Errors
+ print_r($v->errors());
+}
+```
+
+Or use dot syntax to validate all members of a numeric array:
+
+```php
+$v = new Valitron\Validator(array('values' => array(50, 90)));
+$v->rule('max', 'values.*', 100);
+if($v->validate()) {
+ echo "Yay! We're all good!";
+} else {
+ // Errors
+ print_r($v->errors());
+}
+```
+
+You can also access nested values using dot notation:
+
+```php
+$v = new Valitron\Validator(array('user' => array('first_name' => 'Steve', 'last_name' => 'Smith', 'username' => 'Batman123')));
+$v->rule('alpha', 'user.first_name')->rule('alpha', 'user.last_name')->rule('alphaNum', 'user.username');
+if($v->validate()) {
+ echo "Yay! We're all good!";
+} else {
+ // Errors
+ print_r($v->errors());
+}
+```
+
+Setting language and language dir globally:
+
+```php
+
+// boot or config file
+
+use Valitron\Validator as V;
+
+V::langDir(__DIR__.'/validator_lang'); // always set langDir before lang.
+V::lang('ar');
+
+```
+
+You can conditionally require values using required conditional rules. In this example, for authentication, we're requiring either a token when both the email and password are not present, or a password when the email address is present.
+```php
+// this rule set would work for either data set...
+$data = ['email' => 'test@test.com', 'password' => 'mypassword'];
+// or...
+$data = ['token' => 'jashdjahs83rufh89y38h38h'];
+
+$v = new Valitron\Validator($data);
+$v->rules([
+ 'requiredWithout' => [
+ ['token', ['email', 'password'], true]
+ ],
+ 'requiredWith' => [
+ ['password', ['email']]
+ ],
+ 'email' => [
+ ['email']
+ ]
+ 'optional' => [
+ ['email']
+ ]
+]);
+$this->assertTrue($v->validate());
+```
+
+## Built-in Validation Rules
+
+ * `required` - Field is required
+ * `requiredWith` - Field is required if any other fields are present
+ * `requiredWithout` - Field is required if any other fields are NOT present
+ * `equals` - Field must match another field (email/password confirmation)
+ * `different` - Field must be different than another field
+ * `accepted` - Checkbox or Radio must be accepted (yes, on, 1, true)
+ * `numeric` - Must be numeric
+ * `integer` - Must be integer number
+ * `boolean` - Must be boolean
+ * `array` - Must be array
+ * `length` - String must be certain length
+ * `lengthBetween` - String must be between given lengths
+ * `lengthMin` - String must be greater than given length
+ * `lengthMax` - String must be less than given length
+ * `min` - Minimum
+ * `max` - Maximum
+ * `listContains` - Performs in_array check on given array values (the other way round than `in`)
+ * `in` - Performs in_array check on given array values
+ * `notIn` - Negation of `in` rule (not in array of values)
+ * `ip` - Valid IP address
+ * `ipv4` - Valid IP v4 address
+ * `ipv6` - Valid IP v6 address
+ * `email` - Valid email address
+ * `emailDNS` - Valid email address with active DNS record
+ * `url` - Valid URL
+ * `urlActive` - Valid URL with active DNS record
+ * `alpha` - Alphabetic characters only
+ * `alphaNum` - Alphabetic and numeric characters only
+ * `ascii` - ASCII characters only
+ * `slug` - URL slug characters (a-z, 0-9, -, \_)
+ * `regex` - Field matches given regex pattern
+ * `date` - Field is a valid date
+ * `dateFormat` - Field is a valid date in the given format
+ * `dateBefore` - Field is a valid date and is before the given date
+ * `dateAfter` - Field is a valid date and is after the given date
+ * `contains` - Field is a string and contains the given string
+ * `subset` - Field is an array or a scalar and all elements are contained in the given array
+ * `containsUnique` - Field is an array and contains unique values
+ * `creditCard` - Field is a valid credit card number
+ * `instanceOf` - Field contains an instance of the given class
+ * `optional` - Value does not need to be included in data array. If it is however, it must pass validation.
+ * `arrayHasKeys` - Field is an array and contains all specified keys.
+
+**NOTE**: If you are comparing floating-point numbers with min/max validators, you
+should install the [BCMath](http://us3.php.net/manual/en/book.bc.php)
+extension for greater accuracy and reliability. The extension is not required
+for Valitron to work, but Valitron will use it if available, and it is highly
+recommended.
+
+## required fields usage
+the `required` rule checks if a field exists in the data array, and is not null or an empty string.
+```php
+$v->rule('required', 'field_name');
+```
+
+Using an extra parameter, you can make this rule more flexible, and only check if the field exists in the data array.
+```php
+$v->rule('required', 'field_name', true);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'spiderman', 'password' => 'Gr33nG0Blin', 'required_but_null' => null]);
+$v->rules([
+ 'required' => [
+ ['username'],
+ ['password'],
+ ['required_but_null', true] // boolean flag allows empty value so long as the field name is set on the data array
+ ]
+]);
+$v->validate();
+```
+
+## requiredWith fields usage
+The `requiredWith` rule checks that the field is required, not null, and not the empty string, if any other fields are present, not null, and not the empty string.
+```php
+// password field will be required when the username field is provided and not empty
+$v->rule('requiredWith', 'password', 'username');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'spiderman', 'password' => 'Gr33nG0Blin']);
+$v->rules([
+ 'requiredWith' => [
+ ['password', 'username']
+ ]
+]);
+$v->validate();
+```
+
+*Note* You can provide multiple values as an array. In this case if ANY of the fields are present the field will be required.
+```php
+// in this case the password field will be required if the username or email fields are present
+$v->rule('requiredWith', 'password', ['username', 'email']);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'spiderman', 'password' => 'Gr33nG0Blin']);
+$v->rules([
+ 'requiredWith' => [
+ ['password', ['username', 'email']]
+ ]
+]);
+$v->validate();
+```
+
+### Strict flag
+The strict flag will change the `requiredWith` rule to `requiredWithAll` which will require the field only if ALL of the other fields are present, not null, and not the empty string.
+```php
+// in this example the suffix field is required only when both the first_name and last_name are provided
+$v->rule('requiredWith', 'suffix', ['first_name', 'last_name'], true);
+```
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['first_name' => 'steve', 'last_name' => 'holt', 'suffix' => 'Mr']);
+$v->rules([
+ 'requiredWith' => [
+ ['suffix', ['first_name', 'last_name'], true]
+ ]
+]);
+$v->validate();
+```
+
+Likewise, in this case `validate()` would still return true, as the suffix field would not be required in strict mode, as not all of the fields are provided.
+```php
+$v = new Valitron\Validator(['first_name' => 'steve']);
+$v->rules([
+ 'requiredWith' => [
+ ['suffix', ['first_name', 'last_name'], true]
+ ]
+]);
+$v->validate();
+```
+
+## requiredWithout fields usage
+The `requiredWithout` rule checks that the field is required, not null, and not the empty string, if any other fields are NOT present.
+```php
+// this rule will require the username field when the first_name is not present
+$v->rule('requiredWithout', 'username', 'first_name')
+```
+
+Alternate syntax.
+```php
+// this will return true, as the username is provided when the first_name is not provided
+$v = new Valitron\Validator(['username' => 'spiderman']);
+$v->rules([
+ 'requiredWithout' => [
+ ['username', 'first_name']
+ ]
+]);
+$v->validate();
+```
+
+*Note* You can provide multiple values as an array. In this case if ANY of the fields are NOT present the field will be required.
+```php
+// in this case the username field will be required if either the first_name or last_name fields are not present
+$v->rule('requiredWithout', 'username', ['first_name', 'last_name']);
+```
+
+Alternate syntax.
+```php
+// this passes validation because although the last_name field is not present, the username is provided
+$v = new Valitron\Validator(['username' => 'spiderman', 'first_name' => 'Peter']);
+$v->rules([
+ 'requiredWithout' => [
+ ['username', ['first_name', 'last_name']]
+ ]
+]);
+$v->validate();
+```
+
+### Strict flag
+The strict flag will change the `requiredWithout` rule to `requiredWithoutAll` which will require the field only if ALL of the other fields are not present.
+```php
+// in this example the username field is required only when both the first_name and last_name are not provided
+$v->rule('requiredWithout', 'username', ['first_name', 'last_name'], true);
+```
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'BatMan']);
+$v->rules([
+ 'requiredWithout' => [
+ ['username', ['first_name', 'last_name'], true]
+ ]
+]);
+$v->validate();
+```
+
+Likewise, in this case `validate()` would still return true, as the username field would not be required in strict mode, as all of the fields are provided.
+```php
+$v = new Valitron\Validator(['first_name' => 'steve', 'last_name' => 'holt']);
+$v->rules([
+ 'requiredWithout' => [
+ ['suffix', ['first_name', 'last_name'], true]
+ ]
+]);
+$v->validate();
+```
+
+## equals fields usage
+The `equals` rule checks if two fields are equals in the data array, and that the second field is not null.
+```php
+$v->rule('equals', 'password', 'confirmPassword');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['password' => 'youshouldnotseethis', 'confirmPassword' => 'youshouldnotseethis']);
+$v->rules([
+ 'equals' => [
+ ['password', 'confirmPassword']
+ ]
+]);
+$v->validate();
+```
+
+## different fields usage
+The `different` rule checks if two fields are not the same, or different, in the data array and that the second field is not null.
+```php
+$v->rule('different', 'username', 'password');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'spiderman', 'password' => 'Gr33nG0Blin']);
+$v->rules([
+ 'different' => [
+ ['username', 'password']
+ ]
+]);
+$v->validate();
+```
+
+## accepted fields usage
+The `accepted` rule checks if the field is either 'yes', 'on', 1, or true.
+```php
+$v->rule('accepted', 'remember_me');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['remember_me' => true]);
+$v->rules([
+ 'accepted' => [
+ ['remember_me']
+ ]
+]);
+$v->validate();
+```
+
+## numeric fields usage
+The `numeric` rule checks if the field is number. This is analogous to php's is_numeric() function.
+```php
+$v->rule('numeric', 'amount');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['amount' => 3.14]);
+$v->rules([
+ 'numeric' => [
+ ['amount']
+ ]
+]);
+$v->validate();
+```
+
+## integer fields usage
+The `integer` rule checks if the field is an integer number.
+```php
+$v->rule('integer', 'age');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['age' => '27']);
+$v->rules([
+ 'integer' => [
+ ['age']
+ ]
+]);
+$v->validate();
+```
+
+*Note* the optional boolean flag for strict mode will allow for integers to be supplied as negative values. So the following rule would evaluate to true:
+```php
+$v = new Valitron\Validator(['age' => '-27']);
+$v->rules([
+ 'integer' => [
+ ['age', true]
+ ]
+]);
+$v->validate();
+```
+Whereas the same for a positive (+) value would evaluate to false, as the + in this case is redundant:
+```php
+$v = new Valitron\Validator(['age' => '+27']);
+$v->rules([
+ 'integer' => [
+ ['age', true]
+ ]
+]);
+$v->validate();
+```
+
+## boolean fields usage
+The `boolean` rule checks if the field is a boolean. This is analogous to php's is_bool() function.
+```php
+$v->rule('boolean', 'remember_me');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['remember_me' => true]);
+$v->rules([
+ 'boolean' => [
+ ['remember_me']
+ ]
+]);
+$v->validate();
+```
+
+## array fields usage
+The `array` rule checks if the field is an array. This is analogous to php's is_array() function.
+```php
+$v->rule('array', 'user_notifications');
+```
+
+Alternate Syntax.
+```php
+$v = new Valitron\Validator(['user_notifications' => ['bulletin_notifications' => true, 'marketing_notifications' => false, 'message_notification' => true]]);
+$v->rules([
+ 'array' => [
+ ['user_notifications']
+ ]
+]);
+$v->validate();
+```
+
+## length fields usage
+The `length` rule checks if the field is exactly a given length and that the field is a valid string.
+```php
+$v->rule('length', 'username', 10);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'bobburgers']);
+$v->rules([
+ 'length' => [
+ ['username', 10]
+ ]
+]);
+$v->validate();
+```
+
+## lengthBetween fields usage
+The `lengthBetween` rule checks if the field is between a given length tange and that the field is a valid string.
+```php
+$v->rule('lengthBetween', 'username', 1, 10);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'bobburgers']);
+$v->rules([
+ 'lengthBetween' => [
+ ['username', 1, 10]
+ ]
+]);
+$v->validate();
+```
+
+## lengthMin fields usage
+The `lengthMin` rule checks if the field is at least a given length and that the field is a valid string.
+```php
+$v->rule('lengthMin', 'username', 5);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'martha']);
+$v->rules([
+ 'lengthMin' => [
+ ['username', 5]
+ ]
+]);
+$v->validate();
+```
+
+## lengthMax fields usage
+The `lengthMax` rule checks if the field is at most a given length and that the field is a valid string.
+```php
+$v->rule('lengthMax', 'username', 10);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'bruins91']);
+$v->rules([
+ 'lengthMax' => [
+ ['username', 10]
+ ]
+]);
+$v->validate();
+```
+
+## min fields usage
+The `min` rule checks if the field is at least a given value and that the provided value is numeric.
+```php
+$v->rule('min', 'age', 18);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['age' => 28]);
+$v->rules([
+ 'min' => [
+ ['age', 18]
+ ]
+]);
+$v->validate();
+```
+
+## max fields usage
+The `max` rule checks if the field is at most a given value and that the provided value is numeric.
+```php
+$v->rule('max', 'age', 12);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['age' => 10]);
+$v->rules([
+ 'max' => [
+ ['age', 12]
+ ]
+]);
+$v->validate();
+```
+
+## listContains fields usage
+The `listContains` rule checks that the field is present in a given array of values.
+```php
+$v->rule('listContains', 'color', 'yellow');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['color' => ['blue', 'green', 'red', 'yellow']]);
+$v->rules([
+ 'listContains' => [
+ ['color', 'yellow']
+ ]
+]);
+$v->validate();
+```
+
+## in fields usage
+The `in` rule checks that the field is present in a given array of values.
+```php
+$v->rule('in', 'color', ['blue', 'green', 'red', 'purple']);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['color' => 'purple']);
+$v->rules([
+ 'in' => [
+ ['color', ['blue', 'green', 'red', 'purple']]
+ ]
+]);
+$v->validate();
+```
+
+## notIn fields usage
+The `notIn` rule checks that the field is NOT present in a given array of values.
+```php
+$v->rule('notIn', 'color', ['blue', 'green', 'red', 'yellow']);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['color' => 'purple']);
+$v->rules([
+ 'notIn' => [
+ ['color', ['blue', 'green', 'red', 'yellow']]
+ ]
+]);
+$v->validate();
+```
+
+## ip fields usage
+The `ip` rule checks that the field is a valid ip address. This includes IPv4, IPv6, private, and reserved ranges.
+```php
+$v->rule('ip', 'user_ip');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['user_ip' => '127.0.0.1']);
+$v->rules([
+ 'ip' => [
+ ['user_ip']
+ ]
+]);
+$v->validate();
+```
+
+## ipv4 fields usage
+The `ipv4` rule checks that the field is a valid IPv4 address.
+```php
+$v->rule('ipv4', 'user_ip');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['user_ip' => '127.0.0.1']);
+$v->rules([
+ 'ipv4' => [
+ ['user_ip']
+ ]
+]);
+$v->validate();
+```
+
+## ipv6 fields usage
+The `ipv6` rule checks that the field is a valid IPv6 address.
+```php
+$v->rule('ipv6', 'user_ip');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['user_ip' => '0:0:0:0:0:0:0:1']);
+$v->rules([
+ 'ipv6' => [
+ ['user_ip']
+ ]
+]);
+$v->validate();
+```
+
+## email fields usage
+The `email` rule checks that the field is a valid email address.
+```php
+$v->rule('email', 'user_email');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['user_email' => 'someone@example.com']);
+$v->rules([
+ 'email' => [
+ ['user_email']
+ ]
+]);
+$v->validate();
+```
+
+## emailDNS fields usage
+The `emailDNS` rule validates the field is a valid email address with an active DNS record or any type.
+```php
+$v->rule('emailDNS', 'user_email');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['user_email' => 'some_fake_email_address@gmail.com']);
+$v->rules([
+ 'emailDNS' => [
+ ['user_email']
+ ]
+]);
+$v->validate();
+```
+
+## url fields usage
+The `url` rule checks the field is a valid url.
+```php
+$v->rule('url', 'website');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['website' => 'https://example.com/contact']);
+$v->rules([
+ 'url' => [
+ ['website']
+ ]
+]);
+$v->validate();
+```
+
+## urlActive fields usage
+The `urlActive` rule checks the field is a valid url with an active A, AAAA, or CNAME record.
+```php
+$v->rule('urlActive', 'website');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['website' => 'https://example.com/contact']);
+$v->rules([
+ 'urlActive' => [
+ ['website']
+ ]
+]);
+$v->validate();
+```
+
+## alpha fields usage
+The `alpha` rule checks the field is alphabetic characters only.
+```php
+$v->rule('alpha', 'username');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'batman']);
+$v->rules([
+ 'alpha' => [
+ ['username']
+ ]
+]);
+$v->validate();
+```
+
+## alphaNum fields usage
+The `alphaNum` rule checks the field contains only alphabetic or numeric characters.
+```php
+$v->rule('alphaNum', 'username');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'batman123']);
+$v->rules([
+ 'alphaNum' => [
+ ['username']
+ ]
+]);
+$v->validate();
+```
+
+## ascii fields usage
+The `ascii` rule checks the field contains only characters in the ascii character set.
+```php
+$v->rule('ascii', 'username');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'batman123']);
+$v->rules([
+ 'ascii' => [
+ ['username']
+ ]
+]);
+$v->validate();
+```
+
+## slug fields usage
+The `slug` rule checks that the field only contains URL slug characters (a-z, 0-9, -, _).
+```php
+$v->rule('slug', 'username');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'L337-H4ckZ0rz_123']);
+$v->rules([
+ 'slug' => [
+ ['username']
+ ]
+]);
+$v->validate();
+```
+
+## regex fields usage
+The `regex` rule ensures the field matches a given regex pattern.
+(This regex checks the string is alpha numeric between 5-10 characters).
+```php
+$v->rule('regex', 'username', '/^[a-zA-Z0-9]{5,10}$/');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'Batman123']);
+$v->rules([
+ 'regex' => [
+ ['username', '/^[a-zA-Z0-9]{5,10}$/']
+ ]
+]);
+$v->validate();
+```
+
+## date fields usage
+The `date` rule checks if the supplied field is a valid \DateTime object or if the string can be converted to a unix timestamp via strtotime().
+```php
+$v->rule('date', 'created_at');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['created_at' => '2018-10-13']);
+$v->rules([
+ 'date' => [
+ ['created_at']
+ ]
+]);
+$v->validate();
+```
+
+## dateFormat fields usage
+The `dateFormat` rule checks that the supplied field is a valid date in a specified date format.
+```php
+$v->rule('dateFormat', 'created_at', 'Y-m-d');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['created_at' => '2018-10-13']);
+$v->rules([
+ 'dateFormat' => [
+ ['created_at', 'Y-m-d']
+ ]
+]);
+$v->validate();
+```
+
+## dateBefore fields usage
+The `dateBefore` rule checks that the supplied field is a valid date before a specified date.
+```php
+$v->rule('dateBefore', 'created_at', '2018-10-13');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['created_at' => '2018-09-01']);
+$v->rules([
+ 'dateBefore' => [
+ ['created_at', '2018-10-13']
+ ]
+]);
+$v->validate();
+```
+
+## dateAfter fields usage
+The `dateAfter` rule checks that the supplied field is a valid date after a specified date.
+```php
+$v->rule('dateAfter', 'created_at', '2018-10-13');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['created_at' => '2018-09-01']);
+$v->rules([
+ 'dateAfter' => [
+ ['created_at', '2018-01-01']
+ ]
+]);
+$v->validate();
+```
+
+## contains fields usage
+The `contains` rule checks that a given string exists within the field and checks that the field and the search value are both valid strings.
+```php
+$v->rule('contains', 'username', 'man');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['username' => 'Batman123']);
+$v->rules([
+ 'contains' => [
+ ['username', 'man']
+ ]
+]);
+$v->validate();
+```
+
+*Note* You can use the optional strict flag to ensure a case-sensitive match.
+The following example will return true:
+```php
+$v = new Valitron\Validator(['username' => 'Batman123']);
+$v->rules([
+ 'contains' => [
+ ['username', 'man']
+ ]
+]);
+$v->validate();
+```
+Whereas, this would return false, as the M in the search string is not uppercase in the provided value:
+```php
+$v = new Valitron\Validator(['username' => 'Batman123']);
+$v->rules([
+ 'contains' => [
+ ['username', 'Man', true]
+ ]
+]);
+$v->validate();
+```
+
+## subset fields usage
+The `subset` rule checks that the field is either a scalar or array field and that all of it's values are contained within a given set of values.
+```php
+$v->rule('subset', 'colors', ['green', 'blue', 'orange']);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['colors' => ['green', 'blue']]);
+$v->rules([
+ 'subset' => [
+ ['colors', ['orange', 'green', 'blue', 'red']]
+ ]
+]);
+$v->validate();
+```
+This example would return false, as the provided color, purple, does not exist in the array of accepted values we're providing.
+```php
+$v = new Valitron\Validator(['colors' => ['purple', 'blue']]);
+$v->rules([
+ 'subset' => [
+ ['colors', ['orange', 'green', 'blue', 'red']]
+ ]
+]);
+$v->validate();
+```
+
+## containsUnique fields usage
+The `containsUnique` rule checks that the provided field is an array and that all values contained within are unique, i.e. no duplicate values in the array.
+```php
+$v->rule('containsUnique', 'colors');
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['colors' => ['purple', 'blue']]);
+$v->rules([
+ 'containsUnique' => [
+ ['colors']
+ ]
+]);
+$v->validate();
+```
+This example would return false, as the values in the provided array are duplicates.
+```php
+$v = new Valitron\Validator(['colors' => ['purple', 'purple']]);
+$v->rules([
+ 'containsUnique' => [
+ ['colors']
+ ]
+]);
+$v->validate();
+```
+
+## Credit Card Validation usage
+
+Credit card validation currently allows you to validate a Visa `visa`,
+Mastercard `mastercard`, Dinersclub `dinersclub`, American Express `amex`
+or Discover `discover`
+
+This will check the credit card against each card type
+
+```php
+$v->rule('creditCard', 'credit_card');
+```
+
+To optionally filter card types, add the slug to an array as the next parameter:
+
+```php
+$v->rule('creditCard', 'credit_card', ['visa', 'mastercard']);
+```
+
+If you only want to validate one type of card, put it as a string:
+
+```php
+$v->rule('creditCard', 'credit_card', 'visa');
+```
+
+If the card type information is coming from the client, you might also want to
+still specify an array of valid card types:
+
+```php
+$cardType = 'amex';
+$v->rule('creditCard', 'credit_card', $cardType, ['visa', 'mastercard']);
+$v->validate(); // false
+```
+
+## instanceOf fields usage
+The `instanceOf` rule checks that the field is an instance of a given class.
+```php
+$v->rule('instanceOf', 'date', \DateTime);
+```
+
+Alternate syntax.
+```php
+$v = new Valitron\Validator(['date' => new \DateTime()]);
+$v->rules([
+ 'instanceOf' => [
+ ['date', 'DateTime']
+ ]
+]);
+$v->validate();
+```
+*Note* You can also compare the value against a given object as opposed to the string class name.
+This example would also return true:
+```php
+$v = new Valitron\Validator(['date' => new \DateTime()]);
+$existingDateObject = new \DateTime();
+$v->rules([
+ 'instanceOf' => [
+ ['date', $existingDateObject]
+ ]
+]);
+$v->validate();
+```
+
+## optional fields usage
+The `optional` rule ensures that if the field is present in the data set that it passes all validation rules.
+```php
+$v->rule('optional', 'username');
+```
+
+Alternate syntax.
+This example would return true either when the 'username' field is not present or in the case where the username is only alphabetic characters.
+```php
+$v = new Valitron\Validator(['username' => 'batman']);
+$v->rules([
+ 'alpha' => [
+ ['username']
+ ],
+ 'optional' => [
+ ['username']
+ ]
+]);
+$v->validate();
+```
+This example would return false, as although the field is optional, since it is provided it must pass all the validation rules, which in this case it does not.
+```php
+$v = new Valitron\Validator(['username' => 'batman123']);
+$v->rules([
+ 'alpha' => [
+ ['username']
+ ],
+ 'optional' => [
+ ['username']
+ ]
+]);
+$v->validate();
+```
+
+## arrayHasKeys fields usage
+
+The `arrayHasKeys` rule ensures that the field is an array and that it contains all the specified keys.
+Returns false if the field is not an array or if no required keys are specified or if some key is missing.
+
+```php
+$v = new Valitron\Validator([
+ 'address' => [
+ 'name' => 'Jane Doe',
+ 'street' => 'Doe Square',
+ 'city' => 'Doe D.C.'
+ ]
+]);
+$v->rule(['arrayHasKeys', 'address', ['name', 'street', 'city']);
+$v->validate();
+```
+
+## Adding Custom Validation Rules
+
+To add your own validation rule, use the `addRule` method with a rule
+name, a custom callback or closure, and a error message to display in
+case of an error. The callback provided should return boolean true or
+false.
+
+```php
+Valitron\Validator::addRule('alwaysFail', function($field, $value, array $params, array $fields) {
+ return false;
+}, 'Everything you do is wrong. You fail.');
+```
+
+You can also use one-off rules that are only valid for the specified
+fields.
+
+```php
+$v = new Valitron\Validator(array("foo" => "bar"));
+$v->rule(function($field, $value, $params, $fields) {
+ return true;
+}, "foo")->message("{field} failed...");
+```
+
+This is useful because such rules can have access to variables
+defined in the scope where the `Validator` lives. The Closure's
+signature is identical to `Validator::addRule` callback's
+signature.
+
+If you wish to add your own rules that are not static (i.e.,
+your rule is not static and available to call `Validator`
+instances), you need to use `Validator::addInstanceRule`.
+This rule will take the same parameters as
+`Validator::addRule` but it has to be called on a `Validator`
+instance.
+
+## Chaining rules
+
+You can chain multiple rules together using the following syntax.
+```php
+$v = new Valitron\Validator(['email_address' => 'test@test.com']);
+$v->rule('required', 'email_address')->rule('email', 'email_address');
+$v->validate();
+```
+
+## Alternate syntax for adding rules
+
+As the number of rules grows, you may prefer the alternate syntax
+for defining multiple rules at once.
+
+```php
+$rules = [
+ 'required' => 'foo',
+ 'accepted' => 'bar',
+ 'integer' => 'bar'
+];
+
+$v = new Valitron\Validator(array('foo' => 'bar', 'bar' => 1));
+$v->rules($rules);
+$v->validate();
+```
+
+If your rule requires multiple parameters or a single parameter
+more complex than a string, you need to wrap the rule in an array.
+
+```php
+$rules = [
+ 'required' => [
+ ['foo'],
+ ['bar']
+ ],
+ 'length' => [
+ ['foo', 3]
+ ]
+];
+```
+You can also specify multiple rules for each rule type.
+
+```php
+$rules = [
+ 'length' => [
+ ['foo', 5],
+ ['bar', 5]
+ ]
+];
+```
+
+Putting these techniques together, you can create a complete
+rule definition in a relatively compact data structure.
+
+You can continue to add individual rules with the `rule` method
+even after specifying a rule definition via an array. This is
+especially useful if you are defining custom validation rules.
+
+```php
+$rules = [
+ 'required' => 'foo',
+ 'accepted' => 'bar',
+ 'integer' => 'bar'
+];
+
+$v = new Valitron\Validator(array('foo' => 'bar', 'bar' => 1));
+$v->rules($rules);
+$v->rule('min', 'bar', 0);
+$v->validate();
+```
+
+You can also add rules on a per-field basis:
+```php
+$rules = [
+ 'required',
+ ['lengthMin', 4]
+];
+
+$v = new Valitron\Validator(array('foo' => 'bar'));
+$v->mapFieldRules('foo', $rules);
+$v->validate();
+```
+
+Or for multiple fields at once:
+
+```php
+$rules = [
+ 'foo' => ['required', 'integer'],
+ 'bar'=>['email', ['lengthMin', 4]]
+];
+
+$v = new Valitron\Validator(array('foo' => 'bar', 'bar' => 'mail@example.com));
+$v->mapFieldsRules($rules);
+$v->validate();
+```
+
+## Adding field label to messages
+
+You can do this in two different ways, you can add a individual label to a rule or an array of all labels for the rules.
+
+To add individual label to rule you simply add the `label` method after the rule.
+
+```php
+$v = new Valitron\Validator(array());
+$v->rule('required', 'name')->message('{field} is required')->label('Name');
+$v->validate();
+```
+
+There is a edge case to this method, you wouldn't be able to use a array of field names in the rule definition, so one rule per field. So this wouldn't work:
+
+```php
+$v = new Valitron\Validator(array());
+$v->rule('required', array('name', 'email'))->message('{field} is required')->label('Name');
+$v->validate();
+```
+
+However we can use a array of labels to solve this issue by simply adding the `labels` method instead:
+
+```php
+$v = new Valitron\Validator(array());
+$v->rule('required', array('name', 'email'))->message('{field} is required');
+$v->labels(array(
+ 'name' => 'Name',
+ 'email' => 'Email address'
+));
+$v->validate();
+```
+
+This introduces a new set of tags to your error language file which looks like `{field}`, if you are using a rule like `equals` you can access the second value in the language file by incrementing the field with a value like `{field1}`.
+
+
+## Re-use of validation rules
+
+You can re-use your validation rules to quickly validate different data with the same rules by using the withData method:
+
+```php
+$v = new Valitron\Validator(array());
+$v->rule('required', 'name')->message('{field} is required');
+$v->validate(); //false
+
+$v2 = $v->withData(array('name'=>'example'));
+$v2->validate(); //true
+```
+
+## Running Tests
+
+The test suite depends on the Composer autoloader to load and run the
+Valitron files. Please ensure you have downloaded and installed Composer
+before running the tests:
+
+1. Download Composer `curl -s http://getcomposer.org/installer | php`
+2. Run 'install' `php composer.phar install`
+3. Run the tests `phpunit`
+
+## Contributing
+
+1. Fork it
+2. Create your feature branch (`git checkout -b my-new-feature`)
+3. Make your changes
+4. Run the tests, adding new ones for your own code if necessary (`phpunit`)
+5. Commit your changes (`git commit -am 'Added some feature'`)
+6. Push to the branch (`git push origin my-new-feature`)
+7. Create new Pull Request
+8. Pat yourself on the back for being so awesome
diff --git a/modules/gateways/vendor/vlucas/valitron/composer.json b/modules/gateways/vendor/vlucas/valitron/composer.json
new file mode 100755
index 0000000..43a760a
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/composer.json
@@ -0,0 +1,37 @@
+{
+ "name": "vlucas/valitron",
+ "type": "library",
+ "description": "Simple, elegant, stand-alone validation library with NO dependencies",
+ "keywords": ["validation", "validator", "valid"],
+ "homepage": "http://github.com/vlucas/valitron",
+ "license": "BSD-3-Clause",
+ "authors": [
+ {
+ "name": "Vance Lucas",
+ "email": "vance@vancelucas.com",
+ "homepage": "http://www.vancelucas.com"
+ }
+ ],
+ "require": {
+ "php": ">=5.3.2"
+ },
+ "require-dev": {
+ "phpunit/phpunit": "^4.8.35 || ^5.5 || ^6.5"
+ },
+ "suggest": {
+ "ext-mbstring": "It can support the multiple bytes string length."
+ },
+ "autoload": {
+ "psr-4": {
+ "Valitron\\": "src/Valitron"
+ }
+ },
+ "autoload-dev": {
+ "psr-4": {
+ "Valitron\\": "tests/Valitron"
+ }
+ },
+ "scripts": {
+ "test": "./vendor/bin/phpunit"
+ }
+}
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/ar.php b/modules/gateways/vendor/vlucas/valitron/lang/ar.php
new file mode 100755
index 0000000..10f4b55
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/ar.php
@@ -0,0 +1,29 @@
+ "مطلوب",
+ 'equals' => "يجب أن يكون مساوي لي '%s'",
+ 'different' => "يجب ان يكون غير '%s'",
+ 'accepted' => "يجب ان يكون نعم",
+ 'numeric' => "يجب ان يكون رقم",
+ 'integer' => "يجب ان يكون رقم (0-9)",
+ 'length' => "يجب ان يكون أطول من %d",
+ 'min' => "يجب ان يكون اعلي من %s",
+ 'max' => "يجب ان يكون اقل من %s",
+ 'in' => "الُمدخل يغير صحيح",
+ 'listContains' => "الُمدخل يغير صحيح",
+ 'notIn' => "الُمدخل يغير صحيح",
+ 'ip' => "رقم الإتصال غير صحيح",
+ 'email' => "البريد الألكتروني غير صحيح",
+ 'url' => "الرابط غير صحيح",
+ 'urlActive' => "يجب أن يكون نطاق فعال",
+ 'alpha' => "يجب أن يحتوي فقط علي a-z",
+ 'alphaNum' => "يجب ان يحتوي فقط a-z او ارقام 0-9",
+ 'slug' => "يجب ان يحتوي فقط علي a-z, و ارقام 0-9, شرطات و خط سفلي",
+ 'regex' => "خطا بالصيغة",
+ 'date' => "خطا بالتاريخ",
+ 'dateFormat' => "يجب ان يكون تاريخ بهذه الصيغة '%s'",
+ 'dateBefore' => "التاريخ يجب ان يكون قبل '%s'",
+ 'dateAfter' => "التاريخ يجب ان يكون بعد '%s'",
+ 'contains' => "يجب ان يحتوي %s"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/az.php b/modules/gateways/vendor/vlucas/valitron/lang/az.php
new file mode 100755
index 0000000..bd9989f
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/az.php
@@ -0,0 +1,35 @@
+ "mütləqdir",
+ 'equals' => "'%s' olmalıdır",
+ 'different' => "'%s'-dən fərqli olmalıdır",
+ 'accepted' => "Qeyd dilməlidir",
+ 'numeric' => "rəqəm olmalıdır",
+ 'integer' => "tam ədəd olmalıdır",
+ 'length' => "%d qədər uzunluğu olmalıdır",
+ 'min' => "minimum %s qədər olmalıdır",
+ 'max' => "maksimum %s qədər olmalıdır",
+ 'listContains' => "yalnış dəyər ehtiva edir",
+ 'in' => "yalnış dəyər ehtiva edir",
+ 'notIn' => "yalnış dəyər ehtiva edir",
+ 'ip' => "düzgün IP ünvanı deyil",
+ 'email' => "düzgün email ünvanı deyil",
+ 'url' => "URL deyil",
+ 'urlActive' => "aktiv domain olmalıdır",
+ 'alpha' => "ancaq latın hərfləri ehtiva etməlidir",
+ 'alphaNum' => "ancaq latın hərfləri və(və ya) rəqəmlər ehtiva etməlidir",
+ 'slug' => "ancaq latın hərfləri,rəqəmlər,tire və altdan xət ehtiva etməlidir",
+ 'regex' => "etiabrsız sinvollar ehtiva edir",
+ 'date' => "tarix deyil",
+ 'dateFormat' => "tarix formatı bu cür olmalıdır: %s",
+ 'dateBefore' => "tarix %s -dən əvvəl olmamalıdır",
+ 'dateAfter' => "tarix %s -dən sonra olmamalıdır",
+ 'contains' => "%s ehtiva etməlidir",
+ 'boolean' => "boolen olmalıdır",
+ 'lengthBetween' => "%d - %d sinvolları arası ehtiva etməlidir",
+ 'creditCard' => "kredir kart nömrəsi olmalıdır",
+ "lengthMin" => "%d -dən çox sinvol olmalıdır",
+ "lengthMax" => "%d -dən az sinvol olmalıdır",
+ "instanceOf" => "'%s' əvəzinə olmalıdır"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/bg.php b/modules/gateways/vendor/vlucas/valitron/lang/bg.php
new file mode 100755
index 0000000..6f573a6
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/bg.php
@@ -0,0 +1,35 @@
+ "е задължително",
+ 'equals' => "трябва да бъде същото като '%s'",
+ 'different' => "трябва да бъде различно от '%s'",
+ 'accepted' => "трабва да бъде прието",
+ 'numeric' => "трябва да бъде число",
+ 'integer' => "трябва да бъде цифра (0-9)",
+ 'length' => "трябва да бъде %d символа дълго",
+ 'min' => "трябвя да бъде поне %s",
+ 'max' => "трябва да бъде не повече от %s",
+ 'listContains' => "съдържа невалидна стойност",
+ 'in' => "съдържа невалидна стойност",
+ 'notIn' => "съдържа невалидна стойност",
+ 'ip' => "е невалиден IP адрес",
+ 'email' => "е невалиден имейл адрес",
+ 'url' => "е невалиден URL адрес",
+ 'urlActive' => "трябва да бъде активен домейн",
+ 'alpha' => "трябва да съдържа само букви a-z",
+ 'alphaNum' => "трябва да съдържа само букви a-z и/или цифри 0-9",
+ 'slug' => "трябва да съдържа само букви a-z, цифри 0-9, тирета и долни черти",
+ 'regex' => "съдържа невалидни символи",
+ 'date' => "е невалидна дата",
+ 'dateFormat' => "трябва да бъде дата с формат '%s'",
+ 'dateBefore' => "трябва да бъде дата преди '%s'",
+ 'dateAfter' => "трябва да бъде дата след '%s'",
+ 'contains' => "трябв да съдържа %s",
+ 'boolean' => "трябва да бъде истина или лъжа",
+ 'lengthBetween' => "трябва да бъде между %d и %d символа",
+ 'creditCard' => "трябва да бъде валиден номер на кредитна карта",
+ 'lengthMin' => "трябва да бъде поне %d символа дълго",
+ 'lengthMax' => "не трябва да надвишава %d символа",
+ 'instanceOf' => "трябва да бъде инстанция от '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/de.php b/modules/gateways/vendor/vlucas/valitron/lang/de.php
new file mode 100755
index 0000000..b1d4ac3
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/de.php
@@ -0,0 +1,34 @@
+ "ist erforderlich",
+ 'equals' => "muss identisch mit '%s' sein",
+ 'different' => "muss sich von '%s' unterscheiden",
+ 'accepted' => "muss markiert sein",
+ 'numeric' => "muss eine Zahl sein",
+ 'integer' => "muss eine ganze Zahl sein",
+ 'length' => "kann nicht länger als %d sein",
+ 'min' => "muss größer als %s sein",
+ 'max' => "muss kleiner als %s sein",
+ 'listContains' => "enthält einen ungültigen Wert",
+ 'in' => "enthält einen ungültigen Wert",
+ 'notIn' => "enthält einen ungültigen Wert",
+ 'ip' => "enthält keine gültige IP-Addresse",
+ 'email' => "enthält keine gültige E-Mail-Adresse",
+ 'url' => "enthält keine gültige URL",
+ 'urlActive' => "muss eine aktive Domain sein",
+ 'alpha' => "darf nur Buchstaben enthalten",
+ 'alphaNum' => "darf nur Buchstaben und Ganzzahlen enthalten",
+ 'slug' => "darf nur Buchstaben, Ganzzahlen, Schrägstriche und Grundstriche enthalten",
+ 'regex' => "enthält ungültige Zeichen",
+ 'date' => "enthält kein gültiges Datum",
+ 'dateFormat' => "benötigt ein Datum im Format '%s'",
+ 'dateBefore' => "benötigt ein Datum, das vor dem '%s' liegt",
+ 'dateAfter' => "benötigt ein Datum, das nach dem '%s' liegt",
+ 'contains' => "muss %s beinhalten",
+ 'boolean' => "muss ein Wahrheitswert sein",
+ 'lengthBetween' => "benötigt zwischen %d und %d Zeichen",
+ 'creditCard' => "muss eine gültige Kreditkartennummer sein",
+ "lengthMin" => "muss mindestens %d Zeichen enthalten",
+ "lengthMax" => "kann nicht mehr als %d Zeichen enthalten"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/el.php b/modules/gateways/vendor/vlucas/valitron/lang/el.php
new file mode 100755
index 0000000..04ce8d3
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/el.php
@@ -0,0 +1,35 @@
+ "είναι απαραίτητο",
+ 'equals' => "πρέπει να είναι ίδιο με '%s'",
+ 'different' => "πρέπει να διαφέρει από '%s'",
+ 'accepted' => "πρέπει να έχει αποδεχτεί",
+ 'numeric' => "πρέπει να είναι αριθμός",
+ 'integer' => "πρέπει να είναι ακέραιος αριθμός",
+ 'length' => "πρέπει να είναι μεγαλύτερο από %d",
+ 'min' => "πρέπει να είναι τουλάχιστον %s",
+ 'max' => "δεν πρέπει να είναι περισσότερο από %s",
+ 'listContains' => "περιέχει μη έγκυρη τιμή",
+ 'in' => "περιέχει μη έγκυρη τιμή",
+ 'notIn' => "περιέχει μη έγκυρη τιμή",
+ 'ip' => "δεν είναι έγκυρη διεύθυνση IP",
+ 'email' => "δεν είναι έγκυρη διεύθυνση email",
+ 'url' => "δεν είναι URL",
+ 'urlActive' => "πρέπει να είναι ενεργό domain",
+ 'alpha' => "πρέπει να περιέχει μόνο χαρακτήρες",
+ 'alphaNum' => "πρέπει να περιέχει μόνο χαρακτήρες και/ή αριθμούς",
+ 'slug' => "πρέπει να περιέχει μόνο χαρακτήρες, αριθμούς, παύλες και κάτω παύλες",
+ 'regex' => "περιέχει μη έγκυρους χαρακτήρες",
+ 'date' => "δεν είναι έγκυρη ημερομηνία",
+ 'dateFormat' => "πρέπει να είναι ημερομηνία της μορφής '%s'",
+ 'dateBefore' => "πρέπει να είναι ημερομηνία πριν από '%s'",
+ 'dateAfter' => "πρέπει να είναι ημερομηνία μετά από '%s'",
+ 'contains' => "πρέπει να περιέχει %s",
+ 'boolean' => "πρέπει να είναι boolean",
+ 'lengthBetween' => "πρέπει να είναι μεταξύ %d και %d χαρακτήρων",
+ 'creditCard' => "πρέπει να είναι ένα έγκυρο νούμερο πιστωτικής κάρτας",
+ "lengthMin" => "πρέπει να περιέχει περισσότερους από %d χαρακτήρες",
+ "lengthMax" => "πρέπει να περιέχει λιγότερους από %d χαρακτήρες",
+ "instanceOf" => "πρέπει να είναι αντικείμενο της '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/en.php b/modules/gateways/vendor/vlucas/valitron/lang/en.php
new file mode 100755
index 0000000..9e15e19
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/en.php
@@ -0,0 +1,42 @@
+ "is required",
+ 'equals' => "must be the same as '%s'",
+ 'different' => "must be different than '%s'",
+ 'accepted' => "must be accepted",
+ 'numeric' => "must be numeric",
+ 'integer' => "must be an integer",
+ 'length' => "must be %d characters long",
+ 'min' => "must be at least %s",
+ 'max' => "must be no more than %s",
+ 'listContains' => "contains invalid value",
+ 'in' => "contains invalid value",
+ 'notIn' => "contains invalid value",
+ 'ip' => "is not a valid IP address",
+ 'ipv4' => "is not a valid IPv4 address",
+ 'ipv6' => "is not a valid IPv6 address",
+ 'email' => "is not a valid email address",
+ 'url' => "is not a valid URL",
+ 'urlActive' => "must be an active domain",
+ 'alpha' => "must contain only letters a-z",
+ 'alphaNum' => "must contain only letters a-z and/or numbers 0-9",
+ 'slug' => "must contain only letters a-z, numbers 0-9, dashes and underscores",
+ 'regex' => "contains invalid characters",
+ 'date' => "is not a valid date",
+ 'dateFormat' => "must be date with format '%s'",
+ 'dateBefore' => "must be date before '%s'",
+ 'dateAfter' => "must be date after '%s'",
+ 'contains' => "must contain %s",
+ 'boolean' => "must be a boolean",
+ 'lengthBetween' => "must be between %d and %d characters",
+ 'creditCard' => "must be a valid credit card number",
+ 'lengthMin' => "must be at least %d characters long",
+ 'lengthMax' => "must not exceed %d characters",
+ 'instanceOf' => "must be an instance of '%s'",
+ 'containsUnique' => "must contain unique elements only",
+ 'requiredWith' => "is required",
+ 'requiredWithout'=> "is required",
+ 'subset' => "contains an item that is not in the list",
+ 'arrayHasKeys' => "does not contain all required keys",
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/es.php b/modules/gateways/vendor/vlucas/valitron/lang/es.php
new file mode 100755
index 0000000..2d4cdba
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/es.php
@@ -0,0 +1,37 @@
+ "es obligatorio",
+ 'equals' => "debe ser igual a '%s'",
+ 'different' => "debe ser diferente a '%s'",
+ 'accepted' => "debe ser aceptado",
+ 'numeric' => "debe ser numérico",
+ 'integer' => "debe ser un entero",
+ 'length' => "debe ser mas largo de %d",
+ 'min' => "debe ser mayor de %s",
+ 'max' => "debe ser menor de %s",
+ 'in' => "contiene un valor inválido",
+ 'notIn' => "contiene un valor inválido",
+ 'ip' => "no es una dirección IP",
+ 'email' => "no es un correo electrónico válido",
+ 'url' => "no es una URL",
+ 'urlActive' => "debe ser un dominio activo",
+ 'alpha' => "debe contener solo letras a-z",
+ 'alphaNum' => "debe contener solo letras a-z o números 0-9",
+ 'slug' => "debe contener solo letras a-z, números 0-9, barras y guiones bajos",
+ 'regex' => "contiene caracteres inválidos",
+ 'date' => "no es una fecha válida",
+ 'dateFormat' => "debe ser una fecha con formato '%s'",
+ 'dateBefore' => "debe ser una fecha antes de '%s'",
+ 'dateAfter' => "debe ser una fecha después de '%s'",
+ 'contains' => "debe contener %s",
+ 'boolean' => "debe ser booleano",
+ 'lengthBetween' => "debe tener entre %d y %d caracteres",
+ 'creditCard' => "debe ser un numero de tarjeta de crédito válido",
+ "lengthMin" => "debe tener al menos %d caracteres",
+ "lengthMax" => "debe tener menos de %d caracteres",
+ "instanceOf" => "debe ser una instancia de '%s'",
+ 'containsUnique' => "debe contener solo valores únicos",
+ 'subset' => "contiene un elemento que no está en la lista",
+ 'arrayHasKeys' => "no contiene todas las claves requeridas"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/fi.php b/modules/gateways/vendor/vlucas/valitron/lang/fi.php
new file mode 100755
index 0000000..b63f804
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/fi.php
@@ -0,0 +1,35 @@
+ "vaaditaan",
+ 'equals' => "ei ole sama kuin '%s'",
+ 'different' => "on sama kuin '%s'",
+ 'accepted' => "ei ole hyväksytty",
+ 'numeric' => "ei ole numeerinen",
+ 'integer' => "ei ole kokonaisluku",
+ 'length' => "on lyhyempi kuin %d",
+ 'min' => "ei ole vähintään %s",
+ 'max' => "ei ole enintään %s",
+ 'listContains' => "sisältää virheellisen arvon",
+ 'in' => "sisältää virheellisen arvon",
+ 'notIn' => "sisältää virheellisen arvon",
+ 'ip' => "ei ole oikeanmuotoinen IP-osoite",
+ 'email' => "ei ole oikeanmuotoinen sähköpostiosoite",
+ 'url' => "ei ole URL",
+ 'urlActive' => "ei ole aktiivinen verkkotunnus",
+ 'alpha' => "sisältää muita merkkejä kuin a-z",
+ 'alphaNum' => "sisältää muita merkkejä kuin a-z ja 0-9",
+ 'slug' => "sisältää muita merkkejä kuin a-z, 0-9, - ja _",
+ 'regex' => "sisältää virheellisiä merkkejä",
+ 'date' => "ei ole oikeanmuotoinen päivämäärä",
+ 'dateFormat' => "ei ole päivämäärä muotoa '%s'",
+ 'dateBefore' => "ei ole päivämäärä ennen '%s'",
+ 'dateAfter' => "ei ole päivämäärä '%s' jälkeen",
+ 'contains' => "ei sisällä merkkijonoa %s",
+ 'boolean' => "ei ole totuusarvo",
+ 'lengthBetween' => "ei ole %d-%d merkkiä pitkä",
+ 'creditCard' => "ei ole pätevä luottokortin numero",
+ "lengthMin" => "ei ole vähintään %d merkkiä pitkä",
+ "lengthMax" => "ei ole enintään %d merkkiä pitkä",
+ "instanceOf" => "ei ole luokan '%s' ilmentymä"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/fr.php b/modules/gateways/vendor/vlucas/valitron/lang/fr.php
new file mode 100755
index 0000000..cacdeb0
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/fr.php
@@ -0,0 +1,35 @@
+ "est obligatoire",
+ 'equals' => "doit être identique à '%s'",
+ 'different' => "doit être différent de '%s'",
+ 'accepted' => "doit être accepté",
+ 'numeric' => "doit être numérique",
+ 'integer' => "doit être un entier",
+ 'length' => "doit être plus long que %d",
+ 'min' => "doit être plus grand que %s",
+ 'max' => "doit être plus petit que %s",
+ 'listContains' => "contient une valeur non valide",
+ 'in' => "contient une valeur non valide",
+ 'notIn' => "contient une valeur non valide",
+ 'ip' => "n'est pas une adresse IP valide",
+ 'email' => "n'est pas une adresse email valide",
+ 'url' => "n'est pas une URL",
+ 'urlActive' => "doit être un domaine actif",
+ 'alpha' => "doit contenir uniquement les lettres a-z",
+ 'alphaNum' => "doit contenir uniquement des lettres de a-z et/ou des chiffres 0-9",
+ 'slug' => "doit contenir uniquement des lettres de a-z, des chiffres 0-9, des tirets et des traits soulignés",
+ 'regex' => "contient des caractères invalides",
+ 'date' => "n'est pas une date valide",
+ 'dateFormat' => "doit être une date avec le format '%s'",
+ 'dateBefore' => "doit être une date avant '%s'",
+ 'dateAfter' => "doit être une date après '%s'",
+ 'contains' => "doit contenir %s",
+ 'boolean' => "doit être un booléen",
+ 'lengthBetween' => "doit être entre %d et %d caractères",
+ 'creditCard' => "doit être un numéro de carte de crédit valide",
+ 'lengthMin' => "doit avoir au moins %d caractères",
+ 'lengthMax' => "ne doit pas dépasser %d caractères",
+ 'instanceOf' => "doit être une instance de '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/id.php b/modules/gateways/vendor/vlucas/valitron/lang/id.php
new file mode 100755
index 0000000..204d87c
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/id.php
@@ -0,0 +1,34 @@
+ "harus diisi",
+ 'equals' => "harus sama dengan '%s'",
+ 'different' => "harus berbeda dengan '%s'",
+ 'accepted' => "harus diterima (accepted)",
+ 'numeric' => "harus berupa nomor/angka",
+ 'integer' => "harus berupa nilai integer",
+ 'length' => "harus lebih panjang dari %d",
+ 'min' => "harus lebih besar dari %s",
+ 'max' => "harus kurang dari %s",
+ 'listContains' => "berisi nilai/value yang tidak valid",
+ 'in' => "berisi nilai/value yang tidak valid",
+ 'notIn' => "berisi nilai/value yang tidak valid",
+ 'ip' => "format alamat IP tidak benar",
+ 'email' => "format alamat email tidak benar",
+ 'url' => "bukan format URL yang benar",
+ 'urlActive' => "harus berupa domain aktif",
+ 'alpha' => "hanya boleh menggunakan huruf a-z",
+ 'alphaNum' => "hanya boleh menggunakan huruf a-z dan atau nomor 0-9",
+ 'slug' => "hanya boleh menggunakan huruf a-z, nomor 0-9, tanda minus (-), dan uderscore atau strip bawah (_)",
+ 'regex' => "berisi karakter yang tidak valid",
+ 'date' => "format tanggal tidak valid",
+ 'dateFormat' => "harus berupa tanggal dengan format '%s'",
+ 'dateBefore' => "tanggal harus sebelum tanggal '%s'",
+ 'dateAfter' => "tanggal harus sesudah tanggal '%s'",
+ 'contains' => "harus berisi %s",
+ 'boolean' => "harus berupa nilai boolean",
+ 'lengthBetween' => "harus diantara karakter %d dan %d",
+ 'creditCard' => "nomor kartu kredit harus valid",
+ "lengthMin" => "minimal berisi %d karakter",
+ "lengthMax" => "maksimal berisi %d karakter"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/it.php b/modules/gateways/vendor/vlucas/valitron/lang/it.php
new file mode 100755
index 0000000..7270309
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/it.php
@@ -0,0 +1,35 @@
+ "è obbligatorio",
+ 'equals' => "deve essere uguale a '%s'",
+ 'different' => "deve essere differente da '%s'",
+ 'accepted' => "deve essere accettato",
+ 'numeric' => "deve essere numerico",
+ 'integer' => "deve essere un intero",
+ 'length' => "deve avere una lunghezza di %d",
+ 'min' => "deve essere superiore a %s",
+ 'max' => "deve essere inferiore a %s",
+ 'listContains' => "contiene un valore non valido",
+ 'in' => "contiene un valore non valido",
+ 'notIn' => "contiene un valore non valido",
+ 'ip' => "non è un indirizzo IP valido",
+ 'email' => "non è un indirizzo email valido",
+ 'url' => "non è una URL",
+ 'urlActive' => "deve essere un dominio attivo",
+ 'alpha' => "deve contenere solamente lettere (a-z)",
+ 'alphaNum' => "deve contenere solamente lettere (a-z) e/o numeri (0-9)",
+ 'slug' => "deve contenere solamente lettere (a-z), numeri (0-9), trattini (-) e trattini bassi (_)",
+ 'regex' => "contiene caratteri non validi",
+ 'date' => "non è una data valida",
+ 'dateFormat' => "deve essere una data nel formato '%s'",
+ 'dateBefore' => "deve essere una data precedente al '%s'",
+ 'dateAfter' => "deve essere una data successiva al '%s'",
+ 'contains' => "deve contenere %s",
+ 'boolean' => "deve essere un booleano",
+ 'lengthBetween' => "deve essere compreso tra %d e %d caratteri",
+ 'creditCard' => "deve essere un numero di carta di credito valido",
+ 'lengthMin' => "deve essere lungo almeno %d caratteri",
+ 'lengthMax' => "non deve superare %d caratteri",
+ 'instanceOf' => "deve essere un'istanza di '%s'",
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/ja.php b/modules/gateways/vendor/vlucas/valitron/lang/ja.php
new file mode 100755
index 0000000..4239b4e
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/ja.php
@@ -0,0 +1,35 @@
+ "を入力してください",
+ 'equals' => "は「%s」と同じ内容を入力してください",
+ 'different' => "は「%s」と異なる内容を入力してください",
+ 'accepted' => "に同意してください",
+ 'numeric' => "は数値を入力してください",
+ 'integer' => "は半角数字で入力してください",
+ 'length' => "は%d文字で入力してください",
+ 'min' => "には%sより大きな値を入力してください",
+ 'max' => "には%sより小さな値を入力してください",
+ 'listContains' => "には選択できない値が含まれています",
+ 'in' => "には選択できない値が含まれています",
+ 'notIn' => "には選択できない値が含まれています",
+ 'ip' => "はIPアドレスの書式として正しくありません",
+ 'email' => "はメールアドレスの書式として正しくありません",
+ 'url' => "はURLの書式として正しくありません",
+ 'urlActive' => "はアクティブなドメインではありません",
+ 'alpha' => "は半角英字で入力してください",
+ 'alphaNum' => "は半角英数字で入力してください",
+ 'slug' => "は半角英数字、もしくは「-」「_」の文字で入力してください",
+ 'regex' => "の書式が正しくありません",
+ 'date' => "は日付の書式として正しくありません",
+ 'dateFormat' => "は「%s」の書式で日付を入力してください",
+ 'dateBefore' => "は「%s」以前の日付を入力してください",
+ 'dateAfter' => "は「%s」以後の日付を入力してください",
+ 'contains' => "は「%s」を含んでいなければいけません",
+ 'boolean' => "は真偽値である必要があります",
+ 'lengthBetween' => "は%d〜%d文字で入力してください",
+ 'creditCard' => "はクレジットカード番号の書式として正しくありません",
+ 'lengthMin' => "は%d文字以上入力してください",
+ 'lengthMax' => "は%d文字以内で入力してください",
+ 'instanceOf' => "は「%s」のインスタンスではありません",
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/ko.php b/modules/gateways/vendor/vlucas/valitron/lang/ko.php
new file mode 100755
index 0000000..d5d431c
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/ko.php
@@ -0,0 +1,35 @@
+ "을(를) 입력해야 합니다.",
+ 'equals' => "은(는) '%s'와(과) 같아야 합니다.",
+ 'different' => "은(는) '%s'와(과) 달라야 합니다.",
+ 'accepted' => "을(를) 동의해야 합니다.",
+ 'numeric' => "은(는) 숫자여야 합니다.",
+ 'integer' => "은(는) 정수여야 합니다.",
+ 'length' => "의 길이는 %d 이어야 합니다.",
+ 'min' => "은(는) %s 이상이어야 합니다.",
+ 'max' => "은(는) %s 이하여야 합니다.",
+ 'listContains' => "은(는) 올바르지 않은 값을 포함하고 있습니다.",
+ 'in' => "은(는) 올바르지 않은 값을 포함하고 있습니다.",
+ 'notIn' => "은(는) 올바르지 않은 값을 포함하고 있습니다.",
+ 'ip' => "은(는) 올바르지 않은 IP입니다.",
+ 'email' => "은(는) 올바르지 않은 email입니다.",
+ 'url' => "은(는) 올바르지 않은 URL입니다.",
+ 'urlActive' => "은(는) 접속 가능한 도메인이어야 합니다.",
+ 'alpha' => "은(는) 영문자(a-z)로만 이루어져야 합니다.",
+ 'alphaNum' => "은(는) 영문자(a-z)와 숫자(0-9)로만 이루어져야 합니다.",
+ 'slug' => "은(는) 영문자(a-z)와 숫자(0-9), 특수문자 -와 _로만 이루어져야 합니다.",
+ 'regex' => "은(는) 올바르지 않은 문자를 포함하고 있습니다.",
+ 'date' => "은(는) 올바르지 않은 날짜입니다.",
+ 'dateFormat' => "은(는) '%s' 형태의 날짜여야 합니다.",
+ 'dateBefore' => "은(는) '%s' 보다 이전이어야 합니다.",
+ 'dateAfter' => "은(는) '%s' 보다 이후여야 합니다.",
+ 'contains' => "은(는) '%s'을(를) 포함해야 합니다.",
+ 'boolean' => "은(는) boolean이어야 합니다.",
+ 'lengthBetween' => "의 길이는 %d에서 %d 사이여야 합니다.",
+ 'creditCard' => "은(는) 올바른 신용카드 번호가 아닙니다.",
+ 'lengthMin' => "의 길이는 %d 이상이어야 합니다.",
+ 'lengthMax' => "의 길이는 %d을(를) 넘을 수 없습니다.",
+ 'instanceOf' => "는 '%s'의 객체여야 합니다."
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/lt.php b/modules/gateways/vendor/vlucas/valitron/lang/lt.php
new file mode 100755
index 0000000..1845f76
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/lt.php
@@ -0,0 +1,38 @@
+ "yra privalomas",
+ 'equals' => "reikšmė turi būti tokia pati, kaip „%s“",
+ 'different' => "turi būti kitokia, nei „%s“",
+ 'accepted' => "turi būti priimta",
+ 'numeric' => "turi būti sveikasis skaičius",
+ 'integer' => "turi būti skaičius",
+ 'length' => "turi būti %d ženklų ilgio",
+ 'min' => "turi būti bent %s",
+ 'max' => "turi būti ne daugiau kaip %s",
+ 'listContains' => "turi neteisingą vertę",
+ 'in' => "turi neteisingą vertę",
+ 'notIn' => "turi neteisingą vertę",
+ 'ip' => "nėra teisingas IP adresas",
+ 'ipv4' => "nėra teisingas IPv4 adresas",
+ 'ipv6' => "nėra teisingas IPv6 adresas",
+ 'email' => "nėra teisingas el. pašto adresas",
+ 'url' => "nėra teisingas URL",
+ 'urlActive' => "turi būti aktyvus domenas",
+ 'alpha' => "turi turėti tik raides a-ž",
+ 'alphaNum' => "turi turėti tik raides a-ž ir/ar skaičius 0-9",
+ 'slug' => "turi turėti tik raides a-ž, skaičius 0-9, brukšnelius ir apatinius brukšnelius",
+ 'regex' => "yra neteisingų ženklų",
+ 'date' => "nėra teisinga data",
+ 'dateFormat' => "turi būti „%s“ formato data",
+ 'dateBefore' => "turi būti data, ankstesnė nei „%s“",
+ 'dateAfter' => "turi būti data, vėlesnė nei „%s“",
+ 'contains' => "turi turėti %s",
+ 'boolean' => "turi būti būlio (taip/ne) tipo",
+ 'lengthBetween' => "turi būti nuo %d iki %d ilgio",
+ 'creditCard' => "turi būti teisingas kreditinės kortelės numeris",
+ 'lengthMin' => "turi būti bent %d ženklų ilgio",
+ 'lengthMax' => "turi būti ne ilgesnis nei %d ženklų",
+ 'instanceOf' => "turi būti „%s“ atvejis",
+ 'containsUnique' => "turi turėti tik unikalius elementus",
+ 'subset' => "turi elementą, kurio nėra sąraše"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/lv.php b/modules/gateways/vendor/vlucas/valitron/lang/lv.php
new file mode 100755
index 0000000..b07bf44
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/lv.php
@@ -0,0 +1,32 @@
+ "ir obligāts lauks",
+ 'equals' => "jāsakrīt ar '%s'",
+ 'different' => "nedrīkst sakrist ar '%s' lauku",
+ 'accepted' => "laukam jābūt apstiprinātam",
+ 'numeric' => "jābūt skaitliskai vērtībai",
+ 'integer' => "jābūt ciparam (0-9)",
+ 'length' => "nedrīkst būt garāks par %d simboliem",
+ 'min' => "jābūt garākam par %s simboliem",
+ 'max' => "jābūt īsākam par %s simboliem",
+ 'listContains' => "lauks satur nederīgu vērtību",
+ 'in' => "lauks satur nederīgu vērtību",
+ 'notIn' => "lauks satur nederīgu vērtību",
+ 'ip' => " lauks nav derīga IP adrese",
+ 'email' => "lauks nav norādīta derīga epasta adrese",
+ 'url' => "lauks nav tīmekļa saite",
+ 'urlActive' => "saite neatrodas esošajā domēna vārdā",
+ 'alpha' => "lauks var saturēt tikai alfabēta burtus a-z",
+ 'alphaNum' => "lauks var saturēt tikai alfabēta burtus un/vai ciparus 0-9",
+ 'slug' => "lauks var saturēt tikai alfabēta burtus un/vai ciparus 0-9, domuzīmes and zemsvītras",
+ 'regex' => "lauks satur nederīgus simbolus",
+ 'date' => "lauks ir nederīgā datuma formātā",
+ 'dateFormat' => "laukam jābūt datuma formātā '%s'",
+ 'dateBefore' => "lauka datumam jābūt pirms '%s'",
+ 'dateAfter' => "lauka datumam jābūt pēc '%s'",
+ 'contains' => "laukam jāsatur %s",
+ 'boolean' => "laukam jābūt ir/nav vērtībai",
+ 'lengthBetween' => "lauka garumam jābūt no %d līdz %d simbolu garam",
+ 'creditCard' => "laukam jābūt derīgam kredītkartes numuram"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/nb.php b/modules/gateways/vendor/vlucas/valitron/lang/nb.php
new file mode 100755
index 0000000..e59f829
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/nb.php
@@ -0,0 +1,39 @@
+ "er påkrevd",
+ 'equals' => "må være lik '%s'",
+ 'different' => "må være annerledes enn '%s'",
+ 'accepted' => "må aksepteres",
+ 'numeric' => "må være numerisk",
+ 'integer' => "må være et heltall",
+ 'length' => "må være %d tegn langt",
+ 'min' => "må være minst %s",
+ 'max' => "må ikke være mer enn %s",
+ 'listContains' => "inneholder ugyldig verdi",
+ 'in' => "inneholder ugyldig verdi",
+ 'notIn' => "inneholder ugyldig verdi",
+ 'ip' => "er ikke en gyldig IP adresse",
+ 'ipv4' => "er ikke en gyldig IPv4 adresse",
+ 'ipv6' => "er ikke en gyldig IPv6 adresse",
+ 'email' => "er ikke en gyldig e-postadresse",
+ 'url' => "er ikke en gyldig URL",
+ 'urlActive' => "må være et aktivt domene",
+ 'alpha' => "må bare innholde bokstaver a-z",
+ 'alphaNum' => "må bare innholde bokstaver a-z og/eller tall 0-9",
+ 'slug' => "må bare innholde bokstaver a-z og/eller tall 0-9, bindestreker og understreker",
+ 'regex' => "inneholder ulovlige tegn",
+ 'date' => "er ikke en gyldig dato",
+ 'dateFormat' => "må være en dato med format '%s'",
+ 'dateBefore' => "må være en dato før '%s'",
+ 'dateAfter' => "må være en dato etter '%s'",
+ 'contains' => "må inneholde %s",
+ 'boolean' => "må være en boolsk verdi",
+ 'lengthBetween' => "må være mellom %d og %d tegn",
+ 'creditCard' => "må være et gyldig kredittkortnummer",
+ 'lengthMin' => "må være minst %d tegn langt",
+ 'lengthMax' => "må ikke overstige %d tegn",
+ 'instanceOf' => "må være en instans av '%s'",
+ 'containsUnique'=> "må inneholde kun unike elementer",
+ 'subset' => "inneholder et element som ikke er i listen"
+);
\ No newline at end of file
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/nl.php b/modules/gateways/vendor/vlucas/valitron/lang/nl.php
new file mode 100755
index 0000000..fa29c8a
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/nl.php
@@ -0,0 +1,35 @@
+ "is verplicht",
+ 'equals' => "moet gelijk zijn aan '%s'",
+ 'different' => "moet verschillend zijn van '%s'",
+ 'accepted' => "moet aanvaard worden",
+ 'numeric' => "moet numeriek zijn",
+ 'integer' => "moet een cijfer zijn",
+ 'length' => "moet minstens %d karakters lang zijn",
+ 'min' => "moet minstens %s zijn",
+ 'max' => "mag niet meer zijn dan %s",
+ 'listContains' => "bevat een ongeldige waarde",
+ 'in' => "bevat een ongeldige waarde",
+ 'notIn' => "bevat een ongeldige waarde",
+ 'ip' => "is geen geldig IP-adres",
+ 'email' => "is geen geldig e-mailadres",
+ 'url' => "is geen geldige URL",
+ 'urlActive' => "moet een actief domein zijn",
+ 'alpha' => "mag enkel letters (a-z) bevatten",
+ 'alphaNum' => "mag enkel letters (a-z) en/of cijfers (0-9) bevatten",
+ 'slug' => "mag enkel letters (a-z), cijfers (0-9) en liggende streepjes (_,-) bevatten",
+ 'regex' => "bevat ongeldige karakters",
+ 'date' => "is geen geldige datum",
+ 'dateFormat' => "moet een datum zijn in het formaat '%s'",
+ 'dateBefore' => "moet een datum voor '%s' zijn",
+ 'dateAfter' => "moet een datum na '%s' zijn",
+ 'contains' => "moet '%s' bevatten",
+ 'boolean' => "moet een booleaanse waarde zijn",
+ 'lengthBetween' => "moet tussen %d en %d karakters lang zijn",
+ 'creditCard' => "moet een geldig kredietkaartnummer zijn",
+ "lengthMin" => "moet meer dan %d karakters lang zijn",
+ "lengthMax" => "mag niet meer dan %d karakters lang zijn",
+ "instanceOf" => "moet een instantie zijn van '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/nn.php b/modules/gateways/vendor/vlucas/valitron/lang/nn.php
new file mode 100755
index 0000000..8c3eb31
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/nn.php
@@ -0,0 +1,35 @@
+ "er nødvendig",
+ 'equals' => "må være de samme som '%s'",
+ 'different' => "må være annerledes enn '%s'",
+ 'accepted' => "må aksepteres",
+ 'numeric' => "må være numerisk",
+ 'integer' => "må være et heltall",
+ 'length' => "må være %d tegn",
+ 'min' => "må være minst %s",
+ 'max' => "må ikke være mer enn %s",
+ 'listContains' => "inneholder ugyldig verdi",
+ 'in' => "inneholder ugyldig verdi",
+ 'notIn' => "inneholder ugyldig verdi",
+ 'ip' => "er ikkje ein gyldig IP Adresse",
+ 'email' => "er ikkje ein gyldig E-post adresse",
+ 'url' => "er ikkje ein gyldig URL",
+ 'urlActive' => "må være eit aktivt domene",
+ 'alpha' => "må bare innholde bokstaver a-z",
+ 'alphaNum' => "må bare innholde bokstaver a-z og/eller tall 0-9",
+ 'slug' => "må bare innholde bokstaver a-z og/eller tall 0-9, bindestreker og understreker",
+ 'regex' => "inneholder ulovlige tegn",
+ 'date' => "er ikkje ein gylid dato",
+ 'dateFormat' => "må være ein dato med formatet '%s'",
+ 'dateBefore' => "må være ein dato før '%s'",
+ 'dateAfter' => "må være ein dato etter '%s'",
+ 'contains' => "må inneholde %s",
+ 'boolean' => "må være ein boolsk verdi",
+ 'lengthBetween' => "må være imellom %d og %d tegn",
+ 'creditCard' => "må være et gyldig kredittkortnummer",
+ 'lengthMin' => "må være minst %d tegn",
+ 'lengthMax' => "må ikkje overstige %d tegn",
+ 'instanceOf' => "må være ein instans av '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/no.php b/modules/gateways/vendor/vlucas/valitron/lang/no.php
new file mode 100755
index 0000000..9c1121c
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/no.php
@@ -0,0 +1,3 @@
+ "jest wymagane",
+ 'equals' => "musi być takie same jak '%s'",
+ 'different' => "musi być różne od '%s'",
+ 'accepted' => "musi być zaakceptowane",
+ 'numeric' => "musi być liczbą",
+ 'integer' => "musi być liczbą całkowitą",
+ 'length' => "musi być dłuższe niż %d",
+ 'min' => "musi być przynajmniej %s",
+ 'max' => "nie może być większe niż %s",
+ 'listContains' => "zawiera nieprawidłową wartość",
+ 'in' => "zawiera nieprawidłową wartość",
+ 'notIn' => "zawiera nieprawidłową wartość",
+ 'ip' => "nie jest prawidłowym adresem IP",
+ 'email' => "nie jest prawidłowym adresem email",
+ 'url' => "nie jest URL",
+ 'urlActive' => "musi być aktywną domeną",
+ 'alpha' => "musi zawierać tylko litery a-z",
+ 'alphaNum' => "musi zawierać tylko litery a-z i/lub cyfry 0-9",
+ 'slug' => "musi zawierać tylko litery a-z i/lub cyfry 0-9, myślinik I podkreślnik",
+ 'regex' => "zawiera nieprawidłowe znaki",
+ 'date' => "nie jest prawidłową datą",
+ 'dateFormat' => "Data musi być w formacie '%s'",
+ 'dateBefore' => "Data musi występować przed '%s'",
+ 'dateAfter' => "Data musi następować po '%s'",
+ 'contains' => "Musi zawierać %s",
+ 'boolean' => "musi być wartością logiczną",
+ 'lengthBetween' => "ilość znaków musi być między %d a %d",
+ 'creditCard' => "musi być prawidłowym numerem karty kredytowej",
+ "lengthMin" => "musi zawierać więcej niż %d znaków",
+ "lengthMax" => "musi zawierać mniej niż %d znaków",
+ "instanceOf" => "musi być instancją '%s'",
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/pt-br.php b/modules/gateways/vendor/vlucas/valitron/lang/pt-br.php
new file mode 100755
index 0000000..a143543
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/pt-br.php
@@ -0,0 +1,37 @@
+ "é obrigatório",
+ 'equals' => "deve ser o mesmo que '%s'",
+ 'different' => "deve ser diferente de '%s'",
+ 'accepted' => "deve ser aceito",
+ 'numeric' => "deve ser um número",
+ 'integer' => "deve ser um inteiro",
+ 'length' => "deve ter %d caracteres",
+ 'min' => "deve ser maior que %s",
+ 'max' => "deve ser menor que %s",
+ 'in' => "contém um valor inválido",
+ 'notIn' => "contém um valor inválido",
+ 'ip' => "não é um IP válido",
+ 'email' => "não é um email válido",
+ 'url' => "não é uma URL válida",
+ 'urlActive' => "deve ser um domínio ativo",
+ 'alpha' => "deve conter as letras a-z",
+ 'alphaNum' => "deve conter apenas letras a-z e/ou números 0-9",
+ 'slug' => "deve conter apenas letras a-z, números 0-9, ou os caracteres - ou _",
+ 'regex' => "contém caracteres inválidos",
+ 'date' => "não é uma data válida",
+ 'dateFormat' => "deve ser uma data no formato '%s'",
+ 'dateBefore' => "deve ser uma data anterior a '%s'",
+ 'dateAfter' => "deve ser uma data posterior a '%s'",
+ 'contains' => "deve conter %s",
+ 'boolean' => "deve ser um booleano",
+ 'lengthBetween' => "deve estar entre %d e %d caracteres",
+ 'creditCard' => "deve ser um numero de cartão de credito válido",
+ 'lengthMin' => "deve ter ao menos %d caracteres",
+ 'lengthMax' => "não deve exceder %d caracteres",
+ 'instanceOf' => "deve ser uma instância de '%s'",
+ 'containsUnique' => "deve conter apenas valores únicos",
+ 'subset' => "contém um item que não está na lista",
+ 'arrayHasKeys' => "não contém todas as chaves requeridas"
+);
\ No newline at end of file
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/ro.php b/modules/gateways/vendor/vlucas/valitron/lang/ro.php
new file mode 100755
index 0000000..0eb6a3d
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/ro.php
@@ -0,0 +1,35 @@
+ "se cere",
+ 'equals' => "trebuie sa fie la fel ca '%s'",
+ 'different' => "trebuie sa fie diferit de '%s'",
+ 'accepted' => "trebuie sa fie acceptat",
+ 'numeric' => "trebuie sa fie numeric",
+ 'integer' => "trebuie sa fie intreg",
+ 'length' => "trebuie sa fie mai lung decat %d",
+ 'min' => "trebuie sa fie cel putin %s",
+ 'max' => "nu trebuie sa fie mai mult de %s",
+ 'listContains' => "contine caractere invalide",
+ 'in' => "contine caractere invalide",
+ 'notIn' => "contine o valoare invalida",
+ 'ip' => "nu este o adresa IP valida",
+ 'email' => "nu este o adresa de email valida",
+ 'url' => "nu este un URL",
+ 'urlActive' => "trebuie sa fie un domeniu activ",
+ 'alpha' => "trebuie sa contina doar litere de la a-z",
+ 'alphaNum' => "trebuie sa contina doar numere de la a-z si/sau numere 0-9",
+ 'slug' => "trebuie sa contina doar litere de la a-z, numere de la 0-9, cratime si underline '_'",
+ 'regex' => "contine caractere invalide",
+ 'date' => "nu este o data valida",
+ 'dateFormat' => "trebuie sa fie o data care sa aiba forma '%s'",
+ 'dateBefore' => "trebuie sa fie o data inainte de '%s'",
+ 'dateAfter' => "trebuie sa fie o data dupa '%s'",
+ 'contains' => "trebuie sa contina %s",
+ 'boolean' => "trebuie sa fie o constructie logica",
+ 'lengthBetween' => "trebuie sa contina intre %d si %d caractere",
+ 'creditCard' => "trebuie sa fie nu numar de card de credit valid",
+ "lengthMin" => "trebuie sa contina caractere mai multe decat %d",
+ "lengthMax" => "trebuie sa contina mai putin de %d caractere",
+ "instanceOf" => "trebuie sa fie un exemplu de '%s’",
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/ru.php b/modules/gateways/vendor/vlucas/valitron/lang/ru.php
new file mode 100755
index 0000000..f4f73da
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/ru.php
@@ -0,0 +1,39 @@
+ "обязательно для заполнения",
+ 'equals' => "должно совпадать со значением '%s'",
+ 'different' => "должно отличаться от '%s'",
+ 'accepted' => "должно быть указано",
+ 'numeric' => "должно содержать числовое значение",
+ 'integer' => "должно быть числом",
+ 'length' => "должно быть длиннее, чем %d",
+ 'min' => "должно быть не менее, чем %s",
+ 'max' => "должно быть не более, чем %s",
+ 'listContains' => "содержит неверное значение",
+ 'in' => "содержит неверное значение",
+ 'notIn' => "содержит неверное значение",
+ 'ip' => "не является валидным IP адресом",
+ 'ipv4' => "не является валидным IPv4 адресом",
+ 'ipv6' => "не является валидным IPv6 адресом",
+ 'email' => "не является валидным email адресом",
+ 'url' => "не является валидной ссылкой",
+ 'urlActive' => "содержит не активную ссылку",
+ 'alpha' => "должно содержать только латинские символы",
+ 'alphaNum' => "должно содержать только латинские символы и/или цифры",
+ 'slug' => "должно содержать только латинские символы, цифры, тире и подчёркивания",
+ 'regex' => "содержит недопустимые символы",
+ 'date' => "не является датой",
+ 'dateFormat' => "должно содержать дату следующего формата: %s",
+ 'dateBefore' => "должно содержать дату не позднее, чем %s",
+ 'dateAfter' => "должно содержать дату не ранее, чем %s",
+ 'contains' => "должно содержать %s",
+ 'boolean' => "должно содержать логическое значение",
+ 'lengthBetween' => "должно содержать от %d до %d символов",
+ 'creditCard' => "должно быть номером кредитной карты",
+ 'lengthMin' => "должно содержать более %d символов",
+ 'lengthMax' => "должно содержать менее %d символов",
+ 'instanceOf' => "должно быть объектом класса '%s'",
+ 'containsUnique' => "должно содержать только уникальные элементы",
+ 'subset' => "содержит элемент, не указанный в списке",
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/sk.php b/modules/gateways/vendor/vlucas/valitron/lang/sk.php
new file mode 100755
index 0000000..c3972fc
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/sk.php
@@ -0,0 +1,35 @@
+ "je povinná položka",
+ 'equals' => "musí byť rovnaký ako '%s'",
+ 'different' => "musí byť rôzny od '%s'",
+ 'accepted' => "musí byť akceptovaný",
+ 'numeric' => "musí byť číslo",
+ 'integer' => "musí byť celé číslo",
+ 'length' => "musí byť dlhý aspoň %d",
+ 'min' => "musí byť dlhý minimálne %s",
+ 'max' => "musí byť maximálne %s",
+ 'listContains' => "obsahuje nepovolenú hodnotu",
+ 'in' => "obsahuje nepovolenú hodnotu",
+ 'notIn' => "obsahuje nepovolenú hodnotu",
+ 'ip' => "nie je korektná IP adresa",
+ 'email' => "nie je korektný e-mail",
+ 'url' => "nie je URL",
+ 'urlActive' => "musí byť aktívna URL",
+ 'alpha' => "musí obsahovať len písmená a-z",
+ 'alphaNum' => "musí obsahovať len písmená a-z a/alebo čísla 0-9",
+ 'slug' => "musí obsahovať len písmená a-z, čísla 0-9, pomlčky alebo podtržítka",
+ 'regex' => "obsahuje nepovolené znaky",
+ 'date' => "nie je korektný formáť",
+ 'dateFormat' => "musí byť dátum formátu '%s'",
+ 'dateBefore' => "musí byť dátum pred '%s'",
+ 'dateAfter' => "musí byť dátum po '%s'",
+ 'contains' => "musí obsahovať %s",
+ 'boolean' => "musí byť pravdivostná hodnota (boolean)",
+ 'lengthBetween' => "musí byť %d až %d znakov dlhý",
+ 'creditCard' => "musí byť korektné číslo kreditnej karty",
+ "lengthMin" => "musí byť aspoň %d znakov dlhý",
+ "lengthMax" => "musí byť najviac %d znakov dlhý",
+ "instanceOf" => "musí byť inštanciou '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/sv.php b/modules/gateways/vendor/vlucas/valitron/lang/sv.php
new file mode 100755
index 0000000..931f6c7
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/sv.php
@@ -0,0 +1,35 @@
+ "är obligatorisk",
+ 'equals' => "måste vara samma som '%s'",
+ 'different' => "får inte vara samma som '%s'",
+ 'accepted' => "måste accepteras",
+ 'numeric' => "måste vara numerisk",
+ 'integer' => "måste vara ett heltal",
+ 'length' => "måste vara %d tecken långt",
+ 'min' => "måste vara minst %s",
+ 'max' => "får inte vara mer än %s",
+ 'listContains' => "innehåller ogiltigt värde",
+ 'in' => "innehåller ogiltigt värde",
+ 'notIn' => "innehåller ogiltigt värde",
+ 'ip' => "är inte en giltlig IP-adress",
+ 'email' => "är inte en giltlig e-postadress",
+ 'url' => "är inte en giltlig URL",
+ 'urlActive' => "måste vara ett aktivt domännamn",
+ 'alpha' => "får bara inehålla bokstäver a-z",
+ 'alphaNum' => "får bara inehålla bokstäver a-z och/eller siffror 0-9",
+ 'slug' => "får bara inehålla bokstäver a-z och/eller siffror 0-9, bindesträck og understräck",
+ 'regex' => "inehåller ogiltliga tecken",
+ 'date' => "är inte ett giltligt datum",
+ 'dateFormat' => "måste vara ett datum med formatet '%s'",
+ 'dateBefore' => "måste vara ett datum före '%s'",
+ 'dateAfter' => "måste vara ett datum efter '%s'",
+ 'contains' => "måste innehålla %s",
+ 'boolean' => "måste vara ett booleskt värde",
+ 'lengthBetween' => "måste vara mellan %d och %d tecken långt",
+ 'creditCard' => "måste vara et gyldig kredittkortnummer",
+ 'lengthMin' => "måste vara minst %d tecken långt",
+ 'lengthMax' => "får itne överstiga %d tecken",
+ 'instanceOf' => "måste vara en instans av '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/th.php b/modules/gateways/vendor/vlucas/valitron/lang/th.php
new file mode 100755
index 0000000..a61052f
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/th.php
@@ -0,0 +1,35 @@
+ "นั้นจำเป็นต้องมี",
+ 'equals' => "ต้องเหมือนกับ '%s'",
+ 'different' => "ต้องแตกต่างจาก '%s'",
+ 'accepted' => "ต้องถูกยอมรับ",
+ 'numeric' => "ต้องเป็นตัวเลข",
+ 'integer' => "ต้องเป็นตัวเลข integer",
+ 'length' => "ต้องมีความยาวมากกว่า %d",
+ 'min' => "ต้องมีอย่างน้อย %s",
+ 'max' => "ต้องไม่มากเกิน %s",
+ 'listContains' => "ประกอบด้วยค่าที่ไม่ถูกต้อง",
+ 'in' => "ประกอบด้วยค่าที่ไม่ถูกต้อง",
+ 'notIn' => "ประกอบด้วยค่าที่ไม่ถูกต้อง",
+ 'ip' => "ไม่ใช่ IP ที่ถูกต้อง",
+ 'email' => "ไม่ใช่อีเมลที่ถูกต้อง",
+ 'url' => "ไม่ใช่ลิงก์",
+ 'urlActive' => "ต้องไม่ใช่โดเมนที่ใช้งานอยู่",
+ 'alpha' => "ต้องมีแค่ตัวอักษร a-z",
+ 'alphaNum' => "ต้องมีแค่ตัวอักษร a-z และ/หรือ ตัวเลข 0-9",
+ 'slug' => "ต้องมีแค่ตัวอักษร a-z ตัวเลข 0-9 / และ _",
+ 'regex' => "มีตัวอักษรที่ไม่ถูกต้อง",
+ 'date' => "ไม่ใช่วันที่ที่ถูกต้อง",
+ 'dateFormat' => "ต้องเป็นวันที่ในรูปแบบ '%s'",
+ 'dateBefore' => "ต้องเป็นวันที่ก่อน '%s'",
+ 'dateAfter' => "ต้องเป็นวันที่หลัง '%s'",
+ 'contains' => "ต้องมี %s",
+ 'boolean' => "ต้องเป็น boolean",
+ 'lengthBetween' => "ต้องอยู่ระหว่าง %d ถึง %d ตัวอักษร",
+ 'creditCard' => "ต้องเป็นหมายเลขบัตรเครดิตที่ถูกต้อง",
+ "lengthMin" => "ต้องมีมากกว่า %d ตัวอักษร",
+ "lengthMax" => "ต้องมีน้อยกว่า %d ตัวอักษร",
+ "instanceOf" => "ต้องเป็นส่วนหนึ่งของ '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/tr.php b/modules/gateways/vendor/vlucas/valitron/lang/tr.php
new file mode 100755
index 0000000..91758c4
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/tr.php
@@ -0,0 +1,35 @@
+ "gerekli ",
+ 'equals' => "bununla aynı olmalı '%s'",
+ 'different' => "bundan değişik olmalı '%s'",
+ 'accepted' => "kabul edilebilir olmalı",
+ 'numeric' => "numerik olmalı",
+ 'integer' => "sayı olmalı",
+ 'length' => "en az %d adet uzunluğunda olmalı",
+ 'min' => "en az böyle olmalı %s",
+ 'max' => "bundan daha fazla olmalı %s",
+ 'listContains' => "geçersiz değer içeriyor",
+ 'in' => "geçersiz değer içeriyor",
+ 'notIn' => "geçersiz değer içeriyor",
+ 'ip' => "geçerli bir IP adresi değil",
+ 'email' => "geçerli bir eposta adresi değil",
+ 'url' => "bir URL değil",
+ 'urlActive' => "aktif bir alan adı olmalı",
+ 'alpha' => "sadece harf içermeli a-z",
+ 'alphaNum' => "sadece harf (a-z) ve/veya sayılar (0-9) içermeli",
+ 'slug' => "sadece harf (a-z), numbers sayılar (0-9), tire ve alt tire içermeli",
+ 'regex' => "geçersiz karakterler içeriyor",
+ 'date' => "geçerli bir karakter değil",
+ 'dateFormat' => "bu biçimde bir tarih olmalı '%s'",
+ 'dateBefore' => "bu tarihden önce olmalı '%s'",
+ 'dateAfter' => "bu tarihden sonra olmalı '%s'",
+ 'contains' => "bunu içermeli %s",
+ 'boolean' => "boolean olmalı",
+ 'lengthBetween' => "%d ve %d karakter arasında olmalı",
+ 'creditCard' => "geçerli bir kredi kartı numarası olmalı",
+ "lengthMin" => "%d katakterden fazla içermeli",
+ "lengthMax" => "%d karakterden az içermeli",
+ "instanceOf" => "bunun bir örneği olmalı '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/uk.php b/modules/gateways/vendor/vlucas/valitron/lang/uk.php
new file mode 100755
index 0000000..a1fc13b
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/uk.php
@@ -0,0 +1,34 @@
+ "обов'язкове для заповнення",
+ 'equals' => "має містити '%s'",
+ 'different' => "має відрізнятися від '%s'",
+ 'accepted' => "має бути вказаним",
+ 'numeric' => "має містити числове значення",
+ 'integer' => "має бути числом",
+ 'length' => "має бути довшим, ніж %d",
+ 'min' => "має бути більше, ніж %s",
+ 'max' => "повинно бути менше, ніж %s",
+ 'listContains' => "містить невірне значення",
+ 'in' => "містить невірне значення",
+ 'notIn' => "містить невірне значення",
+ 'ip' => "не є валідною IP адресою",
+ 'email' => "не є валідною email адресою",
+ 'url' => "не є посиланням",
+ 'urlActive' => "містить не активне посилання",
+ 'alpha' => "повинно містити тільки латинські символи",
+ 'alphaNum' => "повинно містити тільки латинські символи та/або цифри",
+ 'slug' => "повинно містити тільки латинські символи, цифри, тире і підкреслення",
+ 'regex' => "містить неприпустимі символи",
+ 'date' => "не є датою",
+ 'dateFormat' => "має містити дату наступного формату:%s",
+ 'dateBefore' => "має містити дату не пізнішу, ніж %s",
+ 'dateAfter' => "має містити дату не ранішу, ніж %s",
+ 'contains' => "має містити %s",
+ 'boolean' => "має містити логічне значення",
+ 'lengthBetween' => "має містити від %d в до %d символів",
+ 'creditCard' => "має бути номером кредитної картки",
+ "lengthMin" => "має містити більше %d символів",
+ "lengthMax" => "має містити менше %d символів"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/vi.php b/modules/gateways/vendor/vlucas/valitron/lang/vi.php
new file mode 100755
index 0000000..0094165
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/vi.php
@@ -0,0 +1,35 @@
+ "là bắt buộc",
+ 'equals' => "phải giống '%s'",
+ 'different' => "phải khác '%s'",
+ 'accepted' => "được chấp nhận",
+ 'numeric' => "phải là số",
+ 'integer' => "phải là số nguyên",
+ 'length' => "phải dài hơn %d",
+ 'min' => "ít nhất %s",
+ 'max' => "tối đa %s",
+ 'listContains' => "chứa giá trị không hợp lệ",
+ 'in' => "chứa giá trị không hợp lệ",
+ 'notIn' => "chứa giá trị không hợp lệ",
+ 'ip' => "địa chỉ IP không hợp lệ",
+ 'email' => "địa chỉ email không hợp lệ",
+ 'url' => "không phải là URL",
+ 'urlActive' => "Domain chưa được kích hoạt",
+ 'alpha' => "chỉ chứa các kí tự a-z",
+ 'alphaNum' => "chỉ chứa các kí tự a-z hoặc số 0-9",
+ 'slug' => "chỉ chứa các kí tự a-z, số 0-9, gạch nối và gạch dưới",
+ 'regex' => "chứa kí tự không hợp lệ",
+ 'date' => "thời gian hợp lệ",
+ 'dateFormat' => "thời gian nên được định dạng '%s'",
+ 'dateBefore' => "thời gian nên trước '%s'",
+ 'dateAfter' => "thời gian nên sau '%s'",
+ 'contains' => "phải chứa %s",
+ 'boolean' => "phải là boolean",
+ 'lengthBetween' => "phải từ %d đến %d kí tự",
+ 'creditCard' => "credit card không hợp lệ",
+ "lengthMin" => "ít nhất %d kí tự",
+ "lengthMax" => "tối đa %d kí tự",
+ "instanceOf" => "phải là instance của '%s'"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/zh-cn.php b/modules/gateways/vendor/vlucas/valitron/lang/zh-cn.php
new file mode 100755
index 0000000..0a02185
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/zh-cn.php
@@ -0,0 +1,34 @@
+ "不能为空",
+ 'equals' => "必须和 '%s' 一致",
+ 'different' => "必须和 '%s' 不一致",
+ 'accepted' => "必须接受",
+ 'numeric' => "只能是数字",
+ 'integer' => "只能是整数",
+ 'length' => "长度必须大于 %d",
+ 'min' => "必须大于 %s",
+ 'max' => "必须小于 %s",
+ 'listContains' => "无效的值",
+ 'in' => "无效的值",
+ 'notIn' => "无效的值",
+ 'ip' => "无效IP地址",
+ 'email' => "无效邮箱地址",
+ 'url' => "无效的URL",
+ 'urlActive' => "必须是可用的域名",
+ 'alpha' => "只能包括英文字母(a-z)",
+ 'alphaNum' => "只能包括英文字母(a-z)和数字(0-9)",
+ 'slug' => "只能包括英文字母(a-z)、数字(0-9)、破折号和下划线",
+ 'regex' => "无效格式",
+ 'date' => "无效的日期",
+ 'dateFormat' => "日期的格式应该为 '%s'",
+ 'dateBefore' => "日期必须在 '%s' 之前",
+ 'dateAfter' => "日期必须在 '%s' 之后",
+ 'contains' => "必须包含 %s",
+ 'boolean' => "必须是真或假",
+ 'lengthBetween' => "长度只能介于 %d 和 %d 之间",
+ 'creditCard' => "信用卡号码不正确",
+ 'lengthMin' => "长度必须大于 %d",
+ 'lengthMax' => "长度必须小于 %d"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/lang/zh-tw.php b/modules/gateways/vendor/vlucas/valitron/lang/zh-tw.php
new file mode 100755
index 0000000..ada6a7c
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/lang/zh-tw.php
@@ -0,0 +1,29 @@
+ "不能為空",
+ 'equals' => "必須和 '%s' 一致",
+ 'different' => "必須和 '%s' 不一致",
+ 'accepted' => "必須接受",
+ 'numeric' => "只能是數字",
+ 'integer' => "只能是整數",
+ 'length' => "長度必須大於 %d",
+ 'min' => "必須大於 %s",
+ 'max' => "必須小於 %s",
+ 'listContains' => "無效的值",
+ 'in' => "無效的值",
+ 'notIn' => "無效的值",
+ 'ip' => "無效IP地址",
+ 'email' => "無效郵箱地址",
+ 'url' => "無效的URL",
+ 'urlActive' => "必須是可用的域名",
+ 'alpha' => "只能包括英文字母(a-z)",
+ 'alphaNum' => "只能包括英文字母(a-z)和數字(0-9)",
+ 'slug' => "只能包括英文字母(a-z)、數字(0-9)、破折號和下劃線",
+ 'regex' => "無效格式",
+ 'date' => "無效的日期",
+ 'dateFormat' => "日期的格式應該為 '%s'",
+ 'dateBefore' => "日期必須在 '%s' 之前",
+ 'dateAfter' => "日期必須在 '%s' 之後",
+ 'contains' => "必須包含 %s"
+);
diff --git a/modules/gateways/vendor/vlucas/valitron/src/Valitron/Validator.php b/modules/gateways/vendor/vlucas/valitron/src/Valitron/Validator.php
new file mode 100755
index 0000000..7782f20
--- /dev/null
+++ b/modules/gateways/vendor/vlucas/valitron/src/Valitron/Validator.php
@@ -0,0 +1,1548 @@
+
+ * @link http://www.vancelucas.com/
+ */
+class Validator
+{
+ /**
+ * @var string
+ */
+ const ERROR_DEFAULT = 'Invalid';
+
+ /**
+ * @var array
+ */
+ protected $_fields = array();
+
+ /**
+ * @var array
+ */
+ protected $_errors = array();
+
+ /**
+ * @var array
+ */
+ protected $_validations = array();
+
+ /**
+ * @var array
+ */
+ protected $_labels = array();
+
+ /**
+ * Contains all rules that are available to the current valitron instance.
+ *
+ * @var array
+ */
+ protected $_instanceRules = array();
+
+ /**
+ * Contains all rule messages that are available to the current valitron
+ * instance
+ *
+ * @var array
+ */
+ protected $_instanceRuleMessage = array();
+
+ /**
+ * @var string
+ */
+ protected static $_lang;
+
+ /**
+ * @var string
+ */
+ protected static $_langDir;
+
+ /**
+ * @var array
+ */
+ protected static $_rules = array();
+
+ /**
+ * @var array
+ */
+ protected static $_ruleMessages = array();
+
+ /**
+ * @var array
+ */
+ protected $validUrlPrefixes = array('http://', 'https://', 'ftp://');
+
+ /**
+ * @var bool
+ */
+ protected $stop_on_first_fail = false;
+
+ /**
+ * Setup validation
+ *
+ * @param array $data
+ * @param array $fields
+ * @param string $lang
+ * @param string $langDir
+ * @throws \InvalidArgumentException
+ */
+ public function __construct($data = array(), $fields = array(), $lang = null, $langDir = null)
+ {
+ // Allows filtering of used input fields against optional second array of field names allowed
+ // This is useful for limiting raw $_POST or $_GET data to only known fields
+ $this->_fields = !empty($fields) ? array_intersect_key($data, array_flip($fields)) : $data;
+
+ // set lang in the follow order: constructor param, static::$_lang, default to en
+ $lang = $lang ?: static::lang();
+
+ // set langDir in the follow order: constructor param, static::$_langDir, default to package lang dir
+ $langDir = $langDir ?: static::langDir();
+
+ // Load language file in directory
+ $langFile = rtrim($langDir, '/') . '/' . $lang . '.php';
+ if (stream_resolve_include_path($langFile)) {
+ $langMessages = include $langFile;
+ static::$_ruleMessages = array_merge(static::$_ruleMessages, $langMessages);
+ } else {
+ throw new \InvalidArgumentException("Fail to load language file '" . $langFile . "'");
+ }
+ }
+
+ /**
+ * Get/set language to use for validation messages
+ *
+ * @param string $lang
+ * @return string
+ */
+ public static function lang($lang = null)
+ {
+ if ($lang !== null) {
+ static::$_lang = $lang;
+ }
+
+ return static::$_lang ?: 'en';
+ }
+
+ /**
+ * Get/set language file path
+ *
+ * @param string $dir
+ * @return string
+ */
+ public static function langDir($dir = null)
+ {
+ if ($dir !== null) {
+ static::$_langDir = $dir;
+ }
+
+ return static::$_langDir ?: dirname(dirname(__DIR__)) . '/lang';
+ }
+
+ /**
+ * Required field validator
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateRequired($field, $value, $params = array())
+ {
+ if (isset($params[0]) && (bool)$params[0]) {
+ $find = $this->getPart($this->_fields, explode('.', $field), true);
+ return $find[1];
+ }
+
+ if (is_null($value)) {
+ return false;
+ } elseif (is_string($value) && trim($value) === '') {
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * Validate that two values match
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateEquals($field, $value, array $params)
+ {
+ // extract the second field value, this accounts for nested array values
+ list($field2Value, $multiple) = $this->getPart($this->_fields, explode('.', $params[0]));
+ return isset($field2Value) && $value == $field2Value;
+ }
+
+ /**
+ * Validate that a field is different from another field
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateDifferent($field, $value, array $params)
+ {
+ // extract the second field value, this accounts for nested array values
+ list($field2Value, $multiple) = $this->getPart($this->_fields, explode('.', $params[0]));
+ return isset($field2Value) && $value != $field2Value;
+ }
+
+ /**
+ * Validate that a field was "accepted" (based on PHP's string evaluation rules)
+ *
+ * This validation rule implies the field is "required"
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateAccepted($field, $value)
+ {
+ $acceptable = array('yes', 'on', 1, '1', true);
+
+ return $this->validateRequired($field, $value) && in_array($value, $acceptable, true);
+ }
+
+ /**
+ * Validate that a field is an array
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateArray($field, $value)
+ {
+ return is_array($value);
+ }
+
+ /**
+ * Validate that a field is numeric
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateNumeric($field, $value)
+ {
+ return is_numeric($value);
+ }
+
+ /**
+ * Validate that a field is an integer
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateInteger($field, $value, $params)
+ {
+ if (isset($params[0]) && (bool)$params[0]) {
+ //strict mode
+ return preg_match('/^([0-9]|-[1-9]|-?[1-9][0-9]*)$/i', $value);
+ }
+
+ return filter_var($value, \FILTER_VALIDATE_INT) !== false;
+ }
+
+ /**
+ * Validate the length of a string
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateLength($field, $value, $params)
+ {
+ $length = $this->stringLength($value);
+ // Length between
+ if (isset($params[1])) {
+ return $length >= $params[0] && $length <= $params[1];
+ }
+ // Length same
+ return ($length !== false) && $length == $params[0];
+ }
+
+ /**
+ * Validate the length of a string (between)
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateLengthBetween($field, $value, $params)
+ {
+ $length = $this->stringLength($value);
+
+ return ($length !== false) && $length >= $params[0] && $length <= $params[1];
+ }
+
+ /**
+ * Validate the length of a string (min)
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ *
+ * @return bool
+ */
+ protected function validateLengthMin($field, $value, $params)
+ {
+ $length = $this->stringLength($value);
+
+ return ($length !== false) && $length >= $params[0];
+ }
+
+ /**
+ * Validate the length of a string (max)
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ *
+ * @return bool
+ */
+ protected function validateLengthMax($field, $value, $params)
+ {
+ $length = $this->stringLength($value);
+
+ return ($length !== false) && $length <= $params[0];
+ }
+
+ /**
+ * Get the length of a string
+ *
+ * @param string $value
+ * @return int|false
+ */
+ protected function stringLength($value)
+ {
+ if (!is_string($value)) {
+ return false;
+ } elseif (function_exists('mb_strlen')) {
+ return mb_strlen($value);
+ }
+
+ return strlen($value);
+ }
+
+ /**
+ * Validate the size of a field is greater than a minimum value.
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateMin($field, $value, $params)
+ {
+ if (!is_numeric($value)) {
+ return false;
+ } elseif (function_exists('bccomp')) {
+ return !(bccomp($params[0], $value, 14) === 1);
+ } else {
+ return $params[0] <= $value;
+ }
+ }
+
+ /**
+ * Validate the size of a field is less than a maximum value
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateMax($field, $value, $params)
+ {
+ if (!is_numeric($value)) {
+ return false;
+ } elseif (function_exists('bccomp')) {
+ return !(bccomp($value, $params[0], 14) === 1);
+ } else {
+ return $params[0] >= $value;
+ }
+ }
+
+ /**
+ * Validate the size of a field is between min and max values
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateBetween($field, $value, $params)
+ {
+ if (!is_numeric($value)) {
+ return false;
+ }
+ if (!isset($params[0]) || !is_array($params[0]) || count($params[0]) !== 2) {
+ return false;
+ }
+
+ list($min, $max) = $params[0];
+
+ return $this->validateMin($field, $value, array($min)) && $this->validateMax($field, $value, array($max));
+ }
+
+ /**
+ * Validate a field is contained within a list of values
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateIn($field, $value, $params)
+ {
+ $isAssoc = array_values($params[0]) !== $params[0];
+ if ($isAssoc) {
+ $params[0] = array_keys($params[0]);
+ }
+
+ $strict = false;
+ if (isset($params[1])) {
+ $strict = $params[1];
+ }
+
+ return in_array($value, $params[0], $strict);
+ }
+
+ /**
+ * Validate a field is contained within a list of values
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateListContains($field, $value, $params)
+ {
+ $isAssoc = array_values($value) !== $value;
+ if ($isAssoc) {
+ $value = array_keys($value);
+ }
+
+ $strict = false;
+ if (isset($params[1])) {
+ $strict = $params[1];
+ }
+
+ return in_array($params[0], $value, $strict);
+ }
+
+ /**
+ * Validate a field is not contained within a list of values
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateNotIn($field, $value, $params)
+ {
+ return !$this->validateIn($field, $value, $params);
+ }
+
+ /**
+ * Validate a field contains a given string
+ *
+ * @param string $field
+ * @param string $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateContains($field, $value, $params)
+ {
+ if (!isset($params[0])) {
+ return false;
+ }
+ if (!is_string($params[0]) || !is_string($value)) {
+ return false;
+ }
+
+ $strict = true;
+ if (isset($params[1])) {
+ $strict = (bool)$params[1];
+ }
+
+ if ($strict) {
+ if (function_exists('mb_strpos')) {
+ $isContains = mb_strpos($value, $params[0]) !== false;
+ } else {
+ $isContains = strpos($value, $params[0]) !== false;
+ }
+ } else {
+ if (function_exists('mb_stripos')) {
+ $isContains = mb_stripos($value, $params[0]) !== false;
+ } else {
+ $isContains = stripos($value, $params[0]) !== false;
+ }
+ }
+ return $isContains;
+ }
+
+ /**
+ * Validate that all field values contains a given array
+ *
+ * @param string $field
+ * @param array $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateSubset($field, $value, $params)
+ {
+ if (!isset($params[0])) {
+ return false;
+ }
+ if (!is_array($params[0])) {
+ $params[0] = array($params[0]);
+ }
+ if (is_scalar($value) || is_null($value)) {
+ return $this->validateIn($field, $value, $params);
+ }
+
+ $intersect = array_intersect($value, $params[0]);
+ return array_diff($value, $intersect) === array_diff($intersect, $value);
+ }
+
+ /**
+ * Validate that field array has only unique values
+ *
+ * @param string $field
+ * @param array $value
+ * @return bool
+ */
+ protected function validateContainsUnique($field, $value)
+ {
+ if (!is_array($value)) {
+ return false;
+ }
+
+ return $value === array_unique($value, SORT_REGULAR);
+ }
+
+ /**
+ * Validate that a field is a valid IP address
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateIp($field, $value)
+ {
+ return filter_var($value, \FILTER_VALIDATE_IP) !== false;
+ }
+
+ /**
+ * Validate that a field is a valid IP v4 address
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateIpv4($field, $value)
+ {
+ return filter_var($value, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV4) !== false;
+ }
+
+ /**
+ * Validate that a field is a valid IP v6 address
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateIpv6($field, $value)
+ {
+ return filter_var($value, \FILTER_VALIDATE_IP, \FILTER_FLAG_IPV6) !== false;
+ }
+
+ /**
+ * Validate that a field is a valid e-mail address
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateEmail($field, $value)
+ {
+ return filter_var($value, \FILTER_VALIDATE_EMAIL) !== false;
+ }
+
+ /**
+ * Validate that a field contains only ASCII characters
+ *
+ * @param $field
+ * @param $value
+ * @return bool|false|string
+ */
+ protected function validateAscii($field, $value)
+ {
+ // multibyte extension needed
+ if (function_exists('mb_detect_encoding')) {
+ return mb_detect_encoding($value, 'ASCII', true);
+ }
+
+ // fallback with regex
+ return 0 === preg_match('/[^\x00-\x7F]/', $value);
+ }
+
+ /**
+ * Validate that a field is a valid e-mail address and the domain name is active
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateEmailDNS($field, $value)
+ {
+ if ($this->validateEmail($field, $value)) {
+ $domain = ltrim(stristr($value, '@'), '@') . '.';
+ if (function_exists('idn_to_ascii') && defined('INTL_IDNA_VARIANT_UTS46')) {
+ $domain = idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46);
+ }
+ return checkdnsrr($domain, 'ANY');
+ }
+
+ return false;
+ }
+
+ /**
+ * Validate that a field is a valid URL by syntax
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateUrl($field, $value)
+ {
+ foreach ($this->validUrlPrefixes as $prefix) {
+ if (strpos($value, $prefix) !== false) {
+ return filter_var($value, \FILTER_VALIDATE_URL) !== false;
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Validate that a field is an active URL by verifying DNS record
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateUrlActive($field, $value)
+ {
+ foreach ($this->validUrlPrefixes as $prefix) {
+ if (strpos($value, $prefix) !== false) {
+ $host = parse_url(strtolower($value), PHP_URL_HOST);
+
+ return checkdnsrr($host, 'A') || checkdnsrr($host, 'AAAA') || checkdnsrr($host, 'CNAME');
+ }
+ }
+
+ return false;
+ }
+
+ /**
+ * Validate that a field contains only alphabetic characters
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateAlpha($field, $value)
+ {
+ return preg_match('/^([a-z])+$/i', $value);
+ }
+
+ /**
+ * Validate that a field contains only alpha-numeric characters
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateAlphaNum($field, $value)
+ {
+ return preg_match('/^([a-z0-9])+$/i', $value);
+ }
+
+ /**
+ * Validate that a field contains only alpha-numeric characters, dashes, and underscores
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateSlug($field, $value)
+ {
+ if (is_array($value)) {
+ return false;
+ }
+ return preg_match('/^([-a-z0-9_-])+$/i', $value);
+ }
+
+ /**
+ * Validate that a field passes a regular expression check
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateRegex($field, $value, $params)
+ {
+ return preg_match($params[0], $value);
+ }
+
+ /**
+ * Validate that a field is a valid date
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateDate($field, $value)
+ {
+ $isDate = false;
+ if ($value instanceof \DateTime) {
+ $isDate = true;
+ } else {
+ $isDate = strtotime($value) !== false;
+ }
+
+ return $isDate;
+ }
+
+ /**
+ * Validate that a field matches a date format
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateDateFormat($field, $value, $params)
+ {
+ $parsed = date_parse_from_format($params[0], $value);
+
+ return $parsed['error_count'] === 0 && $parsed['warning_count'] === 0;
+ }
+
+ /**
+ * Validate the date is before a given date
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateDateBefore($field, $value, $params)
+ {
+ $vtime = ($value instanceof \DateTime) ? $value->getTimestamp() : strtotime($value);
+ $ptime = ($params[0] instanceof \DateTime) ? $params[0]->getTimestamp() : strtotime($params[0]);
+
+ return $vtime < $ptime;
+ }
+
+ /**
+ * Validate the date is after a given date
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateDateAfter($field, $value, $params)
+ {
+ $vtime = ($value instanceof \DateTime) ? $value->getTimestamp() : strtotime($value);
+ $ptime = ($params[0] instanceof \DateTime) ? $params[0]->getTimestamp() : strtotime($params[0]);
+
+ return $vtime > $ptime;
+ }
+
+ /**
+ * Validate that a field contains a boolean.
+ *
+ * @param string $field
+ * @param mixed $value
+ * @return bool
+ */
+ protected function validateBoolean($field, $value)
+ {
+ return is_bool($value);
+ }
+
+ /**
+ * Validate that a field contains a valid credit card
+ * optionally filtered by an array
+ *
+ * @param string $field
+ * @param mixed $value
+ * @param array $params
+ * @return bool
+ */
+ protected function validateCreditCard($field, $value, $params)
+ {
+ /**
+ * I there has been an array of valid cards supplied, or the name of the users card
+ * or the name and an array of valid cards
+ */
+ if (!empty($params)) {
+ /**
+ * array of valid cards
+ */
+ if (is_array($params[0])) {
+ $cards = $params[0];
+ } elseif (is_string($params[0])) {
+ $cardType = $params[0];
+ if (isset($params[1]) && is_array($params[1])) {
+ $cards = $params[1];
+ if (!in_array($cardType, $cards)) {
+ return false;
+ }
+ }
+ }
+ }
+ /**
+ * Luhn algorithm
+ *
+ * @return bool
+ */
+ $numberIsValid = function () use ($value) {
+ $number = preg_replace('/[^0-9]+/', '', $value);
+ $sum = 0;
+
+ $strlen = strlen($number);
+ if ($strlen < 13) {
+ return false;
+ }
+ for ($i = 0; $i < $strlen; $i++) {
+ $digit = (int)substr($number, $strlen - $i - 1, 1);
+ if ($i % 2 == 1) {
+ $sub_total = $digit * 2;
+ if ($sub_total > 9) {
+ $sub_total = ($sub_total - 10) + 1;
+ }
+ } else {
+ $sub_total = $digit;
+ }
+ $sum += $sub_total;
+ }
+ if ($sum > 0 && $sum % 10 == 0) {
+ return true;
+ }
+
+ return false;
+ };
+
+ if ($numberIsValid()) {
+ if (!isset($cards)) {
+ return true;
+ } else {
+ $cardRegex = array(
+ 'visa' => '#^4[0-9]{12}(?:[0-9]{3})?$#',
+ 'mastercard' => '#^(5[1-5]|2[2-7])[0-9]{14}$#',
+ 'amex' => '#^3[47][0-9]{13}$#',
+ 'dinersclub' => '#^3(?:0[0-5]|[68][0-9])[0-9]{11}$#',
+ 'discover' => '#^6(?:011|5[0-9]{2})[0-9]{12}$#',
+ );
+
+ if (isset($cardType)) {
+ // if we don't have any valid cards specified and the card we've been given isn't in our regex array
+ if (!isset($cards) && !in_array($cardType, array_keys($cardRegex))) {
+ return false;
+ }
+
+ // we only need to test against one card type
+ return (preg_match($cardRegex[$cardType], $value) === 1);
+
+ } elseif (isset($cards)) {
+ // if we have cards, check our users card against only the ones we have
+ foreach ($cards as $card) {
+ if (in_array($card, array_keys($cardRegex))) {
+ // if the card is valid, we want to stop looping
+ if (preg_match($cardRegex[$card], $value) === 1) {
+ return true;
+ }
+ }
+ }
+ } else {
+ // loop through every card
+ foreach ($cardRegex as $regex) {
+ // until we find a valid one
+ if (preg_match($regex, $value) === 1) {
+ return true;
+ }
+ }
+ }
+ }
+ }
+
+ // if we've got this far, the card has passed no validation so it's invalid!
+ return false;
+ }
+
+ protected function validateInstanceOf($field, $value, $params)
+ {
+ $isInstanceOf = false;
+ if (is_object($value)) {
+ if (is_object($params[0]) && $value instanceof $params[0]) {
+ $isInstanceOf = true;
+ }
+ if (get_class($value) === $params[0]) {
+ $isInstanceOf = true;
+ }
+ }
+ if (is_string($value)) {
+ if (is_string($params[0]) && get_class($value) === $params[0]) {
+ $isInstanceOf = true;
+ }
+ }
+
+ return $isInstanceOf;
+ }
+
+ /**
+ * Validates whether or not a field is required based on whether or not other fields are present.
+ *
+ * @param string $field name of the field in the data array
+ * @param mixed $value value of this field
+ * @param array $params parameters for this rule
+ * @param array $fields full list of data to be validated
+ * @return bool
+ */
+ protected function validateRequiredWith($field, $value, $params, $fields)
+ {
+ $conditionallyReq = false;
+ // if we actually have conditionally required with fields to check against
+ if (isset($params[0])) {
+ // convert single value to array if it isn't already
+ $reqParams = is_array($params[0]) ? $params[0] : array($params[0]);
+ // check for the flag indicating if all fields are required
+ $allRequired = isset($params[1]) && (bool)$params[1];
+ $emptyFields = 0;
+ foreach ($reqParams as $requiredField) {
+ // check the field is set, not null, and not the empty string
+ if (isset($fields[$requiredField]) && !is_null($fields[$requiredField])
+ && (is_string($fields[$requiredField]) ? trim($fields[$requiredField]) !== '' : true)) {
+ if (!$allRequired) {
+ $conditionallyReq = true;
+ break;
+ } else {
+ $emptyFields++;
+ }
+ }
+ }
+ // if all required fields are present in strict mode, we're requiring it
+ if ($allRequired && $emptyFields === count($reqParams)) {
+ $conditionallyReq = true;
+ }
+ }
+ // if we have conditionally required fields
+ if ($conditionallyReq && (is_null($value) ||
+ is_string($value) && trim($value) === '')) {
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * Validates whether or not a field is required based on whether or not other fields are present.
+ *
+ * @param string $field name of the field in the data array
+ * @param mixed $value value of this field
+ * @param array $params parameters for this rule
+ * @param array $fields full list of data to be validated
+ * @return bool
+ */
+ protected function validateRequiredWithout($field, $value, $params, $fields)
+ {
+ $conditionallyReq = false;
+ // if we actually have conditionally required with fields to check against
+ if (isset($params[0])) {
+ // convert single value to array if it isn't already
+ $reqParams = is_array($params[0]) ? $params[0] : array($params[0]);
+ // check for the flag indicating if all fields are required
+ $allEmpty = isset($params[1]) && (bool)$params[1];
+ $filledFields = 0;
+ foreach ($reqParams as $requiredField) {
+ // check the field is NOT set, null, or the empty string, in which case we are requiring this value be present
+ if (!isset($fields[$requiredField]) || (is_null($fields[$requiredField])
+ || (is_string($fields[$requiredField]) && trim($fields[$requiredField]) === ''))) {
+ if (!$allEmpty) {
+ $conditionallyReq = true;
+ break;
+ } else {
+ $filledFields++;
+ }
+ }
+ }
+ // if all fields were empty, then we're requiring this in strict mode
+ if ($allEmpty && $filledFields === count($reqParams)) {
+ $conditionallyReq = true;
+ }
+ }
+ // if we have conditionally required fields
+ if ($conditionallyReq && (is_null($value) ||
+ is_string($value) && trim($value) === '')) {
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * Validate optional field
+ *
+ * @param $field
+ * @param $value
+ * @param $params
+ * @return bool
+ */
+ protected function validateOptional($field, $value, $params)
+ {
+ //Always return true
+ return true;
+ }
+
+ protected function validateArrayHasKeys($field, $value, $params)
+ {
+ if (!is_array($value) || !isset($params[0])) {
+ return false;
+ }
+ $requiredFields = $params[0];
+ if (count($requiredFields) === 0) {
+ return false;
+ }
+ foreach ($requiredFields as $fieldName) {
+ if (!array_key_exists($fieldName, $value)) {
+ return false;
+ }
+ }
+ return true;
+ }
+
+ /**
+ * Get array of fields and data
+ *
+ * @return array
+ */
+ public function data()
+ {
+ return $this->_fields;
+ }
+
+ /**
+ * Get array of error messages
+ *
+ * @param null|string $field
+ * @return array|bool
+ */
+ public function errors($field = null)
+ {
+ if ($field !== null) {
+ return isset($this->_errors[$field]) ? $this->_errors[$field] : false;
+ }
+
+ return $this->_errors;
+ }
+
+ /**
+ * Add an error to error messages array
+ *
+ * @param string $field
+ * @param string $message
+ * @param array $params
+ */
+ public function error($field, $message, array $params = array())
+ {
+ $message = $this->checkAndSetLabel($field, $message, $params);
+
+ $values = array();
+ // Printed values need to be in string format
+ foreach ($params as $param) {
+ if (is_array($param)) {
+ $param = "['" . implode("', '", $param) . "']";
+ }
+ if ($param instanceof \DateTime) {
+ $param = $param->format('Y-m-d');
+ } else {
+ if (is_object($param)) {
+ $param = get_class($param);
+ }
+ }
+ // Use custom label instead of field name if set
+ if (is_string($params[0])) {
+ if (isset($this->_labels[$param])) {
+ $param = $this->_labels[$param];
+ }
+ }
+ $values[] = $param;
+ }
+
+ $this->_errors[$field][] = vsprintf($message, $values);
+ }
+
+ /**
+ * Specify validation message to use for error for the last validation rule
+ *
+ * @param string $message
+ * @return Validator
+ */
+ public function message($message)
+ {
+ $this->_validations[count($this->_validations) - 1]['message'] = $message;
+
+ return $this;
+ }
+
+ /**
+ * Reset object properties
+ */
+ public function reset()
+ {
+ $this->_fields = array();
+ $this->_errors = array();
+ $this->_validations = array();
+ $this->_labels = array();
+ }
+
+ protected function getPart($data, $identifiers, $allow_empty = false)
+ {
+ // Catches the case where the field is an array of discrete values
+ if (is_array($identifiers) && count($identifiers) === 0) {
+ return array($data, false);
+ }
+ // Catches the case where the data isn't an array or object
+ if (is_scalar($data)) {
+ return array(null, false);
+ }
+ $identifier = array_shift($identifiers);
+ // Glob match
+ if ($identifier === '*') {
+ $values = array();
+ foreach ($data as $row) {
+ list($value, $multiple) = $this->getPart($row, $identifiers, $allow_empty);
+ if ($multiple) {
+ $values = array_merge($values, $value);
+ } else {
+ $values[] = $value;
+ }
+ }
+ return array($values, true);
+ } // Dead end, abort
+ elseif ($identifier === null || ! isset($data[$identifier])) {
+ if ($allow_empty){
+ //when empty values are allowed, we only care if the key exists
+ return array(null, array_key_exists($identifier, $data));
+ }
+ return array(null, false);
+ } // Match array element
+ elseif (count($identifiers) === 0) {
+ if ($allow_empty) {
+ //when empty values are allowed, we only care if the key exists
+ return array(null, array_key_exists($identifier, $data));
+ }
+ return array($data[$identifier], $allow_empty);
+ } // We need to go deeper
+ else {
+ return $this->getPart($data[$identifier], $identifiers, $allow_empty);
+ }
+ }
+
+ /**
+ * Run validations and return boolean result
+ *
+ * @return bool
+ */
+ public function validate()
+ {
+ $set_to_break = false;
+ foreach ($this->_validations as $v) {
+ foreach ($v['fields'] as $field) {
+ list($values, $multiple) = $this->getPart($this->_fields, explode('.', $field), false);
+
+ // Don't validate if the field is not required and the value is empty and we don't have a conditionally required rule present on the field
+ if (($this->hasRule('optional', $field) && isset($values))
+ || ($this->hasRule('requiredWith', $field) || $this->hasRule('requiredWithout', $field))) {
+ //Continue with execution below if statement
+ } elseif (
+ $v['rule'] !== 'required' && !$this->hasRule('required', $field) &&
+ $v['rule'] !== 'accepted' &&
+ (!isset($values) || $values === '' || ($multiple && count($values) == 0))
+ ) {
+ continue;
+ }
+
+ // Callback is user-specified or assumed method on class
+ $errors = $this->getRules();
+ if (isset($errors[$v['rule']])) {
+ $callback = $errors[$v['rule']];
+ } else {
+ $callback = array($this, 'validate' . ucfirst($v['rule']));
+ }
+
+ if (!$multiple) {
+ $values = array($values);
+ } else if (! $this->hasRule('required', $field)){
+ $values = array_filter($values);
+ }
+
+ $result = true;
+ foreach ($values as $value) {
+ $result = $result && call_user_func($callback, $field, $value, $v['params'], $this->_fields);
+ }
+
+ if (!$result) {
+ $this->error($field, $v['message'], $v['params']);
+ if ($this->stop_on_first_fail) {
+ $set_to_break = true;
+ break;
+ }
+ }
+ }
+ if ($set_to_break) {
+ break;
+ }
+ }
+
+ return count($this->errors()) === 0;
+ }
+
+ /**
+ * Should the validation stop a rule is failed
+ * @param bool $stop
+ */
+ public function stopOnFirstFail($stop = true)
+ {
+ $this->stop_on_first_fail = (bool)$stop;
+ }
+
+ /**
+ * Returns all rule callbacks, the static and instance ones.
+ *
+ * @return array
+ */
+ protected function getRules()
+ {
+ return array_merge($this->_instanceRules, static::$_rules);
+ }
+
+ /**
+ * Returns all rule message, the static and instance ones.
+ *
+ * @return array
+ */
+ protected function getRuleMessages()
+ {
+ return array_merge($this->_instanceRuleMessage, static::$_ruleMessages);
+ }
+
+ /**
+ * Determine whether a field is being validated by the given rule.
+ *
+ * @param string $name The name of the rule
+ * @param string $field The name of the field
+ * @return bool
+ */
+ protected function hasRule($name, $field)
+ {
+ foreach ($this->_validations as $validation) {
+ if ($validation['rule'] == $name) {
+ if (in_array($field, $validation['fields'])) {
+ return true;
+ }
+ }
+ }
+
+ return false;
+ }
+
+ protected static function assertRuleCallback($callback)
+ {
+ if (!is_callable($callback)) {
+ throw new \InvalidArgumentException(
+ 'Second argument must be a valid callback. Given argument was not callable.'
+ );
+ }
+ }
+
+ /**
+ * Adds a new validation rule callback that is tied to the current
+ * instance only.
+ *
+ * @param string $name
+ * @param callable $callback
+ * @param string $message
+ * @throws \InvalidArgumentException
+ */
+ public function addInstanceRule($name, $callback, $message = null)
+ {
+ static::assertRuleCallback($callback);
+
+ $this->_instanceRules[$name] = $callback;
+ $this->_instanceRuleMessage[$name] = $message;
+ }
+
+ /**
+ * Register new validation rule callback
+ *
+ * @param string $name
+ * @param callable $callback
+ * @param string $message
+ * @throws \InvalidArgumentException
+ */
+ public static function addRule($name, $callback, $message = null)
+ {
+ if ($message === null) {
+ $message = static::ERROR_DEFAULT;
+ }
+
+ static::assertRuleCallback($callback);
+
+ static::$_rules[$name] = $callback;
+ static::$_ruleMessages[$name] = $message;
+ }
+
+ /**
+ * @param mixed $fields
+ * @return string
+ */
+ public function getUniqueRuleName($fields)
+ {
+ if (is_array($fields)) {
+ $fields = implode("_", $fields);
+ }
+
+ $orgName = "{$fields}_rule";
+ $name = $orgName;
+ $rules = $this->getRules();
+ while (isset($rules[$name])) {
+ $name = $orgName . "_" . rand(0, 10000);
+ }
+
+ return $name;
+ }
+
+ /**
+ * Returns true if either a validator with the given name has been
+ * registered or there is a default validator by that name.
+ *
+ * @param string $name
+ * @return bool
+ */
+ public function hasValidator($name)
+ {
+ $rules = $this->getRules();
+ return method_exists($this, "validate" . ucfirst($name))
+ || isset($rules[$name]);
+ }
+
+ /**
+ * Convenience method to add a single validation rule
+ *
+ * @param string|callable $rule
+ * @param array|string $fields
+ * @return Validator
+ * @throws \InvalidArgumentException
+ */
+ public function rule($rule, $fields)
+ {
+ // Get any other arguments passed to function
+ $params = array_slice(func_get_args(), 2);
+
+ if (is_callable($rule)
+ && !(is_string($rule) && $this->hasValidator($rule))) {
+ $name = $this->getUniqueRuleName($fields);
+ $message = isset($params[0]) ? $params[0] : null;
+ $this->addInstanceRule($name, $rule, $message);
+ $rule = $name;
+ }
+
+ $errors = $this->getRules();
+ if (!isset($errors[$rule])) {
+ $ruleMethod = 'validate' . ucfirst($rule);
+ if (!method_exists($this, $ruleMethod)) {
+ throw new \InvalidArgumentException(
+ "Rule '" . $rule . "' has not been registered with " . get_called_class() . "::addRule()."
+ );
+ }
+ }
+
+ // Ensure rule has an accompanying message
+ $messages = $this->getRuleMessages();
+ $message = isset($messages[$rule]) ? $messages[$rule] : self::ERROR_DEFAULT;
+
+ // Ensure message contains field label
+ if (function_exists('mb_strpos')) {
+ $notContains = mb_strpos($message, '{field}') === false;
+ } else {
+ $notContains = strpos($message, '{field}') === false;
+ }
+ if ($notContains) {
+ $message = '{field} ' . $message;
+ }
+
+ $this->_validations[] = array(
+ 'rule' => $rule,
+ 'fields' => (array)$fields,
+ 'params' => (array)$params,
+ 'message' => $message
+ );
+
+ return $this;
+ }
+
+ /**
+ * Add label to rule
+ *
+ * @param string $value
+ * @return Validator
+ */
+ public function label($value)
+ {
+ $lastRules = $this->_validations[count($this->_validations) - 1]['fields'];
+ $this->labels(array($lastRules[0] => $value));
+
+ return $this;
+ }
+
+ /**
+ * Add labels to rules
+ *
+ * @param array $labels
+ * @return Validator
+ */
+ public function labels($labels = array())
+ {
+ $this->_labels = array_merge($this->_labels, $labels);
+
+ return $this;
+ }
+
+ /**
+ * @param string $field
+ * @param string $message
+ * @param array $params
+ * @return array
+ */
+ protected function checkAndSetLabel($field, $message, $params)
+ {
+ if (isset($this->_labels[$field])) {
+ $message = str_replace('{field}', $this->_labels[$field], $message);
+
+ if (is_array($params)) {
+ $i = 1;
+ foreach ($params as $k => $v) {
+ $tag = '{field' . $i . '}';
+ $label = isset($params[$k]) && (is_numeric($params[$k]) || is_string($params[$k])) && isset($this->_labels[$params[$k]]) ? $this->_labels[$params[$k]] : $tag;
+ $message = str_replace($tag, $label, $message);
+ $i++;
+ }
+ }
+ } else {
+ $message = str_replace('{field}', ucwords(str_replace('_', ' ', $field)), $message);
+ }
+
+ return $message;
+ }
+
+ /**
+ * Convenience method to add multiple validation rules with an array
+ *
+ * @param array $rules
+ */
+ public function rules($rules)
+ {
+ foreach ($rules as $ruleType => $params) {
+ if (is_array($params)) {
+ foreach ($params as $innerParams) {
+ if (!is_array($innerParams)) {
+ $innerParams = (array)$innerParams;
+ }
+ array_unshift($innerParams, $ruleType);
+ call_user_func_array(array($this, 'rule'), $innerParams);
+ }
+ } else {
+ $this->rule($ruleType, $params);
+ }
+ }
+ }
+
+ /**
+ * Replace data on cloned instance
+ *
+ * @param array $data
+ * @param array $fields
+ * @return Validator
+ */
+ public function withData($data, $fields = array())
+ {
+ $clone = clone $this;
+ $clone->_fields = !empty($fields) ? array_intersect_key($data, array_flip($fields)) : $data;
+ $clone->_errors = array();
+ return $clone;
+ }
+
+ /**
+ * Convenience method to add validation rule(s) by field
+ *
+ * @param string $field
+ * @param array $rules
+ */
+ public function mapFieldRules($field, $rules)
+ {
+ $me = $this;
+
+ array_map(function ($rule) use ($field, $me) {
+
+ //rule must be an array
+ $rule = (array)$rule;
+
+ //First element is the name of the rule
+ $ruleName = array_shift($rule);
+
+ //find a custom message, if any
+ $message = null;
+ if (isset($rule['message'])) {
+ $message = $rule['message'];
+ unset($rule['message']);
+ }
+ //Add the field and additional parameters to the rule
+ $added = call_user_func_array(array($me, 'rule'), array_merge(array($ruleName, $field), $rule));
+ if (!empty($message)) {
+ $added->message($message);
+ }
+ }, (array)$rules);
+ }
+
+ /**
+ * Convenience method to add validation rule(s) for multiple fields
+ *
+ * @param array $rules
+ */
+ public function mapFieldsRules($rules)
+ {
+ $me = $this;
+ array_map(function ($field) use ($rules, $me) {
+ $me->mapFieldRules($field, $rules[$field]);
+ }, array_keys($rules));
+ }
+}