From fda0b2dd1a4b223eec0faf2bd394b21963734f5a Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Tue, 25 Jan 2022 16:15:28 +0530 Subject: [PATCH 01/13] gift card enable option fixed --- globalpayments-gateway-provider-for-woocommerce.php | 2 +- readme.txt | 7 +++++-- src/Gateways/HeartlandGateway.php | 2 +- src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php | 8 +++++--- src/Plugin.php | 2 +- 5 files changed, 13 insertions(+), 8 deletions(-) diff --git a/globalpayments-gateway-provider-for-woocommerce.php b/globalpayments-gateway-provider-for-woocommerce.php index 002fa51..0eb0ed1 100644 --- a/globalpayments-gateway-provider-for-woocommerce.php +++ b/globalpayments-gateway-provider-for-woocommerce.php @@ -3,7 +3,7 @@ * Plugin Name: GlobalPayments WooCommerce * Plugin URI: https://github.com/globalpayments/globalpayments-woocommerce * Description: This extension allows WooCommerce to use the available Global Payments payment gateways. All card data is tokenized using the respective gateway's tokenization service. - * Version: 1.1.3 + * Version: 1.1.4 * Requires PHP: 5.5.9 * WC tested up to: 5.6.0 * Author: Global Payments diff --git a/readme.txt b/readme.txt index a74f9a2..5ba8cd9 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: globalpayments Tags: woocommerce, woo, unified, commerce, platform, global, payments, ucp, heartland, payment, systems, tsys, genius, 3DS, gateway, token, tokenize, save cards Requires at least: 5.4 Tested up to: 5.8 -Stable tag: 1.1.3 +Stable tag: 1.1.4 License: MIT License URI: https://github.com/globalpayments/globalpayments-woocommerce/blob/main/LICENSE @@ -45,7 +45,10 @@ Access to our Unified Commerce Platform (UCP) requires sandbox credentials which == Changelog == -= 1.1.3= += 1.1.4 = +* Bug fix - Heartland gift card enable error + += 1.1.3 = * Added composer * Bug fix - globalpayments_gpapi-checkout_validated displayed although it should be hidden diff --git a/src/Gateways/HeartlandGateway.php b/src/Gateways/HeartlandGateway.php index 4fb1c29..3a743ed 100644 --- a/src/Gateways/HeartlandGateway.php +++ b/src/Gateways/HeartlandGateway.php @@ -148,7 +148,7 @@ protected function add_hooks() { parent::add_hooks(); if ($this->allow_gift_cards === true) { - $HeartlandGiftGateway = new HeartlandGiftGateway(); + $HeartlandGiftGateway = new HeartlandGiftGateway($this); add_action('wp_ajax_nopriv_use_gift_card', array($HeartlandGiftGateway, 'applyGiftCard')); add_action('wp_ajax_use_gift_card', array($HeartlandGiftGateway, 'applyGiftCard')); diff --git a/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php b/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php index 8ae4eb4..18c2a47 100644 --- a/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php +++ b/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php @@ -14,10 +14,12 @@ class HeartlandGiftGateway { - function __construct() + function __construct($heartlandGateway = null) { - $HeartlandGateway = new HeartlandGateway(); - $this->secret_api_key = $HeartlandGateway->get_backend_gateway_options()['secretApiKey']; + if(is_null($heartlandGateway)){ + $heartlandGateway = new HeartlandGateway(); + } + $this->secret_api_key = $heartlandGateway->get_backend_gateway_options()['secretApiKey']; } protected $temp_balance; diff --git a/src/Plugin.php b/src/Plugin.php index cab902e..aad9f3e 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -20,7 +20,7 @@ class Plugin { * * @var string */ - const VERSION = '1.1.3'; + const VERSION = '1.1.4'; /** * Init the package. From 5a9c241ef0b79eeaf06859430bfa4ce1fa1530a8 Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Mon, 31 Jan 2022 15:29:01 +0530 Subject: [PATCH 02/13] fixed add ajax gift error --- src/Gateways/HeartlandGateway.php | 7 ++++--- src/Plugin.php | 12 +++++++++++- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/Gateways/HeartlandGateway.php b/src/Gateways/HeartlandGateway.php index 3a743ed..f90e0d1 100644 --- a/src/Gateways/HeartlandGateway.php +++ b/src/Gateways/HeartlandGateway.php @@ -8,6 +8,7 @@ use GlobalPayments\Api\Entities\Reporting\TransactionSummary; use GlobalPayments\Api\Entities\Transaction; use GlobalPayments\WooCommercePaymentGatewayProvider\Gateways\HeartlandGiftCards\HeartlandGiftCardOrder; +use GlobalPayments\WooCommercePaymentGatewayProvider\Plugin; defined( 'ABSPATH' ) || exit; @@ -149,9 +150,9 @@ protected function add_hooks() { if ($this->allow_gift_cards === true) { $HeartlandGiftGateway = new HeartlandGiftGateway($this); - - add_action('wp_ajax_nopriv_use_gift_card', array($HeartlandGiftGateway, 'applyGiftCard')); + add_action('wp_ajax_use_gift_card', array($HeartlandGiftGateway, 'applyGiftCard')); + add_action('wp_ajax_nopriv_use_gift_card', array($HeartlandGiftGateway, 'applyGiftCard')); add_action('woocommerce_review_order_before_order_total', array($HeartlandGiftGateway, 'addGiftCards')); add_action('woocommerce_cart_totals_before_order_total', array($HeartlandGiftGateway, 'addGiftCards')); add_filter('woocommerce_calculated_total', array($HeartlandGiftGateway, 'updateOrderTotal'), 10, 2); @@ -246,7 +247,7 @@ public function payment_fields() { $path = dirname(plugin_dir_path(__FILE__)); include_once $path . '/../assets/frontend/HeartlandGiftFields.php'; - wp_enqueue_style('heartland-gift-cards', $path . '/../assets/frontend/css/heartland-gift-cards.css'); + wp_enqueue_style('heartland-gift-cards', Plugin::get_url('/assets/frontend/css/heartland-gift-cards.css')); } } diff --git a/src/Plugin.php b/src/Plugin.php index aad9f3e..acb4b87 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -31,7 +31,17 @@ public static function init() { if ( ! class_exists( 'WC_Payment_Gateway' ) ) { return; } - + + $gateways = array( + Gateways\HeartlandGateway::class, + Gateways\GeniusGateway::class, + Gateways\TransitGateway::class, + Gateways\GpApiGateway::class, + ); + foreach ( $gateways as $gateway ) { + new $gateway; + } + add_filter( 'woocommerce_payment_gateways', array( self::class, 'add_gateways' ) ); add_action( 'woocommerce_order_actions', array( Gateways\AbstractGateway::class, 'addCaptureOrderAction' ) ); add_action( 'woocommerce_order_action_capture_credit_card_authorization', array( Gateways\AbstractGateway::class, 'capture_credit_card_authorization' ) ); From 8f1430eeedbd734d9757a95f478d75f0438d17db Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Mon, 31 Jan 2022 16:17:48 +0530 Subject: [PATCH 03/13] read me file version update and AVS option changes --- readme.txt | 2 +- src/Gateways/AbstractGateway.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/readme.txt b/readme.txt index 5ba8cd9..9ad31f8 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: globalpayments Tags: woocommerce, woo, unified, commerce, platform, global, payments, ucp, heartland, payment, systems, tsys, genius, 3DS, gateway, token, tokenize, save cards Requires at least: 5.4 -Tested up to: 5.8 +Tested up to: 6.0.0 Stable tag: 1.1.4 License: MIT License URI: https://github.com/globalpayments/globalpayments-woocommerce/blob/main/LICENSE diff --git a/src/Gateways/AbstractGateway.php b/src/Gateways/AbstractGateway.php index cd20cba..fd94673 100644 --- a/src/Gateways/AbstractGateway.php +++ b/src/Gateways/AbstractGateway.php @@ -953,8 +953,8 @@ protected function handle_response( Requests\RequestInterface $request, Transact if(!empty($response->transactionReference->transactionId) && $this->get_option('check_avs_cvv') === 'yes'){ if(!empty($response->avsResponseCode) || !empty($response->cvnResponseCode)){ //check admin selected decline condtions - if(in_array($response->avsResponseCode, $this->avs_reject_conditions) || - in_array($response->cvnResponseCode, $this->cvn_reject_conditions)){ + if(in_array($response->avsResponseCode, $this->get_option('avs_reject_conditions')) || + in_array($response->cvnResponseCode, $this->get_option('cvn_reject_conditions'))){ Transaction::fromId( $response->transactionReference->transactionId ) ->reverse( $request->order->data[ 'total' ] ) ->execute(); From f044e83f02ebbe77a92b5ca884ac0f177902ba1a Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Thu, 3 Feb 2022 18:49:09 +0530 Subject: [PATCH 04/13] fixed remove link error in page refresh --- assets/frontend/HeartlandGiftFields.php | 22 +------------ .../HeartlandGiftGateway.php | 32 +++++++++++++++++-- 2 files changed, 31 insertions(+), 23 deletions(-) diff --git a/assets/frontend/HeartlandGiftFields.php b/assets/frontend/HeartlandGiftFields.php index d760209..fc0c850 100644 --- a/assets/frontend/HeartlandGiftFields.php +++ b/assets/frontend/HeartlandGiftFields.php @@ -46,27 +46,7 @@ function applyGiftCard () { httpRequest.send(post_string); jQuery('body').trigger('update_checkout'); - }; - - jQuery(document).on( 'click', '.securesubmit-remove-gift-card', function (event) { - event.preventDefault(); - - var removedCardID = jQuery(this).attr('id'); - - jQuery.ajax({ - url: ajaxurl, - type: "POST", - data: { - action: 'remove_gift_card', - securesubmit_card_id: removedCardID - } - }).done(function () { - jQuery('body').trigger('update_checkout'); - jQuery(".button[name='update_cart']") - .prop("disabled", false) - .trigger("click"); - }); - }); + }; diff --git a/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php b/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php index 18c2a47..da490e3 100644 --- a/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php +++ b/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php @@ -251,8 +251,36 @@ public function addGiftCards() WC()->session->set('securesubmit_data', $securesubmit_data); $message = __('Total Before Gift Cards', 'wc_securesubmit'); - - $order_total_html = ''; + + $ajaxUrl = admin_url('admin-ajax.php'); + $order_total_html = << + if( typeof ajaxurl === "undefined") { + var ajaxurl = "{$ajaxUrl}"; + }; + jQuery(document).on( 'click', '.securesubmit-remove-gift-card', function (event) { + event.preventDefault(); + + var removedCardID = jQuery(this).attr('id'); + + jQuery.ajax({ + url: ajaxurl, + type: "POST", + data: { + action: 'remove_gift_card', + securesubmit_card_id: removedCardID + } + }).done(function () { + jQuery('body').trigger('update_checkout'); + jQuery(".button[name='update_cart']") + .prop("disabled", false) + .trigger("click"); + }); + }); + + EOT; + + $order_total_html .= ''; $order_total_html .= '' . $message . ''; $order_total_html .= '' . wc_price($original_total) . ''; $order_total_html .= ''; From bc1d8c60402022dc788bb4bf9a76cb6586fcc76b Mon Sep 17 00:00:00 2001 From: apetrovici Date: Mon, 7 Feb 2022 11:33:06 +0200 Subject: [PATCH 05/13] TR-51: [WooCommerce]: bug fix hosted fields not loading --- globalpayments-gateway-provider-for-woocommerce.php | 4 ++-- readme.txt | 7 +++++-- src/Gateways/AbstractGateway.php | 2 +- src/Plugin.php | 2 +- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/globalpayments-gateway-provider-for-woocommerce.php b/globalpayments-gateway-provider-for-woocommerce.php index 002fa51..533f59d 100644 --- a/globalpayments-gateway-provider-for-woocommerce.php +++ b/globalpayments-gateway-provider-for-woocommerce.php @@ -3,9 +3,9 @@ * Plugin Name: GlobalPayments WooCommerce * Plugin URI: https://github.com/globalpayments/globalpayments-woocommerce * Description: This extension allows WooCommerce to use the available Global Payments payment gateways. All card data is tokenized using the respective gateway's tokenization service. - * Version: 1.1.3 + * Version: 1.1.4 * Requires PHP: 5.5.9 - * WC tested up to: 5.6.0 + * WC tested up to: 6.1.1 * Author: Global Payments */ diff --git a/readme.txt b/readme.txt index a74f9a2..5187f24 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: globalpayments Tags: woocommerce, woo, unified, commerce, platform, global, payments, ucp, heartland, payment, systems, tsys, genius, 3DS, gateway, token, tokenize, save cards Requires at least: 5.4 Tested up to: 5.8 -Stable tag: 1.1.3 +Stable tag: 1.1.4 License: MIT License URI: https://github.com/globalpayments/globalpayments-woocommerce/blob/main/LICENSE @@ -45,7 +45,10 @@ Access to our Unified Commerce Platform (UCP) requires sandbox credentials which == Changelog == -= 1.1.3= += 1.1.4 = +* Add dependency for WC checkout frontend scripts. + += 1.1.3 = * Added composer * Bug fix - globalpayments_gpapi-checkout_validated displayed although it should be hidden diff --git a/src/Gateways/AbstractGateway.php b/src/Gateways/AbstractGateway.php index cd20cba..a690218 100644 --- a/src/Gateways/AbstractGateway.php +++ b/src/Gateways/AbstractGateway.php @@ -310,7 +310,7 @@ public function tokenization_script() { wp_enqueue_script( 'globalpayments-secure-payment-fields', Plugin::get_url( '/assets/frontend/js/globalpayments-secure-payment-fields.js' ), - array( 'globalpayments-secure-payment-fields-lib', 'jquery' ), + array( 'globalpayments-secure-payment-fields-lib', 'wc-checkout' ), WC()->version, true ); diff --git a/src/Plugin.php b/src/Plugin.php index cab902e..aad9f3e 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -20,7 +20,7 @@ class Plugin { * * @var string */ - const VERSION = '1.1.3'; + const VERSION = '1.1.4'; /** * Init the package. From af20c3e6ecfa6d7b0cee3347f4db6292c35cab7d Mon Sep 17 00:00:00 2001 From: apetrovici Date: Mon, 7 Feb 2022 14:20:43 +0200 Subject: [PATCH 06/13] TR-51: [WooCommerce]: bug fix hosted fields not loading --- globalpayments-gateway-provider-for-woocommerce.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/globalpayments-gateway-provider-for-woocommerce.php b/globalpayments-gateway-provider-for-woocommerce.php index 533f59d..0eb0ed1 100644 --- a/globalpayments-gateway-provider-for-woocommerce.php +++ b/globalpayments-gateway-provider-for-woocommerce.php @@ -5,7 +5,7 @@ * Description: This extension allows WooCommerce to use the available Global Payments payment gateways. All card data is tokenized using the respective gateway's tokenization service. * Version: 1.1.4 * Requires PHP: 5.5.9 - * WC tested up to: 6.1.1 + * WC tested up to: 5.6.0 * Author: Global Payments */ From cd269b99a7a56221d94916dc1dd9e5e9d8d2013d Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Mon, 7 Feb 2022 18:37:54 +0530 Subject: [PATCH 07/13] changes for payment fields reload --- assets/frontend/js/globalpayments-secure-payment-fields.js | 2 ++ src/Gateways/AbstractGateway.php | 4 ++-- src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/assets/frontend/js/globalpayments-secure-payment-fields.js b/assets/frontend/js/globalpayments-secure-payment-fields.js index f1bbde5..9007ca1 100644 --- a/assets/frontend/js/globalpayments-secure-payment-fields.js +++ b/assets/frontend/js/globalpayments-secure-payment-fields.js @@ -631,6 +631,8 @@ break; } case 'ERROR': + if(reason.message == "IframeField: target cannot be found with given selector") + break; this.showPaymentError( reason.message ); break; default: diff --git a/src/Gateways/AbstractGateway.php b/src/Gateways/AbstractGateway.php index fd94673..65cc000 100644 --- a/src/Gateways/AbstractGateway.php +++ b/src/Gateways/AbstractGateway.php @@ -719,8 +719,8 @@ protected function add_hooks() { // hooks only active when the gateway is enabled add_filter( 'woocommerce_credit_card_form_fields', array( $this, 'woocommerce_credit_card_form_fields' ) ); - if ( is_add_payment_method_page() ) { - add_action( 'wp_enqueue_scripts', array( $this, 'tokenization_script' ) ); + add_action( 'wp_enqueue_scripts', array( $this, 'tokenization_script' ) ); + if ( is_add_payment_method_page() ) { add_filter( 'woocommerce_available_payment_gateways', array( $this, 'woocommerce_available_payment_gateways') ); } } diff --git a/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php b/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php index da490e3..73cf244 100644 --- a/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php +++ b/src/Gateways/HeartlandGiftCards/HeartlandGiftGateway.php @@ -7,6 +7,7 @@ use GlobalPayments\Api\Entities\Transaction; use GlobalPayments\Api\ServiceConfigs\Gateways\PorticoConfig; use GlobalPayments\Api\ServicesContainer; +use GlobalPayments\WooCommercePaymentGatewayProvider\Plugin; use GlobalPayments\WooCommercePaymentGatewayProvider\Gateways\HeartlandGateway; From 4562aad5ae29190f174535d6ac68ebdd9ce8cf16 Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Mon, 14 Feb 2022 19:45:23 +0530 Subject: [PATCH 08/13] code optimized for ajax request --- src/Gateways/HeartlandGateway.php | 4 ++-- src/Plugin.php | 18 +++++++----------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/Gateways/HeartlandGateway.php b/src/Gateways/HeartlandGateway.php index f90e0d1..505278e 100644 --- a/src/Gateways/HeartlandGateway.php +++ b/src/Gateways/HeartlandGateway.php @@ -158,6 +158,7 @@ protected function add_hooks() { add_filter('woocommerce_calculated_total', array($HeartlandGiftGateway, 'updateOrderTotal'), 10, 2); add_action('wp_ajax_nopriv_remove_gift_card', array($HeartlandGiftGateway, 'removeGiftCard')); add_action('wp_ajax_remove_gift_card', array($HeartlandGiftGateway, 'removeGiftCard')); + wp_enqueue_style('heartland-gift-cards', Plugin::get_url('/assets/frontend/css/heartland-gift-cards.css')); $gcthing = new HeartlandGiftCardOrder(); @@ -246,8 +247,7 @@ public function payment_fields() { if ( $this->allow_gift_cards === true ) { $path = dirname(plugin_dir_path(__FILE__)); - include_once $path . '/../assets/frontend/HeartlandGiftFields.php'; - wp_enqueue_style('heartland-gift-cards', Plugin::get_url('/assets/frontend/css/heartland-gift-cards.css')); + include_once $path . '/../assets/frontend/HeartlandGiftFields.php'; } } diff --git a/src/Plugin.php b/src/Plugin.php index acb4b87..c450c55 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -6,8 +6,6 @@ namespace GlobalPayments\WooCommercePaymentGatewayProvider; use GlobalPayments\WooCommercePaymentGatewayProvider\Gateways\HeartlandGateway; -use GlobalPayments\WooCommercePaymentGatewayProvider\Gateways\HeartlandGiftCards\HeartlandGiftGateway; -use GlobalPayments\WooCommercePaymentGatewayProvider\Gateways\HeartlandGiftCards\HeartlandGiftCardOrder; defined( 'ABSPATH' ) || exit; @@ -31,15 +29,13 @@ public static function init() { if ( ! class_exists( 'WC_Payment_Gateway' ) ) { return; } - - $gateways = array( - Gateways\HeartlandGateway::class, - Gateways\GeniusGateway::class, - Gateways\TransitGateway::class, - Gateways\GpApiGateway::class, - ); - foreach ( $gateways as $gateway ) { - new $gateway; + + //initialize gift related hooks for Heartland ajax requests + if(wp_doing_ajax() === true || !empty( $_GET['wc-ajax'])){ + $heartlandSettings = get_option( 'woocommerce_globalpayments_heartland_settings' ); + if($heartlandSettings['enabled'] === 'yes' && $heartlandSettings['allow_gift_cards'] === 'yes'){ + new HeartlandGateway(); + } } add_filter( 'woocommerce_payment_gateways', array( self::class, 'add_gateways' ) ); From ef4cda44cfc8cf17cb61518ba535b45c8869f708 Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Thu, 17 Feb 2022 11:25:46 +0530 Subject: [PATCH 09/13] Version number updated --- globalpayments-gateway-provider-for-woocommerce.php | 2 +- readme.txt | 6 +++--- src/Plugin.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/globalpayments-gateway-provider-for-woocommerce.php b/globalpayments-gateway-provider-for-woocommerce.php index 0eb0ed1..0438261 100644 --- a/globalpayments-gateway-provider-for-woocommerce.php +++ b/globalpayments-gateway-provider-for-woocommerce.php @@ -3,7 +3,7 @@ * Plugin Name: GlobalPayments WooCommerce * Plugin URI: https://github.com/globalpayments/globalpayments-woocommerce * Description: This extension allows WooCommerce to use the available Global Payments payment gateways. All card data is tokenized using the respective gateway's tokenization service. - * Version: 1.1.4 + * Version: 1.1.5 * Requires PHP: 5.5.9 * WC tested up to: 5.6.0 * Author: Global Payments diff --git a/readme.txt b/readme.txt index 9ad31f8..f0f5184 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: globalpayments Tags: woocommerce, woo, unified, commerce, platform, global, payments, ucp, heartland, payment, systems, tsys, genius, 3DS, gateway, token, tokenize, save cards Requires at least: 5.4 Tested up to: 6.0.0 -Stable tag: 1.1.4 +Stable tag: 1.1.5 License: MIT License URI: https://github.com/globalpayments/globalpayments-woocommerce/blob/main/LICENSE @@ -45,8 +45,8 @@ Access to our Unified Commerce Platform (UCP) requires sandbox credentials which == Changelog == -= 1.1.4 = -* Bug fix - Heartland gift card enable error += 1.1.5 = +* Bug fix - Heartland gift card error = 1.1.3 = * Added composer diff --git a/src/Plugin.php b/src/Plugin.php index c450c55..05d8391 100644 --- a/src/Plugin.php +++ b/src/Plugin.php @@ -18,7 +18,7 @@ class Plugin { * * @var string */ - const VERSION = '1.1.4'; + const VERSION = '1.1.5'; /** * Init the package. From edf4f872f27a53741e6a332a1a69ac2f76e844c2 Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Thu, 17 Feb 2022 11:31:28 +0530 Subject: [PATCH 10/13] unwanted space removed --- src/Gateways/AbstractGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateways/AbstractGateway.php b/src/Gateways/AbstractGateway.php index 65cc000..4d1a328 100644 --- a/src/Gateways/AbstractGateway.php +++ b/src/Gateways/AbstractGateway.php @@ -720,7 +720,7 @@ protected function add_hooks() { add_filter( 'woocommerce_credit_card_form_fields', array( $this, 'woocommerce_credit_card_form_fields' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'tokenization_script' ) ); - if ( is_add_payment_method_page() ) { + if ( is_add_payment_method_page() ) { add_filter( 'woocommerce_available_payment_gateways', array( $this, 'woocommerce_available_payment_gateways') ); } } From 8cdc05d494682c8fe2933f9ab0ee3d31479cf740 Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Tue, 22 Feb 2022 14:59:46 +0530 Subject: [PATCH 11/13] wordpress tested version updated to 5.9 --- readme.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.txt b/readme.txt index 888ccaa..8807ef8 100644 --- a/readme.txt +++ b/readme.txt @@ -2,7 +2,7 @@ Contributors: globalpayments Tags: woocommerce, woo, unified, commerce, platform, global, payments, ucp, heartland, payment, systems, tsys, genius, 3DS, gateway, token, tokenize, save cards Requires at least: 5.4 -Tested up to: 6.0.0 +Tested up to: 5.9.0 Stable tag: 1.1.5 License: MIT License URI: https://github.com/globalpayments/globalpayments-woocommerce/blob/main/LICENSE From 17301454f251ad4b80d8ee9963585bdda9e6545d Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Tue, 22 Feb 2022 15:36:18 +0530 Subject: [PATCH 12/13] woocommerce version and php-sdk versions updated --- composer.json | 2 +- globalpayments-gateway-provider-for-woocommerce.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index ab93614..4a9aa0e 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } }, "require": { - "globalpayments/php-sdk": "2.3.13", + "globalpayments/php-sdk": "3.0.2", "psr/log": "^1.1" }, "require-dev": { diff --git a/globalpayments-gateway-provider-for-woocommerce.php b/globalpayments-gateway-provider-for-woocommerce.php index 0438261..ec7bdc7 100644 --- a/globalpayments-gateway-provider-for-woocommerce.php +++ b/globalpayments-gateway-provider-for-woocommerce.php @@ -5,7 +5,7 @@ * Description: This extension allows WooCommerce to use the available Global Payments payment gateways. All card data is tokenized using the respective gateway's tokenization service. * Version: 1.1.5 * Requires PHP: 5.5.9 - * WC tested up to: 5.6.0 + * WC tested up to: 6.0.0 * Author: Global Payments */ From da69ee536801c928dbefe03c3a483d0bea95ebae Mon Sep 17 00:00:00 2001 From: SenthilKumar Date: Tue, 22 Feb 2022 16:52:20 +0530 Subject: [PATCH 13/13] composer php sdk version reverted for GP API --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 4a9aa0e..ab93614 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ } }, "require": { - "globalpayments/php-sdk": "3.0.2", + "globalpayments/php-sdk": "2.3.13", "psr/log": "^1.1" }, "require-dev": {