From bdb659d570467b9f6b762ce0fcd119f51faa889d Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 11 Sep 2018 13:57:48 -0400 Subject: [PATCH] Country no longer required for Authorize.net payment gateway unless international payment. --- index.php | 6 +++--- lib/paymentProcessors/Authorize.Net/paymentGateway.php | 7 ++++--- readme.txt | 5 ++++- 3 files changed, 11 insertions(+), 7 deletions(-) mode change 100644 => 100755 index.php mode change 100644 => 100755 lib/paymentProcessors/Authorize.Net/paymentGateway.php mode change 100644 => 100755 readme.txt diff --git a/index.php b/index.php old mode 100644 new mode 100755 index e0d57bc9..8bf69702 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Associate - Members Plugin * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media GLM Associate core plugin and Members database. - * Version: 2.10.42 + * Version: 2.10.43 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersDatabase * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 2.10.42 + * @version 2.10.43 */ $GLOBALS['glmAssociateMemTracker'] = memory_get_usage(); @@ -47,7 +47,7 @@ if (!defined('ABSPATH')) { * */ -define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.42'); +define('GLM_MEMBERS_PLUGIN_VERSION', '2.10.43'); define('GLM_MEMBERS_PLUGIN_DB_VERSION', '1.1.38'); // Check if plugin version is not current in WordPress option and if needed updated it diff --git a/lib/paymentProcessors/Authorize.Net/paymentGateway.php b/lib/paymentProcessors/Authorize.Net/paymentGateway.php old mode 100644 new mode 100755 index e998e8d3..0c7fb15a --- a/lib/paymentProcessors/Authorize.Net/paymentGateway.php +++ b/lib/paymentProcessors/Authorize.Net/paymentGateway.php @@ -291,9 +291,10 @@ class PaymentGateway if (!isset($customer['zip']) || trim($customer['zip']) == '') { $errorMsg[] = 'Required Customer ZIP/Postal Code not provided'; } - if (!isset($customer['country']) || trim($customer['country']) == '') { - $errorMsg[] = 'Required Customer Country not provided'; - } +// Not requiring country at this time. - See https://developer.authorize.net/api/reference/ and search for "Country" +// if (!isset($customer['country']) || trim($customer['country']) == '') { +// $errorMsg[] = 'Required Customer Country not provided'; +// } if (!isset($payment['charge']) || (trim($payment['charge'])-0) <= 0) { $errorMsg[] = 'Required Charge Amount not provided'; } diff --git a/readme.txt b/readme.txt old mode 100644 new mode 100755 index b6d56a4c..6f1bc5d9 --- a/readme.txt +++ b/readme.txt @@ -66,7 +66,10 @@ There is of course much more to this. (none) == Changelog == -= (pending) = += 2.10.43 = +* Country is no longer required for Authorize.net Payment Gateway unless International payment + += ? = * Added Leaflet Mapping alternative to Google Maps JAVAScript API = 2.10.34 = -- 2.17.1