logos as $logo ): ?>
diff --git a/templates/checkout/product-button.php b/templates/checkout/product-button.php
new file mode 100644
index 0000000..36ff99e
--- /dev/null
+++ b/templates/checkout/product-button.php
@@ -0,0 +1,23 @@
+
+
+
+
+
+
+
+
diff --git a/vendors/league-iso3166/composer.json b/vendors/league-iso3166/composer.json
new file mode 100644
index 0000000..e278f81
--- /dev/null
+++ b/vendors/league-iso3166/composer.json
@@ -0,0 +1,5 @@
+{
+ "require": {
+ "league/iso3166": "^2.0"
+ }
+}
diff --git a/vendors/league-iso3166/composer.lock b/vendors/league-iso3166/composer.lock
new file mode 100644
index 0000000..66d7945
--- /dev/null
+++ b/vendors/league-iso3166/composer.lock
@@ -0,0 +1,73 @@
+{
+ "_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#composer-lock-the-lock-file",
+ "This file is @generated automatically"
+ ],
+ "hash": "006684f7154e90460313bb2e9cee2112",
+ "content-hash": "7a8685f60fbd84b7d02b0c5e20dfbabd",
+ "packages": [
+ {
+ "name": "league/iso3166",
+ "version": "2.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/iso3166.git",
+ "reference": "81c6a2c9250c2689460e5120a9b5952eedd927b0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/iso3166/zipball/81c6a2c9250c2689460e5120a9b5952eedd927b0",
+ "reference": "81c6a2c9250c2689460e5120a9b5952eedd927b0",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.6 || ^7.0"
+ },
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "^2.0@dev || ^2.0",
+ "phpunit/phpunit": "^4.6 || ^5.0"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "League\\ISO3166\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Rob Bast",
+ "email": "rob.bast@gmail.com"
+ }
+ ],
+ "description": "ISO 3166-1 PHP Library",
+ "homepage": "https://github.com/thephpleague/iso3166",
+ "keywords": [
+ "3166",
+ "3166-1",
+ "ISO 3166",
+ "countries",
+ "iso",
+ "library"
+ ],
+ "time": "2017-05-11 11:54:51"
+ }
+ ],
+ "packages-dev": [],
+ "aliases": [],
+ "minimum-stability": "stable",
+ "stability-flags": [],
+ "prefer-stable": false,
+ "prefer-lowest": false,
+ "platform": [],
+ "platform-dev": []
+}
diff --git a/vendors/league-iso3166/vendor/autoload.php b/vendors/league-iso3166/vendor/autoload.php
new file mode 100644
index 0000000..2b30d76
--- /dev/null
+++ b/vendors/league-iso3166/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;
+
+ 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;
+ }
+
+ /**
+ * 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)
+ {
+ // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731
+ if ('\\' == $class[0]) {
+ $class = substr($class, 1);
+ }
+
+ // class map lookup
+ if (isset($this->classMap[$class])) {
+ return $this->classMap[$class];
+ }
+ if ($this->classMapAuthoritative) {
+ return false;
+ }
+
+ $file = $this->findFileWithExtension($class, '.php');
+
+ // Search for Hack files if we are running on HHVM
+ if ($file === null && defined('HHVM_VERSION')) {
+ $file = $this->findFileWithExtension($class, '.hh');
+ }
+
+ if ($file === null) {
+ // Remember that this class does not exist.
+ return $this->classMap[$class] = false;
+ }
+
+ return $file;
+ }
+
+ private function findFileWithExtension($class, $ext)
+ {
+ // PSR-4 lookup
+ $logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
+
+ $first = $class[0];
+ if (isset($this->prefixLengthsPsr4[$first])) {
+ foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) {
+ if (0 === strpos($class, $prefix)) {
+ foreach ($this->prefixDirsPsr4[$prefix] as $dir) {
+ if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) {
+ 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;
+ }
+ }
+}
+
+/**
+ * Scope isolated include.
+ *
+ * Prevents access to $this/self from included files.
+ */
+function includeFile($file)
+{
+ include $file;
+}
diff --git a/vendors/league-iso3166/vendor/composer/LICENSE b/vendors/league-iso3166/vendor/composer/LICENSE
new file mode 100644
index 0000000..ee274f1
--- /dev/null
+++ b/vendors/league-iso3166/vendor/composer/LICENSE
@@ -0,0 +1,433 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: Composer
+Upstream-Contact: Jordi Boggiano
+Source: https://github.com/composer/composer
+
+Files: *
+Copyright: 2016, Nils Adermann
+ 2016, Jordi Boggiano
+License: Expat
+
+Files: res/cacert.pem
+Copyright: 2015, Mozilla Foundation
+License: MPL-2.0
+
+Files: src/Composer/Util/RemoteFilesystem.php
+ src/Composer/Util/TlsHelper.php
+Copyright: 2016, Nils Adermann
+ 2016, Jordi Boggiano
+ 2013, Evan Coury
+License: Expat and BSD-2-Clause
+
+License: BSD-2-Clause
+ 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.
+ .
+ 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 OWNER 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.
+
+License: Expat
+ 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.
+
+License: MPL-2.0
+ 1. Definitions
+ --------------
+ .
+ 1.1. "Contributor"
+ means each individual or legal entity that creates, contributes to
+ the creation of, or owns Covered Software.
+ .
+ 1.2. "Contributor Version"
+ means the combination of the Contributions of others (if any) used
+ by a Contributor and that particular Contributor's Contribution.
+ .
+ 1.3. "Contribution"
+ means Covered Software of a particular Contributor.
+ .
+ 1.4. "Covered Software"
+ means Source Code Form to which the initial Contributor has attached
+ the notice in Exhibit A, the Executable Form of such Source Code
+ Form, and Modifications of such Source Code Form, in each case
+ including portions thereof.
+ .
+ 1.5. "Incompatible With Secondary Licenses"
+ means
+ .
+ (a) that the initial Contributor has attached the notice described
+ in Exhibit B to the Covered Software; or
+ .
+ (b) that the Covered Software was made available under the terms of
+ version 1.1 or earlier of the License, but not also under the
+ terms of a Secondary License.
+ .
+ 1.6. "Executable Form"
+ means any form of the work other than Source Code Form.
+ .
+ 1.7. "Larger Work"
+ means a work that combines Covered Software with other material, in
+ a separate file or files, that is not Covered Software.
+ .
+ 1.8. "License"
+ means this document.
+ .
+ 1.9. "Licensable"
+ means having the right to grant, to the maximum extent possible,
+ whether at the time of the initial grant or subsequently, any and
+ all of the rights conveyed by this License.
+ .
+ 1.10. "Modifications"
+ means any of the following:
+ .
+ (a) any file in Source Code Form that results from an addition to,
+ deletion from, or modification of the contents of Covered
+ Software; or
+ .
+ (b) any new file in Source Code Form that contains any Covered
+ Software.
+ .
+ 1.11. "Patent Claims" of a Contributor
+ means any patent claim(s), including without limitation, method,
+ process, and apparatus claims, in any patent Licensable by such
+ Contributor that would be infringed, but for the grant of the
+ License, by the making, using, selling, offering for sale, having
+ made, import, or transfer of either its Contributions or its
+ Contributor Version.
+ .
+ 1.12. "Secondary License"
+ means either the GNU General Public License, Version 2.0, the GNU
+ Lesser General Public License, Version 2.1, the GNU Affero General
+ Public License, Version 3.0, or any later versions of those
+ licenses.
+ .
+ 1.13. "Source Code Form"
+ means the form of the work preferred for making modifications.
+ .
+ 1.14. "You" (or "Your")
+ means an individual or a legal entity exercising rights under this
+ License. For legal entities, "You" includes any entity that
+ controls, is controlled by, or is under common control with You. For
+ purposes of this definition, "control" means (a) the power, direct
+ or indirect, to cause the direction or management of such entity,
+ whether by contract or otherwise, or (b) ownership of more than
+ fifty percent (50%) of the outstanding shares or beneficial
+ ownership of such entity.
+ .
+ 2. License Grants and Conditions
+ --------------------------------
+ .
+ 2.1. Grants
+ .
+ Each Contributor hereby grants You a world-wide, royalty-free,
+ non-exclusive license:
+ .
+ (a) under intellectual property rights (other than patent or trademark)
+ Licensable by such Contributor to use, reproduce, make available,
+ modify, display, perform, distribute, and otherwise exploit its
+ Contributions, either on an unmodified basis, with Modifications, or
+ as part of a Larger Work; and
+ .
+ (b) under Patent Claims of such Contributor to make, use, sell, offer
+ for sale, have made, import, and otherwise transfer either its
+ Contributions or its Contributor Version.
+ .
+ 2.2. Effective Date
+ .
+ The licenses granted in Section 2.1 with respect to any Contribution
+ become effective for each Contribution on the date the Contributor first
+ distributes such Contribution.
+ .
+ 2.3. Limitations on Grant Scope
+ .
+ The licenses granted in this Section 2 are the only rights granted under
+ this License. No additional rights or licenses will be implied from the
+ distribution or licensing of Covered Software under this License.
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
+ Contributor:
+ .
+ (a) for any code that a Contributor has removed from Covered Software;
+ or
+ .
+ (b) for infringements caused by: (i) Your and any other third party's
+ modifications of Covered Software, or (ii) the combination of its
+ Contributions with other software (except as part of its Contributor
+ Version); or
+ .
+ (c) under Patent Claims infringed by Covered Software in the absence of
+ its Contributions.
+ .
+ This License does not grant any rights in the trademarks, service marks,
+ or logos of any Contributor (except as may be necessary to comply with
+ the notice requirements in Section 3.4).
+ .
+ 2.4. Subsequent Licenses
+ .
+ No Contributor makes additional grants as a result of Your choice to
+ distribute the Covered Software under a subsequent version of this
+ License (see Section 10.2) or under the terms of a Secondary License (if
+ permitted under the terms of Section 3.3).
+ .
+ 2.5. Representation
+ .
+ Each Contributor represents that the Contributor believes its
+ Contributions are its original creation(s) or it has sufficient rights
+ to grant the rights to its Contributions conveyed by this License.
+ .
+ 2.6. Fair Use
+ .
+ This License is not intended to limit any rights You have under
+ applicable copyright doctrines of fair use, fair dealing, or other
+ equivalents.
+ .
+ 2.7. Conditions
+ .
+ Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
+ in Section 2.1.
+ .
+ 3. Responsibilities
+ -------------------
+ .
+ 3.1. Distribution of Source Form
+ .
+ All distribution of Covered Software in Source Code Form, including any
+ Modifications that You create or to which You contribute, must be under
+ the terms of this License. You must inform recipients that the Source
+ Code Form of the Covered Software is governed by the terms of this
+ License, and how they can obtain a copy of this License. You may not
+ attempt to alter or restrict the recipients' rights in the Source Code
+ Form.
+ .
+ 3.2. Distribution of Executable Form
+ .
+ If You distribute Covered Software in Executable Form then:
+ .
+ (a) such Covered Software must also be made available in Source Code
+ Form, as described in Section 3.1, and You must inform recipients of
+ the Executable Form how they can obtain a copy of such Source Code
+ Form by reasonable means in a timely manner, at a charge no more
+ than the cost of distribution to the recipient; and
+ .
+ (b) You may distribute such Executable Form under the terms of this
+ License, or sublicense it under different terms, provided that the
+ license for the Executable Form does not attempt to limit or alter
+ the recipients' rights in the Source Code Form under this License.
+ .
+ 3.3. Distribution of a Larger Work
+ .
+ You may create and distribute a Larger Work under terms of Your choice,
+ provided that You also comply with the requirements of this License for
+ the Covered Software. If the Larger Work is a combination of Covered
+ Software with a work governed by one or more Secondary Licenses, and the
+ Covered Software is not Incompatible With Secondary Licenses, this
+ License permits You to additionally distribute such Covered Software
+ under the terms of such Secondary License(s), so that the recipient of
+ the Larger Work may, at their option, further distribute the Covered
+ Software under the terms of either this License or such Secondary
+ License(s).
+ .
+ 3.4. Notices
+ .
+ You may not remove or alter the substance of any license notices
+ (including copyright notices, patent notices, disclaimers of warranty,
+ or limitations of liability) contained within the Source Code Form of
+ the Covered Software, except that You may alter any license notices to
+ the extent required to remedy known factual inaccuracies.
+ .
+ 3.5. Application of Additional Terms
+ .
+ You may choose to offer, and to charge a fee for, warranty, support,
+ indemnity or liability obligations to one or more recipients of Covered
+ Software. However, You may do so only on Your own behalf, and not on
+ behalf of any Contributor. You must make it absolutely clear that any
+ such warranty, support, indemnity, or liability obligation is offered by
+ You alone, and You hereby agree to indemnify every Contributor for any
+ liability incurred by such Contributor as a result of warranty, support,
+ indemnity or liability terms You offer. You may include additional
+ disclaimers of warranty and limitations of liability specific to any
+ jurisdiction.
+ .
+ 4. Inability to Comply Due to Statute or Regulation
+ ---------------------------------------------------
+ .
+ If it is impossible for You to comply with any of the terms of this
+ License with respect to some or all of the Covered Software due to
+ statute, judicial order, or regulation then You must: (a) comply with
+ the terms of this License to the maximum extent possible; and (b)
+ describe the limitations and the code they affect. Such description must
+ be placed in a text file included with all distributions of the Covered
+ Software under this License. Except to the extent prohibited by statute
+ or regulation, such description must be sufficiently detailed for a
+ recipient of ordinary skill to be able to understand it.
+ .
+ 5. Termination
+ --------------
+ .
+ 5.1. The rights granted under this License will terminate automatically
+ if You fail to comply with any of its terms. However, if You become
+ compliant, then the rights granted under this License from a particular
+ Contributor are reinstated (a) provisionally, unless and until such
+ Contributor explicitly and finally terminates Your grants, and (b) on an
+ ongoing basis, if such Contributor fails to notify You of the
+ non-compliance by some reasonable means prior to 60 days after You have
+ come back into compliance. Moreover, Your grants from a particular
+ Contributor are reinstated on an ongoing basis if such Contributor
+ notifies You of the non-compliance by some reasonable means, this is the
+ first time You have received notice of non-compliance with this License
+ from such Contributor, and You become compliant prior to 30 days after
+ Your receipt of the notice.
+ .
+ 5.2. If You initiate litigation against any entity by asserting a patent
+ infringement claim (excluding declaratory judgment actions,
+ counter-claims, and cross-claims) alleging that a Contributor Version
+ directly or indirectly infringes any patent, then the rights granted to
+ You by any and all Contributors for the Covered Software under Section
+ 2.1 of this License shall terminate.
+ .
+ 5.3. In the event of termination under Sections 5.1 or 5.2 above, all
+ end user license agreements (excluding distributors and resellers) which
+ have been validly granted by You or Your distributors under this License
+ prior to termination shall survive termination.
+ .
+ ************************************************************************
+ * *
+ * 6. Disclaimer of Warranty *
+ * ------------------------- *
+ * *
+ * Covered Software is provided under this License on an "as is" *
+ * basis, without warranty of any kind, either expressed, implied, or *
+ * statutory, including, without limitation, warranties that the *
+ * Covered Software is free of defects, merchantable, fit for a *
+ * particular purpose or non-infringing. The entire risk as to the *
+ * quality and performance of the Covered Software is with You. *
+ * Should any Covered Software prove defective in any respect, You *
+ * (not any Contributor) assume the cost of any necessary servicing, *
+ * repair, or correction. This disclaimer of warranty constitutes an *
+ * essential part of this License. No use of any Covered Software is *
+ * authorized under this License except under this disclaimer. *
+ * *
+ ************************************************************************
+ .
+ ************************************************************************
+ * *
+ * 7. Limitation of Liability *
+ * -------------------------- *
+ * *
+ * Under no circumstances and under no legal theory, whether tort *
+ * (including negligence), contract, or otherwise, shall any *
+ * Contributor, or anyone who distributes Covered Software as *
+ * permitted above, be liable to You for any direct, indirect, *
+ * special, incidental, or consequential damages of any character *
+ * including, without limitation, damages for lost profits, loss of *
+ * goodwill, work stoppage, computer failure or malfunction, or any *
+ * and all other commercial damages or losses, even if such party *
+ * shall have been informed of the possibility of such damages. This *
+ * limitation of liability shall not apply to liability for death or *
+ * personal injury resulting from such party's negligence to the *
+ * extent applicable law prohibits such limitation. Some *
+ * jurisdictions do not allow the exclusion or limitation of *
+ * incidental or consequential damages, so this exclusion and *
+ * limitation may not apply to You. *
+ * *
+ ************************************************************************
+ .
+ 8. Litigation
+ -------------
+ .
+ Any litigation relating to this License may be brought only in the
+ courts of a jurisdiction where the defendant maintains its principal
+ place of business and such litigation shall be governed by laws of that
+ jurisdiction, without reference to its conflict-of-law provisions.
+ Nothing in this Section shall prevent a party's ability to bring
+ cross-claims or counter-claims.
+ .
+ 9. Miscellaneous
+ ----------------
+ .
+ This License represents the complete agreement concerning the subject
+ matter hereof. If any provision of this License is held to be
+ unenforceable, such provision shall be reformed only to the extent
+ necessary to make it enforceable. Any law or regulation which provides
+ that the language of a contract shall be construed against the drafter
+ shall not be used to construe this License against a Contributor.
+ .
+ 10. Versions of the License
+ ---------------------------
+ .
+ 10.1. New Versions
+ .
+ Mozilla Foundation is the license steward. Except as provided in Section
+ 10.3, no one other than the license steward has the right to modify or
+ publish new versions of this License. Each version will be given a
+ distinguishing version number.
+ .
+ 10.2. Effect of New Versions
+ .
+ You may distribute the Covered Software under the terms of the version
+ of the License under which You originally received the Covered Software,
+ or under the terms of any subsequent version published by the license
+ steward.
+ .
+ 10.3. Modified Versions
+ .
+ If you create software not governed by this License, and you want to
+ create a new license for such software, you may create and use a
+ modified version of this License if you rename the license and remove
+ any references to the name of the license steward (except to note that
+ such modified license differs from this License).
+ .
+ 10.4. Distributing Source Code Form that is Incompatible With Secondary
+ Licenses
+ .
+ If You choose to distribute Source Code Form that is Incompatible With
+ Secondary Licenses under the terms of this version of the License, the
+ notice described in Exhibit B of this License must be attached.
+ .
+ Exhibit A - Source Code Form License Notice
+ -------------------------------------------
+ .
+ This Source Code Form is subject to the terms of the Mozilla Public
+ License, v. 2.0. If a copy of the MPL was not distributed with this
+ file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ .
+ If it is not possible or desirable to put the notice in a particular
+ file, then You may include the notice in a location (such as a LICENSE
+ file in a relevant directory) where a recipient would be likely to look
+ for such a notice.
+ .
+ You may add additional accurate notices of copyright ownership.
+ .
+ Exhibit B - "Incompatible With Secondary Licenses" Notice
+ ---------------------------------------------------------
+ .
+ This Source Code Form is "Incompatible With Secondary Licenses", as
+ defined by the Mozilla Public License, v. 2.0.
diff --git a/vendors/league-iso3166/vendor/composer/autoload_classmap.php b/vendors/league-iso3166/vendor/composer/autoload_classmap.php
new file mode 100644
index 0000000..7a91153
--- /dev/null
+++ b/vendors/league-iso3166/vendor/composer/autoload_classmap.php
@@ -0,0 +1,9 @@
+ array($vendorDir . '/league/iso3166/src'),
+);
diff --git a/vendors/league-iso3166/vendor/composer/autoload_real.php b/vendors/league-iso3166/vendor/composer/autoload_real.php
new file mode 100644
index 0000000..063d92e
--- /dev/null
+++ b/vendors/league-iso3166/vendor/composer/autoload_real.php
@@ -0,0 +1,45 @@
+ $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);
+
+ return $loader;
+ }
+}
diff --git a/vendors/league-iso3166/vendor/composer/installed.json b/vendors/league-iso3166/vendor/composer/installed.json
new file mode 100644
index 0000000..421d94d
--- /dev/null
+++ b/vendors/league-iso3166/vendor/composer/installed.json
@@ -0,0 +1,58 @@
+[
+ {
+ "name": "league/iso3166",
+ "version": "2.0.0",
+ "version_normalized": "2.0.0.0",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/thephpleague/iso3166.git",
+ "reference": "81c6a2c9250c2689460e5120a9b5952eedd927b0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/thephpleague/iso3166/zipball/81c6a2c9250c2689460e5120a9b5952eedd927b0",
+ "reference": "81c6a2c9250c2689460e5120a9b5952eedd927b0",
+ "shasum": ""
+ },
+ "require": {
+ "php": "^5.6 || ^7.0"
+ },
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "^2.0@dev || ^2.0",
+ "phpunit/phpunit": "^4.6 || ^5.0"
+ },
+ "time": "2017-05-11 11:54:51",
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.x-dev"
+ }
+ },
+ "installation-source": "dist",
+ "autoload": {
+ "psr-4": {
+ "League\\ISO3166\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Rob Bast",
+ "email": "rob.bast@gmail.com"
+ }
+ ],
+ "description": "ISO 3166-1 PHP Library",
+ "homepage": "https://github.com/thephpleague/iso3166",
+ "keywords": [
+ "3166",
+ "3166-1",
+ "ISO 3166",
+ "countries",
+ "iso",
+ "library"
+ ]
+ }
+]
diff --git a/vendors/league-iso3166/vendor/league/iso3166/LICENSE b/vendors/league-iso3166/vendor/league/iso3166/LICENSE
new file mode 100644
index 0000000..fe97913
--- /dev/null
+++ b/vendors/league-iso3166/vendor/league/iso3166/LICENSE
@@ -0,0 +1,19 @@
+Copyright (C) Rob Bast
+
+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/vendors/league-iso3166/vendor/league/iso3166/composer.json b/vendors/league-iso3166/vendor/league/iso3166/composer.json
new file mode 100644
index 0000000..f09c918
--- /dev/null
+++ b/vendors/league-iso3166/vendor/league/iso3166/composer.json
@@ -0,0 +1,36 @@
+{
+ "name": "league/iso3166",
+ "description": "ISO 3166-1 PHP Library",
+ "autoload": {
+ "psr-4": { "League\\ISO3166\\": "src" }
+ },
+ "autoload-dev": {
+ "psr-4": { "League\\ISO3166\\": "tests" }
+ },
+ "require": {
+ "php": "^5.6 || ^7.0"
+ },
+ "require-dev": {
+ "friendsofphp/php-cs-fixer": "^2.0@dev || ^2.0",
+ "phpunit/phpunit": "^4.6 || ^5.0"
+ },
+ "scripts": {
+ "cs-review": "php-cs-fixer fix --verbose --diff --dry-run",
+ "cs-fix": "php-cs-fixer fix --verbose",
+ "test": "phpunit"
+ },
+ "extra": {
+ "branch-alias": { "dev-master": "2.x-dev" }
+ },
+ "keywords": ["ISO 3166", "ISO", "3166", "3166-1", "countries", "library"],
+ "homepage": "https://github.com/thephpleague/iso3166",
+ "license": "MIT",
+ "authors": [{
+ "name": "Rob Bast",
+ "email": "rob.bast@gmail.com"
+ }],
+ "support": {
+ "issues": "https://github.com/thephpleague/iso3166/issues",
+ "source": "https://github.com/thephpleague/iso3166"
+ }
+}
diff --git a/vendors/league-iso3166/vendor/league/iso3166/src/Exception/DomainException.php b/vendors/league-iso3166/vendor/league/iso3166/src/Exception/DomainException.php
new file mode 100644
index 0000000..dbb788e
--- /dev/null
+++ b/vendors/league-iso3166/vendor/league/iso3166/src/Exception/DomainException.php
@@ -0,0 +1,14 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+namespace League\ISO3166\Exception;
+
+final class DomainException extends \DomainException
+{
+}
diff --git a/vendors/league-iso3166/vendor/league/iso3166/src/Exception/InvalidArgumentException.php b/vendors/league-iso3166/vendor/league/iso3166/src/Exception/InvalidArgumentException.php
new file mode 100644
index 0000000..fa334e8
--- /dev/null
+++ b/vendors/league-iso3166/vendor/league/iso3166/src/Exception/InvalidArgumentException.php
@@ -0,0 +1,14 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+namespace League\ISO3166\Exception;
+
+final class InvalidArgumentException extends \InvalidArgumentException
+{
+}
diff --git a/vendors/league-iso3166/vendor/league/iso3166/src/Exception/OutOfBoundsException.php b/vendors/league-iso3166/vendor/league/iso3166/src/Exception/OutOfBoundsException.php
new file mode 100644
index 0000000..4fab4ef
--- /dev/null
+++ b/vendors/league-iso3166/vendor/league/iso3166/src/Exception/OutOfBoundsException.php
@@ -0,0 +1,14 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+namespace League\ISO3166\Exception;
+
+final class OutOfBoundsException extends \OutOfBoundsException
+{
+}
diff --git a/vendors/league-iso3166/vendor/league/iso3166/src/Guards.php b/vendors/league-iso3166/vendor/league/iso3166/src/Guards.php
new file mode 100644
index 0000000..8131871
--- /dev/null
+++ b/vendors/league-iso3166/vendor/league/iso3166/src/Guards.php
@@ -0,0 +1,85 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+namespace League\ISO3166;
+
+use League\ISO3166\Exception\DomainException;
+use League\ISO3166\Exception\InvalidArgumentException;
+
+final class Guards
+{
+ /**
+ * Assert that input looks like an alpha2 key.
+ *
+ * @param string $alpha2
+ *
+ * @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
+ * @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha2 key
+ */
+ public static function guardAgainstInvalidAlpha2($alpha2)
+ {
+ if (!is_string($alpha2)) {
+ throw new InvalidArgumentException(
+ sprintf('Expected $alpha2 to be of type string, got: %s', gettype($alpha2))
+ );
+ }
+
+ if (!preg_match('/^[a-zA-Z]{2}$/', $alpha2)) {
+ throw new DomainException(
+ sprintf('Not a valid alpha2 key: %s', $alpha2)
+ );
+ }
+ }
+
+ /**
+ * Assert that input looks like an alpha3 key.
+ *
+ * @param string $alpha3
+ *
+ * @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
+ * @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha3 key
+ */
+ public static function guardAgainstInvalidAlpha3($alpha3)
+ {
+ if (!is_string($alpha3)) {
+ throw new InvalidArgumentException(
+ sprintf('Expected $alpha3 to be of type string, got: %s', gettype($alpha3))
+ );
+ }
+
+ if (!preg_match('/^[a-zA-Z]{3}$/', $alpha3)) {
+ throw new DomainException(
+ sprintf('Not a valid alpha3 key: %s', $alpha3)
+ );
+ }
+ }
+
+ /**
+ * Assert that input looks like a numeric key.
+ *
+ * @param string $numeric
+ *
+ * @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
+ * @throws \League\ISO3166\Exception\DomainException if input does not look like a numeric key
+ */
+ public static function guardAgainstInvalidNumeric($numeric)
+ {
+ if (!is_string($numeric)) {
+ throw new InvalidArgumentException(
+ sprintf('Expected $numeric to be of type string, got: %s', gettype($numeric))
+ );
+ }
+
+ if (!preg_match('/^[0-9]{3}$/', $numeric)) {
+ throw new DomainException(
+ sprintf('Not a valid numeric key: %s', $numeric)
+ );
+ }
+ }
+}
diff --git a/vendors/league-iso3166/vendor/league/iso3166/src/ISO3166.php b/vendors/league-iso3166/vendor/league/iso3166/src/ISO3166.php
new file mode 100644
index 0000000..78d0762
--- /dev/null
+++ b/vendors/league-iso3166/vendor/league/iso3166/src/ISO3166.php
@@ -0,0 +1,2437 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+namespace League\ISO3166;
+
+use League\ISO3166\Exception\DomainException;
+use League\ISO3166\Exception\OutOfBoundsException;
+
+final class ISO3166 implements \Countable, \IteratorAggregate, ISO3166DataProvider
+{
+ /**
+ * @var string
+ */
+ const KEY_ALPHA2 = 'alpha2';
+ /**
+ * @var string
+ */
+ const KEY_ALPHA3 = 'alpha3';
+ /**
+ * @var string
+ */
+ const KEY_NUMERIC = 'numeric';
+ /**
+ * @var string[]
+ */
+ private $keys = [self::KEY_ALPHA2, self::KEY_ALPHA3, self::KEY_NUMERIC];
+
+ /**
+ * @param array[] $countries replace default dataset with given array
+ */
+ public function __construct(array $countries = [])
+ {
+ if ($countries) {
+ $this->countries = $countries;
+ }
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function alpha2($alpha2)
+ {
+ Guards::guardAgainstInvalidAlpha2($alpha2);
+
+ return $this->lookup(self::KEY_ALPHA2, $alpha2);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function alpha3($alpha3)
+ {
+ Guards::guardAgainstInvalidAlpha3($alpha3);
+
+ return $this->lookup(self::KEY_ALPHA3, $alpha3);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function numeric($numeric)
+ {
+ Guards::guardAgainstInvalidNumeric($numeric);
+
+ return $this->lookup(self::KEY_NUMERIC, $numeric);
+ }
+
+ /**
+ * @return array[]
+ */
+ public function all()
+ {
+ return $this->countries;
+ }
+
+ /**
+ * @param string $key
+ *
+ * @throws \League\ISO3166\Exception\DomainException if an invalid key is specified
+ *
+ * @return \Generator
+ */
+ public function iterator($key = self::KEY_ALPHA2)
+ {
+ if (!in_array($key, $this->keys, true)) {
+ throw new DomainException(sprintf(
+ 'Invalid value for $indexBy, got "%s", expected one of: %s',
+ $key,
+ implode(', ', $this->keys)
+ ));
+ }
+
+ foreach ($this->countries as $country) {
+ yield $country[$key] => $country;
+ }
+ }
+
+ /**
+ * @see \Countable
+ *
+ * @internal
+ *
+ * @return int
+ */
+ public function count()
+ {
+ return count($this->countries);
+ }
+
+ /**
+ * @see \IteratorAggregate
+ *
+ * @internal
+ *
+ * @return \Generator
+ */
+ public function getIterator()
+ {
+ foreach ($this->countries as $country) {
+ yield $country;
+ }
+ }
+
+ /**
+ * Lookup ISO3166-1 data by given identifier.
+ *
+ * Looks for a match against the given key for each entry in the dataset.
+ *
+ * @param string $key
+ * @param string $value
+ *
+ * @throws \League\ISO3166\Exception\OutOfBoundsException if key does not exist in dataset
+ *
+ * @return array
+ */
+ private function lookup($key, $value)
+ {
+ foreach ($this->countries as $country) {
+ if (0 === strcasecmp($value, $country[$key])) {
+ return $country;
+ }
+ }
+
+ throw new OutOfBoundsException(
+ sprintf('No "%s" key found matching: %s', $key, $value)
+ );
+ }
+
+ /**
+ * Default dataset.
+ *
+ * @var array[]
+ */
+ protected $countries = [
+ [
+ 'name' => 'Afghanistan',
+ 'alpha2' => 'AF',
+ 'alpha3' => 'AFG',
+ 'numeric' => '004',
+ 'currency' => [
+ 'AFN',
+ ],
+ ],
+ [
+ 'name' => 'Åland Islands',
+ 'alpha2' => 'AX',
+ 'alpha3' => 'ALA',
+ 'numeric' => '248',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Albania',
+ 'alpha2' => 'AL',
+ 'alpha3' => 'ALB',
+ 'numeric' => '008',
+ 'currency' => [
+ 'ALL',
+ ],
+ ],
+ [
+ 'name' => 'Algeria',
+ 'alpha2' => 'DZ',
+ 'alpha3' => 'DZA',
+ 'numeric' => '012',
+ 'currency' => [
+ 'DZD',
+ ],
+ ],
+ [
+ 'name' => 'American Samoa',
+ 'alpha2' => 'AS',
+ 'alpha3' => 'ASM',
+ 'numeric' => '016',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Andorra',
+ 'alpha2' => 'AD',
+ 'alpha3' => 'AND',
+ 'numeric' => '020',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Angola',
+ 'alpha2' => 'AO',
+ 'alpha3' => 'AGO',
+ 'numeric' => '024',
+ 'currency' => [
+ 'AOA',
+ ],
+ ],
+ [
+ 'name' => 'Anguilla',
+ 'alpha2' => 'AI',
+ 'alpha3' => 'AIA',
+ 'numeric' => '660',
+ 'currency' => [
+ 'XCD',
+ ],
+ ],
+ [
+ 'name' => 'Antarctica',
+ 'alpha2' => 'AQ',
+ 'alpha3' => 'ATA',
+ 'numeric' => '010',
+ 'currency' => [
+ 'ARS',
+ 'AUD',
+ 'BGN',
+ 'BRL',
+ 'BYR',
+ 'CLP',
+ 'CNY',
+ 'CZK',
+ 'EUR',
+ 'GBP',
+ 'INR',
+ 'JPY',
+ 'KRW',
+ 'NOK',
+ 'NZD',
+ 'PEN',
+ 'PKR',
+ 'PLN',
+ 'RON',
+ 'RUB',
+ 'SEK',
+ 'UAH',
+ 'USD',
+ 'UYU',
+ 'ZAR',
+ ],
+ ],
+ [
+ 'name' => 'Antigua and Barbuda',
+ 'alpha2' => 'AG',
+ 'alpha3' => 'ATG',
+ 'numeric' => '028',
+ 'currency' => [
+ 'XCD',
+ ],
+ ],
+ [
+ 'name' => 'Argentina',
+ 'alpha2' => 'AR',
+ 'alpha3' => 'ARG',
+ 'numeric' => '032',
+ 'currency' => [
+ 'ARS',
+ ],
+ ],
+ [
+ 'name' => 'Armenia',
+ 'alpha2' => 'AM',
+ 'alpha3' => 'ARM',
+ 'numeric' => '051',
+ 'currency' => [
+ 'AMD',
+ ],
+ ],
+ [
+ 'name' => 'Aruba',
+ 'alpha2' => 'AW',
+ 'alpha3' => 'ABW',
+ 'numeric' => '533',
+ 'currency' => [
+ 'AWG',
+ ],
+ ],
+ [
+ 'name' => 'Australia',
+ 'alpha2' => 'AU',
+ 'alpha3' => 'AUS',
+ 'numeric' => '036',
+ 'currency' => [
+ 'AUD',
+ ],
+ ],
+ [
+ 'name' => 'Austria',
+ 'alpha2' => 'AT',
+ 'alpha3' => 'AUT',
+ 'numeric' => '040',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Azerbaijan',
+ 'alpha2' => 'AZ',
+ 'alpha3' => 'AZE',
+ 'numeric' => '031',
+ 'currency' => [
+ 'AZN',
+ ],
+ ],
+ [
+ 'name' => 'Bahamas',
+ 'alpha2' => 'BS',
+ 'alpha3' => 'BHS',
+ 'numeric' => '044',
+ 'currency' => [
+ 'BSD',
+ ],
+ ],
+ [
+ 'name' => 'Bahrain',
+ 'alpha2' => 'BH',
+ 'alpha3' => 'BHR',
+ 'numeric' => '048',
+ 'currency' => [
+ 'BHD',
+ ],
+ ],
+ [
+ 'name' => 'Bangladesh',
+ 'alpha2' => 'BD',
+ 'alpha3' => 'BGD',
+ 'numeric' => '050',
+ 'currency' => [
+ 'BDT',
+ ],
+ ],
+ [
+ 'name' => 'Barbados',
+ 'alpha2' => 'BB',
+ 'alpha3' => 'BRB',
+ 'numeric' => '052',
+ 'currency' => [
+ 'BBD',
+ ],
+ ],
+ [
+ 'name' => 'Belarus',
+ 'alpha2' => 'BY',
+ 'alpha3' => 'BLR',
+ 'numeric' => '112',
+ 'currency' => [
+ 'BYN',
+ ],
+ ],
+ [
+ 'name' => 'Belgium',
+ 'alpha2' => 'BE',
+ 'alpha3' => 'BEL',
+ 'numeric' => '056',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Belize',
+ 'alpha2' => 'BZ',
+ 'alpha3' => 'BLZ',
+ 'numeric' => '084',
+ 'currency' => [
+ 'BZD',
+ ],
+ ],
+ [
+ 'name' => 'Benin',
+ 'alpha2' => 'BJ',
+ 'alpha3' => 'BEN',
+ 'numeric' => '204',
+ 'currency' => [
+ 'XOF',
+ ],
+ ],
+ [
+ 'name' => 'Bermuda',
+ 'alpha2' => 'BM',
+ 'alpha3' => 'BMU',
+ 'numeric' => '060',
+ 'currency' => [
+ 'BMD',
+ ],
+ ],
+ [
+ 'name' => 'Bhutan',
+ 'alpha2' => 'BT',
+ 'alpha3' => 'BTN',
+ 'numeric' => '064',
+ 'currency' => [
+ 'BTN',
+ ],
+ ],
+ [
+ 'name' => 'Bolivia (Plurinational State of)',
+ 'alpha2' => 'BO',
+ 'alpha3' => 'BOL',
+ 'numeric' => '068',
+ 'currency' => [
+ 'BOB',
+ ],
+ ],
+ [
+ 'name' => 'Bonaire, Sint Eustatius and Saba',
+ 'alpha2' => 'BQ',
+ 'alpha3' => 'BES',
+ 'numeric' => '535',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Bosnia and Herzegovina',
+ 'alpha2' => 'BA',
+ 'alpha3' => 'BIH',
+ 'numeric' => '070',
+ 'currency' => [
+ 'BAM',
+ ],
+ ],
+ [
+ 'name' => 'Botswana',
+ 'alpha2' => 'BW',
+ 'alpha3' => 'BWA',
+ 'numeric' => '072',
+ 'currency' => [
+ 'BWP',
+ ],
+ ],
+ [
+ 'name' => 'Bouvet Island',
+ 'alpha2' => 'BV',
+ 'alpha3' => 'BVT',
+ 'numeric' => '074',
+ 'currency' => [
+ 'NOK',
+ ],
+ ],
+ [
+ 'name' => 'Brazil',
+ 'alpha2' => 'BR',
+ 'alpha3' => 'BRA',
+ 'numeric' => '076',
+ 'currency' => [
+ 'BRL',
+ ],
+ ],
+ [
+ 'name' => 'British Indian Ocean Territory',
+ 'alpha2' => 'IO',
+ 'alpha3' => 'IOT',
+ 'numeric' => '086',
+ 'currency' => [
+ 'GBP',
+ ],
+ ],
+ [
+ 'name' => 'Brunei Darussalam',
+ 'alpha2' => 'BN',
+ 'alpha3' => 'BRN',
+ 'numeric' => '096',
+ 'currency' => [
+ 'BND',
+ 'SGD',
+ ],
+ ],
+ [
+ 'name' => 'Bulgaria',
+ 'alpha2' => 'BG',
+ 'alpha3' => 'BGR',
+ 'numeric' => '100',
+ 'currency' => [
+ 'BGN',
+ ],
+ ],
+ [
+ 'name' => 'Burkina Faso',
+ 'alpha2' => 'BF',
+ 'alpha3' => 'BFA',
+ 'numeric' => '854',
+ 'currency' => [
+ 'XOF',
+ ],
+ ],
+ [
+ 'name' => 'Burundi',
+ 'alpha2' => 'BI',
+ 'alpha3' => 'BDI',
+ 'numeric' => '108',
+ 'currency' => [
+ 'BIF',
+ ],
+ ],
+ [
+ 'name' => 'Cabo Verde',
+ 'alpha2' => 'CV',
+ 'alpha3' => 'CPV',
+ 'numeric' => '132',
+ 'currency' => [
+ 'CVE',
+ ],
+ ],
+ [
+ 'name' => 'Cambodia',
+ 'alpha2' => 'KH',
+ 'alpha3' => 'KHM',
+ 'numeric' => '116',
+ 'currency' => [
+ 'KHR',
+ ],
+ ],
+ [
+ 'name' => 'Cameroon',
+ 'alpha2' => 'CM',
+ 'alpha3' => 'CMR',
+ 'numeric' => '120',
+ 'currency' => [
+ 'XAF',
+ ],
+ ],
+ [
+ 'name' => 'Canada',
+ 'alpha2' => 'CA',
+ 'alpha3' => 'CAN',
+ 'numeric' => '124',
+ 'currency' => [
+ 'CAD',
+ ],
+ ],
+ [
+ 'name' => 'Cayman Islands',
+ 'alpha2' => 'KY',
+ 'alpha3' => 'CYM',
+ 'numeric' => '136',
+ 'currency' => [
+ 'KYD',
+ ],
+ ],
+ [
+ 'name' => 'Central African Republic',
+ 'alpha2' => 'CF',
+ 'alpha3' => 'CAF',
+ 'numeric' => '140',
+ 'currency' => [
+ 'XAF',
+ ],
+ ],
+ [
+ 'name' => 'Chad',
+ 'alpha2' => 'TD',
+ 'alpha3' => 'TCD',
+ 'numeric' => '148',
+ 'currency' => [
+ 'XAF',
+ ],
+ ],
+ [
+ 'name' => 'Chile',
+ 'alpha2' => 'CL',
+ 'alpha3' => 'CHL',
+ 'numeric' => '152',
+ 'currency' => [
+ 'CLP',
+ ],
+ ],
+ [
+ 'name' => 'China',
+ 'alpha2' => 'CN',
+ 'alpha3' => 'CHN',
+ 'numeric' => '156',
+ 'currency' => [
+ 'CNY',
+ ],
+ ],
+ [
+ 'name' => 'Christmas Island',
+ 'alpha2' => 'CX',
+ 'alpha3' => 'CXR',
+ 'numeric' => '162',
+ 'currency' => [
+ 'AUD',
+ ],
+ ],
+ [
+ 'name' => 'Cocos (Keeling) Islands',
+ 'alpha2' => 'CC',
+ 'alpha3' => 'CCK',
+ 'numeric' => '166',
+ 'currency' => [
+ 'AUD',
+ ],
+ ],
+ [
+ 'name' => 'Colombia',
+ 'alpha2' => 'CO',
+ 'alpha3' => 'COL',
+ 'numeric' => '170',
+ 'currency' => [
+ 'COP',
+ ],
+ ],
+ [
+ 'name' => 'Comoros',
+ 'alpha2' => 'KM',
+ 'alpha3' => 'COM',
+ 'numeric' => '174',
+ 'currency' => [
+ 'KMF',
+ ],
+ ],
+ [
+ 'name' => 'Congo',
+ 'alpha2' => 'CG',
+ 'alpha3' => 'COG',
+ 'numeric' => '178',
+ 'currency' => [
+ 'XAF',
+ ],
+ ],
+ [
+ 'name' => 'Congo (Democratic Republic of the)',
+ 'alpha2' => 'CD',
+ 'alpha3' => 'COD',
+ 'numeric' => '180',
+ 'currency' => [
+ 'CDF',
+ ],
+ ],
+ [
+ 'name' => 'Cook Islands',
+ 'alpha2' => 'CK',
+ 'alpha3' => 'COK',
+ 'numeric' => '184',
+ 'currency' => [
+ 'NZD',
+ ],
+ ],
+ [
+ 'name' => 'Costa Rica',
+ 'alpha2' => 'CR',
+ 'alpha3' => 'CRI',
+ 'numeric' => '188',
+ 'currency' => [
+ 'CRC',
+ ],
+ ],
+ [
+ 'name' => 'Côte d\'Ivoire',
+ 'alpha2' => 'CI',
+ 'alpha3' => 'CIV',
+ 'numeric' => '384',
+ 'currency' => [
+ 'XOF',
+ ],
+ ],
+ [
+ 'name' => 'Croatia',
+ 'alpha2' => 'HR',
+ 'alpha3' => 'HRV',
+ 'numeric' => '191',
+ 'currency' => [
+ 'HRK',
+ ],
+ ],
+ [
+ 'name' => 'Cuba',
+ 'alpha2' => 'CU',
+ 'alpha3' => 'CUB',
+ 'numeric' => '192',
+ 'currency' => [
+ 'CUC',
+ 'CUP',
+ ],
+ ],
+ [
+ 'name' => 'Curaçao',
+ 'alpha2' => 'CW',
+ 'alpha3' => 'CUW',
+ 'numeric' => '531',
+ 'currency' => [
+ 'ANG',
+ ],
+ ],
+ [
+ 'name' => 'Cyprus',
+ 'alpha2' => 'CY',
+ 'alpha3' => 'CYP',
+ 'numeric' => '196',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Czechia',
+ 'alpha2' => 'CZ',
+ 'alpha3' => 'CZE',
+ 'numeric' => '203',
+ 'currency' => [
+ 'CZK',
+ ],
+ ],
+ [
+ 'name' => 'Denmark',
+ 'alpha2' => 'DK',
+ 'alpha3' => 'DNK',
+ 'numeric' => '208',
+ 'currency' => [
+ 'DKK',
+ ],
+ ],
+ [
+ 'name' => 'Djibouti',
+ 'alpha2' => 'DJ',
+ 'alpha3' => 'DJI',
+ 'numeric' => '262',
+ 'currency' => [
+ 'DJF',
+ ],
+ ],
+ [
+ 'name' => 'Dominica',
+ 'alpha2' => 'DM',
+ 'alpha3' => 'DMA',
+ 'numeric' => '212',
+ 'currency' => [
+ 'XCD',
+ ],
+ ],
+ [
+ 'name' => 'Dominican Republic',
+ 'alpha2' => 'DO',
+ 'alpha3' => 'DOM',
+ 'numeric' => '214',
+ 'currency' => [
+ 'DOP',
+ ],
+ ],
+ [
+ 'name' => 'Ecuador',
+ 'alpha2' => 'EC',
+ 'alpha3' => 'ECU',
+ 'numeric' => '218',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Egypt',
+ 'alpha2' => 'EG',
+ 'alpha3' => 'EGY',
+ 'numeric' => '818',
+ 'currency' => [
+ 'EGP',
+ ],
+ ],
+ [
+ 'name' => 'El Salvador',
+ 'alpha2' => 'SV',
+ 'alpha3' => 'SLV',
+ 'numeric' => '222',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Equatorial Guinea',
+ 'alpha2' => 'GQ',
+ 'alpha3' => 'GNQ',
+ 'numeric' => '226',
+ 'currency' => [
+ 'XAF',
+ ],
+ ],
+ [
+ 'name' => 'Eritrea',
+ 'alpha2' => 'ER',
+ 'alpha3' => 'ERI',
+ 'numeric' => '232',
+ 'currency' => [
+ 'ERN',
+ ],
+ ],
+ [
+ 'name' => 'Estonia',
+ 'alpha2' => 'EE',
+ 'alpha3' => 'EST',
+ 'numeric' => '233',
+ 'currency' => [
+ 'EEK',
+ ],
+ ],
+ [
+ 'name' => 'Ethiopia',
+ 'alpha2' => 'ET',
+ 'alpha3' => 'ETH',
+ 'numeric' => '231',
+ 'currency' => [
+ 'ETB',
+ ],
+ ],
+ [
+ 'name' => 'Falkland Islands (Malvinas)',
+ 'alpha2' => 'FK',
+ 'alpha3' => 'FLK',
+ 'numeric' => '238',
+ 'currency' => [
+ 'FKP',
+ ],
+ ],
+ [
+ 'name' => 'Faroe Islands',
+ 'alpha2' => 'FO',
+ 'alpha3' => 'FRO',
+ 'numeric' => '234',
+ 'currency' => [
+ 'DKK',
+ ],
+ ],
+ [
+ 'name' => 'Fiji',
+ 'alpha2' => 'FJ',
+ 'alpha3' => 'FJI',
+ 'numeric' => '242',
+ 'currency' => [
+ 'FJD',
+ ],
+ ],
+ [
+ 'name' => 'Finland',
+ 'alpha2' => 'FI',
+ 'alpha3' => 'FIN',
+ 'numeric' => '246',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'France',
+ 'alpha2' => 'FR',
+ 'alpha3' => 'FRA',
+ 'numeric' => '250',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'French Guiana',
+ 'alpha2' => 'GF',
+ 'alpha3' => 'GUF',
+ 'numeric' => '254',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'French Polynesia',
+ 'alpha2' => 'PF',
+ 'alpha3' => 'PYF',
+ 'numeric' => '258',
+ 'currency' => [
+ 'XPF',
+ ],
+ ],
+ [
+ 'name' => 'French Southern Territories',
+ 'alpha2' => 'TF',
+ 'alpha3' => 'ATF',
+ 'numeric' => '260',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Gabon',
+ 'alpha2' => 'GA',
+ 'alpha3' => 'GAB',
+ 'numeric' => '266',
+ 'currency' => [
+ 'XAF',
+ ],
+ ],
+ [
+ 'name' => 'Gambia',
+ 'alpha2' => 'GM',
+ 'alpha3' => 'GMB',
+ 'numeric' => '270',
+ 'currency' => [
+ 'GMD',
+ ],
+ ],
+ [
+ 'name' => 'Georgia',
+ 'alpha2' => 'GE',
+ 'alpha3' => 'GEO',
+ 'numeric' => '268',
+ 'currency' => [
+ 'GEL',
+ ],
+ ],
+ [
+ 'name' => 'Germany',
+ 'alpha2' => 'DE',
+ 'alpha3' => 'DEU',
+ 'numeric' => '276',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Ghana',
+ 'alpha2' => 'GH',
+ 'alpha3' => 'GHA',
+ 'numeric' => '288',
+ 'currency' => [
+ 'GHS',
+ ],
+ ],
+ [
+ 'name' => 'Gibraltar',
+ 'alpha2' => 'GI',
+ 'alpha3' => 'GIB',
+ 'numeric' => '292',
+ 'currency' => [
+ 'GIP',
+ ],
+ ],
+ [
+ 'name' => 'Greece',
+ 'alpha2' => 'GR',
+ 'alpha3' => 'GRC',
+ 'numeric' => '300',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Greenland',
+ 'alpha2' => 'GL',
+ 'alpha3' => 'GRL',
+ 'numeric' => '304',
+ 'currency' => [
+ 'DKK',
+ ],
+ ],
+ [
+ 'name' => 'Grenada',
+ 'alpha2' => 'GD',
+ 'alpha3' => 'GRD',
+ 'numeric' => '308',
+ 'currency' => [
+ 'XCD',
+ ],
+ ],
+ [
+ 'name' => 'Guadeloupe',
+ 'alpha2' => 'GP',
+ 'alpha3' => 'GLP',
+ 'numeric' => '312',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Guam',
+ 'alpha2' => 'GU',
+ 'alpha3' => 'GUM',
+ 'numeric' => '316',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Guatemala',
+ 'alpha2' => 'GT',
+ 'alpha3' => 'GTM',
+ 'numeric' => '320',
+ 'currency' => [
+ 'GTQ',
+ ],
+ ],
+ [
+ 'name' => 'Guernsey',
+ 'alpha2' => 'GG',
+ 'alpha3' => 'GGY',
+ 'numeric' => '831',
+ 'currency' => [
+ 'GBP',
+ ],
+ ],
+ [
+ 'name' => 'Guinea',
+ 'alpha2' => 'GN',
+ 'alpha3' => 'GIN',
+ 'numeric' => '324',
+ 'currency' => [
+ 'GNF',
+ ],
+ ],
+ [
+ 'name' => 'Guinea-Bissau',
+ 'alpha2' => 'GW',
+ 'alpha3' => 'GNB',
+ 'numeric' => '624',
+ 'currency' => [
+ 'XOF',
+ ],
+ ],
+ [
+ 'name' => 'Guyana',
+ 'alpha2' => 'GY',
+ 'alpha3' => 'GUY',
+ 'numeric' => '328',
+ 'currency' => [
+ 'GYD',
+ ],
+ ],
+ [
+ 'name' => 'Haiti',
+ 'alpha2' => 'HT',
+ 'alpha3' => 'HTI',
+ 'numeric' => '332',
+ 'currency' => [
+ 'HTG',
+ ],
+ ],
+ [
+ 'name' => 'Heard Island and McDonald Islands',
+ 'alpha2' => 'HM',
+ 'alpha3' => 'HMD',
+ 'numeric' => '334',
+ 'currency' => [
+ 'AUD',
+ ],
+ ],
+ [
+ 'name' => 'Holy See',
+ 'alpha2' => 'VA',
+ 'alpha3' => 'VAT',
+ 'numeric' => '336',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Honduras',
+ 'alpha2' => 'HN',
+ 'alpha3' => 'HND',
+ 'numeric' => '340',
+ 'currency' => [
+ 'HNL',
+ ],
+ ],
+ [
+ 'name' => 'Hong Kong',
+ 'alpha2' => 'HK',
+ 'alpha3' => 'HKG',
+ 'numeric' => '344',
+ 'currency' => [
+ 'HKD',
+ ],
+ ],
+ [
+ 'name' => 'Hungary',
+ 'alpha2' => 'HU',
+ 'alpha3' => 'HUN',
+ 'numeric' => '348',
+ 'currency' => [
+ 'HUF',
+ ],
+ ],
+ [
+ 'name' => 'Iceland',
+ 'alpha2' => 'IS',
+ 'alpha3' => 'ISL',
+ 'numeric' => '352',
+ 'currency' => [
+ 'ISK',
+ ],
+ ],
+ [
+ 'name' => 'India',
+ 'alpha2' => 'IN',
+ 'alpha3' => 'IND',
+ 'numeric' => '356',
+ 'currency' => [
+ 'INR',
+ ],
+ ],
+ [
+ 'name' => 'Indonesia',
+ 'alpha2' => 'ID',
+ 'alpha3' => 'IDN',
+ 'numeric' => '360',
+ 'currency' => [
+ 'IDR',
+ ],
+ ],
+ [
+ 'name' => 'Iran (Islamic Republic of)',
+ 'alpha2' => 'IR',
+ 'alpha3' => 'IRN',
+ 'numeric' => '364',
+ 'currency' => [
+ 'IRR',
+ ],
+ ],
+ [
+ 'name' => 'Iraq',
+ 'alpha2' => 'IQ',
+ 'alpha3' => 'IRQ',
+ 'numeric' => '368',
+ 'currency' => [
+ 'IQD',
+ ],
+ ],
+ [
+ 'name' => 'Ireland',
+ 'alpha2' => 'IE',
+ 'alpha3' => 'IRL',
+ 'numeric' => '372',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Isle of Man',
+ 'alpha2' => 'IM',
+ 'alpha3' => 'IMN',
+ 'numeric' => '833',
+ 'currency' => [
+ 'GBP',
+ ],
+ ],
+ [
+ 'name' => 'Israel',
+ 'alpha2' => 'IL',
+ 'alpha3' => 'ISR',
+ 'numeric' => '376',
+ 'currency' => [
+ 'ILS',
+ ],
+ ],
+ [
+ 'name' => 'Italy',
+ 'alpha2' => 'IT',
+ 'alpha3' => 'ITA',
+ 'numeric' => '380',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Jamaica',
+ 'alpha2' => 'JM',
+ 'alpha3' => 'JAM',
+ 'numeric' => '388',
+ 'currency' => [
+ 'JMD',
+ ],
+ ],
+ [
+ 'name' => 'Japan',
+ 'alpha2' => 'JP',
+ 'alpha3' => 'JPN',
+ 'numeric' => '392',
+ 'currency' => [
+ 'JPY',
+ ],
+ ],
+ [
+ 'name' => 'Jersey',
+ 'alpha2' => 'JE',
+ 'alpha3' => 'JEY',
+ 'numeric' => '832',
+ 'currency' => [
+ 'GBP',
+ ],
+ ],
+ [
+ 'name' => 'Jordan',
+ 'alpha2' => 'JO',
+ 'alpha3' => 'JOR',
+ 'numeric' => '400',
+ 'currency' => [
+ 'JOD',
+ ],
+ ],
+ [
+ 'name' => 'Kazakhstan',
+ 'alpha2' => 'KZ',
+ 'alpha3' => 'KAZ',
+ 'numeric' => '398',
+ 'currency' => [
+ 'KZT',
+ ],
+ ],
+ [
+ 'name' => 'Kenya',
+ 'alpha2' => 'KE',
+ 'alpha3' => 'KEN',
+ 'numeric' => '404',
+ 'currency' => [
+ 'KES',
+ ],
+ ],
+ [
+ 'name' => 'Kiribati',
+ 'alpha2' => 'KI',
+ 'alpha3' => 'KIR',
+ 'numeric' => '296',
+ 'currency' => [
+ 'AUD',
+ ],
+ ],
+ [
+ 'name' => 'Korea (Democratic People\'s Republic of)',
+ 'alpha2' => 'KP',
+ 'alpha3' => 'PRK',
+ 'numeric' => '408',
+ 'currency' => [
+ 'KPW',
+ ],
+ ],
+ [
+ 'name' => 'Korea (Republic of)',
+ 'alpha2' => 'KR',
+ 'alpha3' => 'KOR',
+ 'numeric' => '410',
+ 'currency' => [
+ 'KRW',
+ ],
+ ],
+ [
+ 'name' => 'Kuwait',
+ 'alpha2' => 'KW',
+ 'alpha3' => 'KWT',
+ 'numeric' => '414',
+ 'currency' => [
+ 'KWD',
+ ],
+ ],
+ [
+ 'name' => 'Kyrgyzstan',
+ 'alpha2' => 'KG',
+ 'alpha3' => 'KGZ',
+ 'numeric' => '417',
+ 'currency' => [
+ 'KGS',
+ ],
+ ],
+ [
+ 'name' => 'Lao People\'s Democratic Republic',
+ 'alpha2' => 'LA',
+ 'alpha3' => 'LAO',
+ 'numeric' => '418',
+ 'currency' => [
+ 'LAK',
+ ],
+ ],
+ [
+ 'name' => 'Latvia',
+ 'alpha2' => 'LV',
+ 'alpha3' => 'LVA',
+ 'numeric' => '428',
+ 'currency' => [
+ 'LVL',
+ ],
+ ],
+ [
+ 'name' => 'Lebanon',
+ 'alpha2' => 'LB',
+ 'alpha3' => 'LBN',
+ 'numeric' => '422',
+ 'currency' => [
+ 'LBP',
+ ],
+ ],
+ [
+ 'name' => 'Lesotho',
+ 'alpha2' => 'LS',
+ 'alpha3' => 'LSO',
+ 'numeric' => '426',
+ 'currency' => [
+ 'LSL',
+ 'ZAR',
+ ],
+ ],
+ [
+ 'name' => 'Liberia',
+ 'alpha2' => 'LR',
+ 'alpha3' => 'LBR',
+ 'numeric' => '430',
+ 'currency' => [
+ 'LRD',
+ ],
+ ],
+ [
+ 'name' => 'Libya',
+ 'alpha2' => 'LY',
+ 'alpha3' => 'LBY',
+ 'numeric' => '434',
+ 'currency' => [
+ 'LYD',
+ ],
+ ],
+ [
+ 'name' => 'Liechtenstein',
+ 'alpha2' => 'LI',
+ 'alpha3' => 'LIE',
+ 'numeric' => '438',
+ 'currency' => [
+ 'CHF',
+ ],
+ ],
+ [
+ 'name' => 'Lithuania',
+ 'alpha2' => 'LT',
+ 'alpha3' => 'LTU',
+ 'numeric' => '440',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Luxembourg',
+ 'alpha2' => 'LU',
+ 'alpha3' => 'LUX',
+ 'numeric' => '442',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Macao',
+ 'alpha2' => 'MO',
+ 'alpha3' => 'MAC',
+ 'numeric' => '446',
+ 'currency' => [
+ 'MOP',
+ ],
+ ],
+ [
+ 'name' => 'Macedonia (the former Yugoslav Republic of)',
+ 'alpha2' => 'MK',
+ 'alpha3' => 'MKD',
+ 'numeric' => '807',
+ 'currency' => [
+ 'MKD',
+ ],
+ ],
+ [
+ 'name' => 'Madagascar',
+ 'alpha2' => 'MG',
+ 'alpha3' => 'MDG',
+ 'numeric' => '450',
+ 'currency' => [
+ 'MGA',
+ ],
+ ],
+ [
+ 'name' => 'Malawi',
+ 'alpha2' => 'MW',
+ 'alpha3' => 'MWI',
+ 'numeric' => '454',
+ 'currency' => [
+ 'MWK',
+ ],
+ ],
+ [
+ 'name' => 'Malaysia',
+ 'alpha2' => 'MY',
+ 'alpha3' => 'MYS',
+ 'numeric' => '458',
+ 'currency' => [
+ 'MYR',
+ ],
+ ],
+ [
+ 'name' => 'Maldives',
+ 'alpha2' => 'MV',
+ 'alpha3' => 'MDV',
+ 'numeric' => '462',
+ 'currency' => [
+ 'MVR',
+ ],
+ ],
+ [
+ 'name' => 'Mali',
+ 'alpha2' => 'ML',
+ 'alpha3' => 'MLI',
+ 'numeric' => '466',
+ 'currency' => [
+ 'XOF',
+ ],
+ ],
+ [
+ 'name' => 'Malta',
+ 'alpha2' => 'MT',
+ 'alpha3' => 'MLT',
+ 'numeric' => '470',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Marshall Islands',
+ 'alpha2' => 'MH',
+ 'alpha3' => 'MHL',
+ 'numeric' => '584',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Martinique',
+ 'alpha2' => 'MQ',
+ 'alpha3' => 'MTQ',
+ 'numeric' => '474',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Mauritania',
+ 'alpha2' => 'MR',
+ 'alpha3' => 'MRT',
+ 'numeric' => '478',
+ 'currency' => [
+ 'MRO',
+ ],
+ ],
+ [
+ 'name' => 'Mauritius',
+ 'alpha2' => 'MU',
+ 'alpha3' => 'MUS',
+ 'numeric' => '480',
+ 'currency' => [
+ 'MUR',
+ ],
+ ],
+ [
+ 'name' => 'Mayotte',
+ 'alpha2' => 'YT',
+ 'alpha3' => 'MYT',
+ 'numeric' => '175',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Mexico',
+ 'alpha2' => 'MX',
+ 'alpha3' => 'MEX',
+ 'numeric' => '484',
+ 'currency' => [
+ 'MXN',
+ ],
+ ],
+ [
+ 'name' => 'Micronesia (Federated States of)',
+ 'alpha2' => 'FM',
+ 'alpha3' => 'FSM',
+ 'numeric' => '583',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Moldova (Republic of)',
+ 'alpha2' => 'MD',
+ 'alpha3' => 'MDA',
+ 'numeric' => '498',
+ 'currency' => [
+ 'MDL',
+ ],
+ ],
+ [
+ 'name' => 'Monaco',
+ 'alpha2' => 'MC',
+ 'alpha3' => 'MCO',
+ 'numeric' => '492',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Mongolia',
+ 'alpha2' => 'MN',
+ 'alpha3' => 'MNG',
+ 'numeric' => '496',
+ 'currency' => [
+ 'MNT',
+ ],
+ ],
+ [
+ 'name' => 'Montenegro',
+ 'alpha2' => 'ME',
+ 'alpha3' => 'MNE',
+ 'numeric' => '499',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Montserrat',
+ 'alpha2' => 'MS',
+ 'alpha3' => 'MSR',
+ 'numeric' => '500',
+ 'currency' => [
+ 'XCD',
+ ],
+ ],
+ [
+ 'name' => 'Morocco',
+ 'alpha2' => 'MA',
+ 'alpha3' => 'MAR',
+ 'numeric' => '504',
+ 'currency' => [
+ 'MAD',
+ ],
+ ],
+ [
+ 'name' => 'Mozambique',
+ 'alpha2' => 'MZ',
+ 'alpha3' => 'MOZ',
+ 'numeric' => '508',
+ 'currency' => [
+ 'MZN',
+ ],
+ ],
+ [
+ 'name' => 'Myanmar',
+ 'alpha2' => 'MM',
+ 'alpha3' => 'MMR',
+ 'numeric' => '104',
+ 'currency' => [
+ 'MMK',
+ ],
+ ],
+ [
+ 'name' => 'Namibia',
+ 'alpha2' => 'NA',
+ 'alpha3' => 'NAM',
+ 'numeric' => '516',
+ 'currency' => [
+ 'NAD',
+ 'ZAR',
+ ],
+ ],
+ [
+ 'name' => 'Nauru',
+ 'alpha2' => 'NR',
+ 'alpha3' => 'NRU',
+ 'numeric' => '520',
+ 'currency' => [
+ 'AUD',
+ ],
+ ],
+ [
+ 'name' => 'Nepal',
+ 'alpha2' => 'NP',
+ 'alpha3' => 'NPL',
+ 'numeric' => '524',
+ 'currency' => [
+ 'NPR',
+ ],
+ ],
+ [
+ 'name' => 'Netherlands',
+ 'alpha2' => 'NL',
+ 'alpha3' => 'NLD',
+ 'numeric' => '528',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'New Caledonia',
+ 'alpha2' => 'NC',
+ 'alpha3' => 'NCL',
+ 'numeric' => '540',
+ 'currency' => [
+ 'XPF',
+ ],
+ ],
+ [
+ 'name' => 'New Zealand',
+ 'alpha2' => 'NZ',
+ 'alpha3' => 'NZL',
+ 'numeric' => '554',
+ 'currency' => [
+ 'NZD',
+ ],
+ ],
+ [
+ 'name' => 'Nicaragua',
+ 'alpha2' => 'NI',
+ 'alpha3' => 'NIC',
+ 'numeric' => '558',
+ 'currency' => [
+ 'NIO',
+ ],
+ ],
+ [
+ 'name' => 'Niger',
+ 'alpha2' => 'NE',
+ 'alpha3' => 'NER',
+ 'numeric' => '562',
+ 'currency' => [
+ 'XOF',
+ ],
+ ],
+ [
+ 'name' => 'Nigeria',
+ 'alpha2' => 'NG',
+ 'alpha3' => 'NGA',
+ 'numeric' => '566',
+ 'currency' => [
+ 'NGN',
+ ],
+ ],
+ [
+ 'name' => 'Niue',
+ 'alpha2' => 'NU',
+ 'alpha3' => 'NIU',
+ 'numeric' => '570',
+ 'currency' => [
+ 'NZD',
+ ],
+ ],
+ [
+ 'name' => 'Norfolk Island',
+ 'alpha2' => 'NF',
+ 'alpha3' => 'NFK',
+ 'numeric' => '574',
+ 'currency' => [
+ 'AUD',
+ ],
+ ],
+ [
+ 'name' => 'Northern Mariana Islands',
+ 'alpha2' => 'MP',
+ 'alpha3' => 'MNP',
+ 'numeric' => '580',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Norway',
+ 'alpha2' => 'NO',
+ 'alpha3' => 'NOR',
+ 'numeric' => '578',
+ 'currency' => [
+ 'NOK',
+ ],
+ ],
+ [
+ 'name' => 'Oman',
+ 'alpha2' => 'OM',
+ 'alpha3' => 'OMN',
+ 'numeric' => '512',
+ 'currency' => [
+ 'OMR',
+ ],
+ ],
+ [
+ 'name' => 'Pakistan',
+ 'alpha2' => 'PK',
+ 'alpha3' => 'PAK',
+ 'numeric' => '586',
+ 'currency' => [
+ 'PKR',
+ ],
+ ],
+ [
+ 'name' => 'Palau',
+ 'alpha2' => 'PW',
+ 'alpha3' => 'PLW',
+ 'numeric' => '585',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Palestine, State of',
+ 'alpha2' => 'PS',
+ 'alpha3' => 'PSE',
+ 'numeric' => '275',
+ 'currency' => [
+ 'ILS',
+ ],
+ ],
+ [
+ 'name' => 'Panama',
+ 'alpha2' => 'PA',
+ 'alpha3' => 'PAN',
+ 'numeric' => '591',
+ 'currency' => [
+ 'PAB',
+ ],
+ ],
+ [
+ 'name' => 'Papua New Guinea',
+ 'alpha2' => 'PG',
+ 'alpha3' => 'PNG',
+ 'numeric' => '598',
+ 'currency' => [
+ 'PGK',
+ ],
+ ],
+ [
+ 'name' => 'Paraguay',
+ 'alpha2' => 'PY',
+ 'alpha3' => 'PRY',
+ 'numeric' => '600',
+ 'currency' => [
+ 'PYG',
+ ],
+ ],
+ [
+ 'name' => 'Peru',
+ 'alpha2' => 'PE',
+ 'alpha3' => 'PER',
+ 'numeric' => '604',
+ 'currency' => [
+ 'PEN',
+ ],
+ ],
+ [
+ 'name' => 'Philippines',
+ 'alpha2' => 'PH',
+ 'alpha3' => 'PHL',
+ 'numeric' => '608',
+ 'currency' => [
+ 'PHP',
+ ],
+ ],
+ [
+ 'name' => 'Pitcairn',
+ 'alpha2' => 'PN',
+ 'alpha3' => 'PCN',
+ 'numeric' => '612',
+ 'currency' => [
+ 'NZD',
+ ],
+ ],
+ [
+ 'name' => 'Poland',
+ 'alpha2' => 'PL',
+ 'alpha3' => 'POL',
+ 'numeric' => '616',
+ 'currency' => [
+ 'PLN',
+ ],
+ ],
+ [
+ 'name' => 'Portugal',
+ 'alpha2' => 'PT',
+ 'alpha3' => 'PRT',
+ 'numeric' => '620',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Puerto Rico',
+ 'alpha2' => 'PR',
+ 'alpha3' => 'PRI',
+ 'numeric' => '630',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Qatar',
+ 'alpha2' => 'QA',
+ 'alpha3' => 'QAT',
+ 'numeric' => '634',
+ 'currency' => [
+ 'QAR',
+ ],
+ ],
+ [
+ 'name' => 'Réunion',
+ 'alpha2' => 'RE',
+ 'alpha3' => 'REU',
+ 'numeric' => '638',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Romania',
+ 'alpha2' => 'RO',
+ 'alpha3' => 'ROU',
+ 'numeric' => '642',
+ 'currency' => [
+ 'RON',
+ ],
+ ],
+ [
+ 'name' => 'Russian Federation',
+ 'alpha2' => 'RU',
+ 'alpha3' => 'RUS',
+ 'numeric' => '643',
+ 'currency' => [
+ 'RUB',
+ ],
+ ],
+ [
+ 'name' => 'Rwanda',
+ 'alpha2' => 'RW',
+ 'alpha3' => 'RWA',
+ 'numeric' => '646',
+ 'currency' => [
+ 'RWF',
+ ],
+ ],
+ [
+ 'name' => 'Saint Barthélemy',
+ 'alpha2' => 'BL',
+ 'alpha3' => 'BLM',
+ 'numeric' => '652',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Saint Helena, Ascension and Tristan da Cunha',
+ 'alpha2' => 'SH',
+ 'alpha3' => 'SHN',
+ 'numeric' => '654',
+ 'currency' => [
+ 'SHP',
+ ],
+ ],
+ [
+ 'name' => 'Saint Kitts and Nevis',
+ 'alpha2' => 'KN',
+ 'alpha3' => 'KNA',
+ 'numeric' => '659',
+ 'currency' => [
+ 'XCD',
+ ],
+ ],
+ [
+ 'name' => 'Saint Lucia',
+ 'alpha2' => 'LC',
+ 'alpha3' => 'LCA',
+ 'numeric' => '662',
+ 'currency' => [
+ 'XCD',
+ ],
+ ],
+ [
+ 'name' => 'Saint Martin (French part)',
+ 'alpha2' => 'MF',
+ 'alpha3' => 'MAF',
+ 'numeric' => '663',
+ 'currency' => [
+ 'EUR',
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Saint Pierre and Miquelon',
+ 'alpha2' => 'PM',
+ 'alpha3' => 'SPM',
+ 'numeric' => '666',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Saint Vincent and the Grenadines',
+ 'alpha2' => 'VC',
+ 'alpha3' => 'VCT',
+ 'numeric' => '670',
+ 'currency' => [
+ 'XCD',
+ ],
+ ],
+ [
+ 'name' => 'Samoa',
+ 'alpha2' => 'WS',
+ 'alpha3' => 'WSM',
+ 'numeric' => '882',
+ 'currency' => [
+ 'WST',
+ ],
+ ],
+ [
+ 'name' => 'San Marino',
+ 'alpha2' => 'SM',
+ 'alpha3' => 'SMR',
+ 'numeric' => '674',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Sao Tome and Principe',
+ 'alpha2' => 'ST',
+ 'alpha3' => 'STP',
+ 'numeric' => '678',
+ 'currency' => [
+ 'STD',
+ ],
+ ],
+ [
+ 'name' => 'Saudi Arabia',
+ 'alpha2' => 'SA',
+ 'alpha3' => 'SAU',
+ 'numeric' => '682',
+ 'currency' => [
+ 'SAR',
+ ],
+ ],
+ [
+ 'name' => 'Senegal',
+ 'alpha2' => 'SN',
+ 'alpha3' => 'SEN',
+ 'numeric' => '686',
+ 'currency' => [
+ 'XOF',
+ ],
+ ],
+ [
+ 'name' => 'Serbia',
+ 'alpha2' => 'RS',
+ 'alpha3' => 'SRB',
+ 'numeric' => '688',
+ 'currency' => [
+ 'RSD',
+ ],
+ ],
+ [
+ 'name' => 'Seychelles',
+ 'alpha2' => 'SC',
+ 'alpha3' => 'SYC',
+ 'numeric' => '690',
+ 'currency' => [
+ 'SCR',
+ ],
+ ],
+ [
+ 'name' => 'Sierra Leone',
+ 'alpha2' => 'SL',
+ 'alpha3' => 'SLE',
+ 'numeric' => '694',
+ 'currency' => [
+ 'SLL',
+ ],
+ ],
+ [
+ 'name' => 'Singapore',
+ 'alpha2' => 'SG',
+ 'alpha3' => 'SGP',
+ 'numeric' => '702',
+ 'currency' => [
+ 'SGD',
+ ],
+ ],
+ [
+ 'name' => 'Sint Maarten (Dutch part)',
+ 'alpha2' => 'SX',
+ 'alpha3' => 'SXM',
+ 'numeric' => '534',
+ 'currency' => [
+ 'ANG',
+ ],
+ ],
+ [
+ 'name' => 'Slovakia',
+ 'alpha2' => 'SK',
+ 'alpha3' => 'SVK',
+ 'numeric' => '703',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Slovenia',
+ 'alpha2' => 'SI',
+ 'alpha3' => 'SVN',
+ 'numeric' => '705',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Solomon Islands',
+ 'alpha2' => 'SB',
+ 'alpha3' => 'SLB',
+ 'numeric' => '090',
+ 'currency' => [
+ 'SBD',
+ ],
+ ],
+ [
+ 'name' => 'Somalia',
+ 'alpha2' => 'SO',
+ 'alpha3' => 'SOM',
+ 'numeric' => '706',
+ 'currency' => [
+ 'SOS',
+ ],
+ ],
+ [
+ 'name' => 'South Africa',
+ 'alpha2' => 'ZA',
+ 'alpha3' => 'ZAF',
+ 'numeric' => '710',
+ 'currency' => [
+ 'ZAR',
+ ],
+ ],
+ [
+ 'name' => 'South Georgia and the South Sandwich Islands',
+ 'alpha2' => 'GS',
+ 'alpha3' => 'SGS',
+ 'numeric' => '239',
+ 'currency' => [
+ 'GBP',
+ ],
+ ],
+ [
+ 'name' => 'South Sudan',
+ 'alpha2' => 'SS',
+ 'alpha3' => 'SSD',
+ 'numeric' => '728',
+ 'currency' => [
+ 'SSP',
+ ],
+ ],
+ [
+ 'name' => 'Spain',
+ 'alpha2' => 'ES',
+ 'alpha3' => 'ESP',
+ 'numeric' => '724',
+ 'currency' => [
+ 'EUR',
+ ],
+ ],
+ [
+ 'name' => 'Sri Lanka',
+ 'alpha2' => 'LK',
+ 'alpha3' => 'LKA',
+ 'numeric' => '144',
+ 'currency' => [
+ 'LKR',
+ ],
+ ],
+ [
+ 'name' => 'Sudan',
+ 'alpha2' => 'SD',
+ 'alpha3' => 'SDN',
+ 'numeric' => '729',
+ 'currency' => [
+ 'SDG',
+ ],
+ ],
+ [
+ 'name' => 'Suriname',
+ 'alpha2' => 'SR',
+ 'alpha3' => 'SUR',
+ 'numeric' => '740',
+ 'currency' => [
+ 'SRD',
+ ],
+ ],
+ [
+ 'name' => 'Svalbard and Jan Mayen',
+ 'alpha2' => 'SJ',
+ 'alpha3' => 'SJM',
+ 'numeric' => '744',
+ 'currency' => [
+ 'NOK',
+ ],
+ ],
+ [
+ 'name' => 'Swaziland',
+ 'alpha2' => 'SZ',
+ 'alpha3' => 'SWZ',
+ 'numeric' => '748',
+ 'currency' => [
+ 'SZL',
+ 'ZAR',
+ ],
+ ],
+ [
+ 'name' => 'Sweden',
+ 'alpha2' => 'SE',
+ 'alpha3' => 'SWE',
+ 'numeric' => '752',
+ 'currency' => [
+ 'SEK',
+ ],
+ ],
+ [
+ 'name' => 'Switzerland',
+ 'alpha2' => 'CH',
+ 'alpha3' => 'CHE',
+ 'numeric' => '756',
+ 'currency' => [
+ 'CHF',
+ ],
+ ],
+ [
+ 'name' => 'Syrian Arab Republic',
+ 'alpha2' => 'SY',
+ 'alpha3' => 'SYR',
+ 'numeric' => '760',
+ 'currency' => [
+ 'SYP',
+ ],
+ ],
+ [
+ 'name' => 'Taiwan (Province of China)',
+ 'alpha2' => 'TW',
+ 'alpha3' => 'TWN',
+ 'numeric' => '158',
+ 'currency' => [
+ 'TWD',
+ ],
+ ],
+ [
+ 'name' => 'Tajikistan',
+ 'alpha2' => 'TJ',
+ 'alpha3' => 'TJK',
+ 'numeric' => '762',
+ 'currency' => [
+ 'TJS',
+ ],
+ ],
+ [
+ 'name' => 'Tanzania, United Republic of',
+ 'alpha2' => 'TZ',
+ 'alpha3' => 'TZA',
+ 'numeric' => '834',
+ 'currency' => [
+ 'TZS',
+ ],
+ ],
+ [
+ 'name' => 'Thailand',
+ 'alpha2' => 'TH',
+ 'alpha3' => 'THA',
+ 'numeric' => '764',
+ 'currency' => [
+ 'THB',
+ ],
+ ],
+ [
+ 'name' => 'Timor-Leste',
+ 'alpha2' => 'TL',
+ 'alpha3' => 'TLS',
+ 'numeric' => '626',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Togo',
+ 'alpha2' => 'TG',
+ 'alpha3' => 'TGO',
+ 'numeric' => '768',
+ 'currency' => [
+ 'XOF',
+ ],
+ ],
+ [
+ 'name' => 'Tokelau',
+ 'alpha2' => 'TK',
+ 'alpha3' => 'TKL',
+ 'numeric' => '772',
+ 'currency' => [
+ 'NZD',
+ ],
+ ],
+ [
+ 'name' => 'Tonga',
+ 'alpha2' => 'TO',
+ 'alpha3' => 'TON',
+ 'numeric' => '776',
+ 'currency' => [
+ 'TOP',
+ ],
+ ],
+ [
+ 'name' => 'Trinidad and Tobago',
+ 'alpha2' => 'TT',
+ 'alpha3' => 'TTO',
+ 'numeric' => '780',
+ 'currency' => [
+ 'TTD',
+ ],
+ ],
+ [
+ 'name' => 'Tunisia',
+ 'alpha2' => 'TN',
+ 'alpha3' => 'TUN',
+ 'numeric' => '788',
+ 'currency' => [
+ 'TND',
+ ],
+ ],
+ [
+ 'name' => 'Turkey',
+ 'alpha2' => 'TR',
+ 'alpha3' => 'TUR',
+ 'numeric' => '792',
+ 'currency' => [
+ 'TRY',
+ ],
+ ],
+ [
+ 'name' => 'Turkmenistan',
+ 'alpha2' => 'TM',
+ 'alpha3' => 'TKM',
+ 'numeric' => '795',
+ 'currency' => [
+ 'TMT',
+ ],
+ ],
+ [
+ 'name' => 'Turks and Caicos Islands',
+ 'alpha2' => 'TC',
+ 'alpha3' => 'TCA',
+ 'numeric' => '796',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Tuvalu',
+ 'alpha2' => 'TV',
+ 'alpha3' => 'TUV',
+ 'numeric' => '798',
+ 'currency' => [
+ 'AUD',
+ ],
+ ],
+ [
+ 'name' => 'Uganda',
+ 'alpha2' => 'UG',
+ 'alpha3' => 'UGA',
+ 'numeric' => '800',
+ 'currency' => [
+ 'UGX',
+ ],
+ ],
+ [
+ 'name' => 'Ukraine',
+ 'alpha2' => 'UA',
+ 'alpha3' => 'UKR',
+ 'numeric' => '804',
+ 'currency' => [
+ 'UAH',
+ ],
+ ],
+ [
+ 'name' => 'United Arab Emirates',
+ 'alpha2' => 'AE',
+ 'alpha3' => 'ARE',
+ 'numeric' => '784',
+ 'currency' => [
+ 'AED',
+ ],
+ ],
+ [
+ 'name' => 'United Kingdom of Great Britain and Northern Ireland',
+ 'alpha2' => 'GB',
+ 'alpha3' => 'GBR',
+ 'numeric' => '826',
+ 'currency' => [
+ 'GBP',
+ ],
+ ],
+ [
+ 'name' => 'United States of America',
+ 'alpha2' => 'US',
+ 'alpha3' => 'USA',
+ 'numeric' => '840',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'United States Minor Outlying Islands',
+ 'alpha2' => 'UM',
+ 'alpha3' => 'UMI',
+ 'numeric' => '581',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Uruguay',
+ 'alpha2' => 'UY',
+ 'alpha3' => 'URY',
+ 'numeric' => '858',
+ 'currency' => [
+ 'UYU',
+ ],
+ ],
+ [
+ 'name' => 'Uzbekistan',
+ 'alpha2' => 'UZ',
+ 'alpha3' => 'UZB',
+ 'numeric' => '860',
+ 'currency' => [
+ 'UZS',
+ ],
+ ],
+ [
+ 'name' => 'Vanuatu',
+ 'alpha2' => 'VU',
+ 'alpha3' => 'VUT',
+ 'numeric' => '548',
+ 'currency' => [
+ 'VUV',
+ ],
+ ],
+ [
+ 'name' => 'Venezuela (Bolivarian Republic of)',
+ 'alpha2' => 'VE',
+ 'alpha3' => 'VEN',
+ 'numeric' => '862',
+ 'currency' => [
+ 'VEF',
+ ],
+ ],
+ [
+ 'name' => 'Viet Nam',
+ 'alpha2' => 'VN',
+ 'alpha3' => 'VNM',
+ 'numeric' => '704',
+ 'currency' => [
+ 'VND',
+ ],
+ ],
+ [
+ 'name' => 'Virgin Islands (British)',
+ 'alpha2' => 'VG',
+ 'alpha3' => 'VGB',
+ 'numeric' => '092',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Virgin Islands (U.S.)',
+ 'alpha2' => 'VI',
+ 'alpha3' => 'VIR',
+ 'numeric' => '850',
+ 'currency' => [
+ 'USD',
+ ],
+ ],
+ [
+ 'name' => 'Wallis and Futuna',
+ 'alpha2' => 'WF',
+ 'alpha3' => 'WLF',
+ 'numeric' => '876',
+ 'currency' => [
+ 'XPF',
+ ],
+ ],
+ [
+ 'name' => 'Western Sahara',
+ 'alpha2' => 'EH',
+ 'alpha3' => 'ESH',
+ 'numeric' => '732',
+ 'currency' => [
+ 'MAD',
+ ],
+ ],
+ [
+ 'name' => 'Yemen',
+ 'alpha2' => 'YE',
+ 'alpha3' => 'YEM',
+ 'numeric' => '887',
+ 'currency' => [
+ 'YER',
+ ],
+ ],
+ [
+ 'name' => 'Zambia',
+ 'alpha2' => 'ZM',
+ 'alpha3' => 'ZMB',
+ 'numeric' => '894',
+ 'currency' => [
+ 'ZMW',
+ ],
+ ],
+ [
+ 'name' => 'Zimbabwe',
+ 'alpha2' => 'ZW',
+ 'alpha3' => 'ZWE',
+ 'numeric' => '716',
+ 'currency' => [
+ 'BWP',
+ 'EUR',
+ 'GBP',
+ 'USD',
+ 'ZAR',
+ ],
+ ],
+ ];
+}
diff --git a/vendors/league-iso3166/vendor/league/iso3166/src/ISO3166DataProvider.php b/vendors/league-iso3166/vendor/league/iso3166/src/ISO3166DataProvider.php
new file mode 100644
index 0000000..71da6de
--- /dev/null
+++ b/vendors/league-iso3166/vendor/league/iso3166/src/ISO3166DataProvider.php
@@ -0,0 +1,58 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+namespace League\ISO3166;
+
+interface ISO3166DataProvider
+{
+ /**
+ * Lookup ISO3166-1 data by alpha2 identifier.
+ *
+ * @api
+ *
+ * @param string $alpha2
+ *
+ * @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
+ * @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha2 key
+ * @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
+ *
+ * @return array
+ */
+ public function alpha2($alpha2);
+
+ /**
+ * Lookup ISO3166-1 data by alpha3 identifier.
+ *
+ * @api
+ *
+ * @param string $alpha3
+ *
+ * @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
+ * @throws \League\ISO3166\Exception\DomainException if input does not look like an alpha3 key
+ * @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
+ *
+ * @return array
+ */
+ public function alpha3($alpha3);
+
+ /**
+ * Lookup ISO3166-1 data by numeric identifier (numerical string, that is).
+ *
+ * @api
+ *
+ * @param string $numeric
+ *
+ * @throws \League\ISO3166\Exception\InvalidArgumentException if input is not a string
+ * @throws \League\ISO3166\Exception\DomainException if input does not look like a numeric key
+ * @throws \League\ISO3166\Exception\OutOfBoundsException if input does not exist in dataset
+ *
+ * @return array
+ */
+ public function numeric($numeric);
+}
diff --git a/vendors/league-iso3166/vendor/league/iso3166/src/ISO3166DataValidator.php b/vendors/league-iso3166/vendor/league/iso3166/src/ISO3166DataValidator.php
new file mode 100644
index 0000000..9b907eb
--- /dev/null
+++ b/vendors/league-iso3166/vendor/league/iso3166/src/ISO3166DataValidator.php
@@ -0,0 +1,55 @@
+
+ *
+ * For the full copyright and license information, please view
+ * the LICENSE file that was distributed with this source code.
+ */
+
+namespace League\ISO3166;
+
+use League\ISO3166\Exception\DomainException;
+
+final class ISO3166DataValidator
+{
+ /**
+ * @param array $data
+ *
+ * @return array
+ */
+ public function validate(array $data)
+ {
+ foreach ($data as $entry) {
+ $this->assertEntryHasRequiredKeys($entry);
+ }
+
+ return $data;
+ }
+
+ /**
+ * @param array $entry
+ *
+ * @throws \League\ISO3166\Exception\DomainException if given data entry does not have all the required keys
+ */
+ private function assertEntryHasRequiredKeys(array $entry)
+ {
+ if (!isset($entry[ISO3166::KEY_ALPHA2])) {
+ throw new DomainException('Each data entry must have a valid alpha2 key.');
+ }
+
+ Guards::guardAgainstInvalidAlpha2($entry[ISO3166::KEY_ALPHA2]);
+
+ if (!isset($entry[ISO3166::KEY_ALPHA3])) {
+ throw new DomainException('Each data entry must have a valid alpha3 key.');
+ }
+
+ Guards::guardAgainstInvalidAlpha3($entry[ISO3166::KEY_ALPHA3]);
+
+ if (!isset($entry[ISO3166::KEY_NUMERIC])) {
+ throw new DomainException('Each data entry must have a valid numeric key.');
+ }
+
+ Guards::guardAgainstInvalidNumeric($entry[ISO3166::KEY_NUMERIC]);
+ }
+}
diff --git a/woocommerce-gateway-mondido.php b/woocommerce-gateway-mondido.php
index d16b81e..00dd731 100644
--- a/woocommerce-gateway-mondido.php
+++ b/woocommerce-gateway-mondido.php
@@ -20,6 +20,9 @@ class WC_Mondido_Payments {
* Constructor
*/
public function __construct() {
+ // Includes
+ $this->includes();
+
// Actions
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ), array(
$this,
@@ -60,7 +63,25 @@ public function __construct() {
// WC_Order Compatibility for WC < 3.0
add_action( 'woocommerce_init', __CLASS__ . '::add_compatibility' );
- }
+
+ // Mondido Checkout
+ add_action( 'wp_ajax_mondido_place_order', array( $this, 'ajax_mondido_place_order' ) );
+ add_action( 'wp_ajax_nopriv_mondido_place_order', array( $this, 'ajax_mondido_place_order' ) );
+
+ add_action( 'wp_ajax_mondido_buy_product', array( $this, 'ajax_mondido_buy_product' ) );
+ add_action( 'wp_ajax_nopriv_mondido_buy_product', array( $this, 'ajax_mondido_buy_product' ) );
+ }
+
+ /**
+ * Load Vendors
+ */
+ public function includes() {
+ $vendorsDir = dirname( __FILE__ ) . '/vendors';
+
+ if ( ! class_exists( '\\League\\ISO3166\\ISO3166', FALSE ) ) {
+ require_once $vendorsDir . '/league-iso3166/vendor/autoload.php';
+ }
+ }
/**
* Add relevant links to plugins page
@@ -91,6 +112,7 @@ public function init() {
// Includes
include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-mondido-abstract.php' );
include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-mondido-hw.php' );
+ include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-mondido-checkout.php' );
include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-mondido-invoice.php' );
include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-mondido-bank.php' );
include_once( dirname( __FILE__ ) . '/includes/class-wc-gateway-mondido-swish.php' );
@@ -102,6 +124,7 @@ public function init() {
*/
public function register_gateway( $methods ) {
$methods[] = 'WC_Gateway_Mondido_HW';
+ $methods[] = 'WC_Gateway_Mondido_Checkout';
$methods[] = 'WC_Gateway_Mondido_Invoice';
$methods[] = 'WC_Gateway_Mondido_Bank';
$methods[] = 'WC_Gateway_Mondido_Swish';
@@ -115,6 +138,23 @@ public function register_gateway( $methods ) {
*/
public function add_scripts() {
wp_enqueue_style( 'wc-gateway-mondido', plugins_url( '/assets/css/style.css', __FILE__ ), array(), FALSE, 'all' );
+ wp_enqueue_script( 'iframe-resizer', untrailingslashit( plugins_url( '/', __FILE__ ) ) . '/assets/js/iframe-resizer/iframeResizer.min.js', array(), NULL, FALSE );
+
+ wp_register_script( 'wc-gateway-mondido-checkout', untrailingslashit( plugins_url( '/', __FILE__ ) ) . '/assets/js/checkout.js', array( 'jquery' ), NULL, TRUE );
+
+ // Localize the script with new data
+ $translation_array = array(
+ 'place_order_url' => add_query_arg( 'action', 'mondido_place_order', admin_url( 'admin-ajax.php' ) ),
+ 'buy_product_url' => add_query_arg( 'action', 'mondido_buy_product', admin_url( 'admin-ajax.php' ) )
+ );
+ wp_localize_script( 'wc-gateway-mondido-checkout', 'WC_Gateway_Mondido_Checkout', $translation_array );
+
+ if ( is_product() ) {
+ wp_enqueue_script( 'wc-gateway-mondido-product', untrailingslashit( plugins_url( '/', __FILE__ ) ) . '/assets/js/product.js', array( 'wc-gateway-mondido-checkout' ), NULL, TRUE );
+ }
+
+ // Enqueued script with localized data.
+ wp_enqueue_script( 'wc-gateway-mondido-checkout' );
}
/**
@@ -372,6 +412,10 @@ public static function order_needs_payment( $needs_payment, $order, $valid_order
* @return mixed
*/
public function add_recurring_items( $fields, $order, $gateway ) {
+ if ( ! $order ) {
+ return $fields;
+ }
+
foreach ( $order->get_items( 'line_item' ) as $order_item ) {
if ( version_compare( WC()->version, '3.0', '>=' ) ) {
$plan_id = get_post_meta( $order_item->get_product_id(), '_mondido_plan_id', TRUE );
@@ -423,6 +467,60 @@ public static function add_compatibility() {
include_once( dirname( __FILE__ ) . '/includes/deprecated/class-wc-order-compatibility-mondido.php' );
}
}
+
+ /**
+ * Place Order
+ * @return void
+ */
+ public function ajax_mondido_place_order()
+ {
+ define( 'WOOCOMMERCE_CHECKOUT', TRUE );
+ WC()->cart->get_cart_from_session();
+
+ try {
+ // @todo WC 2.6 support
+ $data = array(
+ 'payment_method' => 'mondido_checkout',
+ 'customer_id' => get_current_user_id(),
+ 'status' => 'pending'
+ );
+
+ $order_id = WC()->checkout()->create_order( $data );
+ if ( is_wp_error( $order_id ) ) {
+ throw new Exception( $order_id->get_error_message() );
+ }
+
+ $order = wc_get_order( $order_id );
+ do_action( 'woocommerce_checkout_order_processed', $order_id, $data, $order );
+ } catch ( Exception $e ) {
+ wp_send_json_error( $e->getMessage() );
+
+ return;
+ }
+
+ // Mondido Checkout flag
+ update_post_meta( $order_id, '_mondido_checkout', TRUE );
+
+ wp_send_json_success( array(
+ 'order_id' => $order_id,
+ 'redirect_url' => $order->get_checkout_payment_url( TRUE )
+ ) );
+ }
+
+ public function ajax_mondido_buy_product()
+ {
+ define( 'WOOCOMMERCE_CART', TRUE );
+ $product_id = stripslashes( $_POST['product_id'] );
+ $qty = stripslashes( $_POST['qty'] );
+
+ // @todo Variations
+
+ WC()->cart->empty_cart( TRUE );
+ WC()->cart->add_to_cart($product_id, $qty);
+ WC()->cart->calculate_totals();
+
+ wp_send_json_success();
+ }
}
new WC_Mondido_Payments();