Changeset 3359815
- Timestamp:
- 09/11/2025 12:10:16 PM (6 months ago)
- Location:
- gestpay-for-woocommerce
- Files:
-
- 16 edited
- 1 copied
-
tags/20250912 (copied) (copied from gestpay-for-woocommerce/trunk)
-
tags/20250912/assets/css/blocks/gestpay-blocks.css (modified) (1 diff)
-
tags/20250912/assets/css/blocks/gestpay-paypal-blocks.css (modified) (1 diff)
-
tags/20250912/assets/js/blocks/wc-payment-method-gestpay-paypal.js (modified) (1 diff)
-
tags/20250912/assets/js/blocks/wc-payment-method-gestpay.js (modified) (1 diff)
-
tags/20250912/gestpay-for-woocommerce.php (modified) (6 diffs)
-
tags/20250912/inc/class-gestpay-blocks-integration.php (modified) (3 diffs)
-
tags/20250912/inc/class-gestpay-paypal-blocks-integration.php (modified) (3 diffs)
-
tags/20250912/readme.txt (modified) (2 diffs)
-
trunk/assets/css/blocks/gestpay-blocks.css (modified) (1 diff)
-
trunk/assets/css/blocks/gestpay-paypal-blocks.css (modified) (1 diff)
-
trunk/assets/js/blocks/wc-payment-method-gestpay-paypal.js (modified) (1 diff)
-
trunk/assets/js/blocks/wc-payment-method-gestpay.js (modified) (1 diff)
-
trunk/gestpay-for-woocommerce.php (modified) (6 diffs)
-
trunk/inc/class-gestpay-blocks-integration.php (modified) (3 diffs)
-
trunk/inc/class-gestpay-paypal-blocks-integration.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gestpay-for-woocommerce/tags/20250912/assets/css/blocks/gestpay-blocks.css
r3359611 r3359815 3 3 * 4 4 * @package Gestpay_For_WooCommerce 5 * @since 2025091 15 * @since 20250912 6 6 */ 7 7 -
gestpay-for-woocommerce/tags/20250912/assets/css/blocks/gestpay-paypal-blocks.css
r3359611 r3359815 3 3 * 4 4 * @package Gestpay_For_WooCommerce 5 * @since 2025091 15 * @since 20250912 6 6 */ 7 7 -
gestpay-for-woocommerce/tags/20250912/assets/js/blocks/wc-payment-method-gestpay-paypal.js
r3359611 r3359815 3 3 * 4 4 * @package Gestpay_For_WooCommerce 5 * @since 2025091 15 * @since 20250912 6 6 */ 7 7 -
gestpay-for-woocommerce/tags/20250912/assets/js/blocks/wc-payment-method-gestpay.js
r3359611 r3359815 3 3 * 4 4 * @package Gestpay_For_WooCommerce 5 * @since 2025091 15 * @since 20250912 6 6 */ 7 7 -
gestpay-for-woocommerce/tags/20250912/gestpay-for-woocommerce.php
r3359611 r3359815 4 4 * Plugin URI: http://wordpress.org/plugins/gestpay-for-woocommerce/ 5 5 * Description: Abilita il sistema di pagamento GestPay by Axerve (Gruppo Banca Sella) in WooCommerce. 6 * Version: 2025091 16 * Version: 20250912 7 7 * Requires at least: 4.7 8 8 * Requires PHP: 7.0 … … 218 218 $this->is_tokenization = $this->is_s2s || $this->is_iframe; 219 219 220 //error_log('Gestpay Config - Account type: ' . $this->account);221 //error_log('Gestpay Config - is_s2s: ' . ($this->is_s2s ? 'true' : 'false'));222 //error_log('Gestpay Config - is_iframe: ' . ($this->is_iframe ? 'true' : 'false'));223 //error_log('Gestpay Config - is_tokenization: ' . ($this->is_tokenization ? 'true' : 'false'));224 220 225 221 // For token+auth output a payment_box containing the direct payment form … … 1072 1068 // Register the main Gestpay payment method 1073 1069 if ( ! class_exists( 'Gestpay_Blocks_Integration' ) ) { 1074 require_once plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-blocks-integration.php'; 1070 $blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-blocks-integration.php'; 1071 if ( file_exists( $blocks_integration_file ) ) { 1072 require_once $blocks_integration_file; 1073 } else { 1074 // Log error and skip registration if file doesn't exist 1075 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 1076 error_log( 'Gestpay Blocks Integration: File not found - ' . $blocks_integration_file ); 1077 } 1078 return; 1079 } 1075 1080 } 1076 1081 … … 1085 1090 // Register the PayPal payment method 1086 1091 if ( ! class_exists( 'Gestpay_PayPal_Blocks_Integration' ) ) { 1087 require_once plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-paypal-blocks-integration.php'; 1092 $paypal_blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-paypal-blocks-integration.php'; 1093 if ( file_exists( $paypal_blocks_integration_file ) ) { 1094 require_once $paypal_blocks_integration_file; 1095 } else { 1096 // Log error and skip registration if file doesn't exist 1097 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 1098 error_log( 'Gestpay PayPal Blocks Integration: File not found - ' . $paypal_blocks_integration_file ); 1099 } 1100 return; 1101 } 1088 1102 } 1089 1103 … … 1122 1136 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-blocks.css', 1123 1137 array(), 1124 '20250 911'1138 '20250603' 1125 1139 ); 1126 1140 } … … 1133 1147 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-paypal-blocks.css', 1134 1148 array(), 1135 '20250 911'1149 '20250603' 1136 1150 ); 1137 1151 } -
gestpay-for-woocommerce/tags/20250912/inc/class-gestpay-blocks-integration.php
r3359611 r3359815 4 4 * 5 5 * @package Gestpay_For_WooCommerce 6 * @since 2025091 16 * @since 20250912 7 7 */ 8 8 … … 22 22 * Gestpay Blocks Integration 23 23 * 24 * @since 2025091 124 * @since 20250912 25 25 */ 26 26 final class Gestpay_Blocks_Integration extends AbstractPaymentMethodType { … … 74 74 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay.js', 75 75 array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ), 76 '2025091 1',76 '20250912', 77 77 true 78 78 ); -
gestpay-for-woocommerce/tags/20250912/inc/class-gestpay-paypal-blocks-integration.php
r3359611 r3359815 4 4 * 5 5 * @package Gestpay_For_WooCommerce 6 * @since 2025091 16 * @since 20250912 7 7 */ 8 8 … … 22 22 * Gestpay PayPal Blocks Integration 23 23 * 24 * @since 2025091 124 * @since 20250912 25 25 */ 26 26 final class Gestpay_PayPal_Blocks_Integration extends AbstractPaymentMethodType { … … 80 80 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-paypal.js', 81 81 array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ), 82 '2025091 1',82 '20250912', 83 83 true 84 84 ); -
gestpay-for-woocommerce/tags/20250912/readme.txt
r3359611 r3359815 5 5 Requires PHP: 7.0 6 6 Tested up to: 6.8.2 7 Stable tag: 2025091 17 Stable tag: 20250912 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 69 69 == Changelog == 70 70 71 = 20250912 = 72 * Fix: Critical bug fix for WooCommerce Blocks integration 73 - Fixed fatal error when Blocks integration files are missing on server 74 - Added file existence checks before requiring Blocks integration files 75 - Implemented graceful fallback to prevent site crashes 76 - Enhanced error logging for debugging deployment issues 77 * Security: Nothing added 78 * Improvement: Improved deployment reliability and error handling 79 * Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4 80 * Note: This hotfix resolves the critical issue that caused site crashes in production 81 71 82 = 20250911 = 72 83 * Feature: Added WooCommerce Blocks support for credit card and PayPal payments -
gestpay-for-woocommerce/trunk/assets/css/blocks/gestpay-blocks.css
r3359611 r3359815 3 3 * 4 4 * @package Gestpay_For_WooCommerce 5 * @since 2025091 15 * @since 20250912 6 6 */ 7 7 -
gestpay-for-woocommerce/trunk/assets/css/blocks/gestpay-paypal-blocks.css
r3359611 r3359815 3 3 * 4 4 * @package Gestpay_For_WooCommerce 5 * @since 2025091 15 * @since 20250912 6 6 */ 7 7 -
gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay-paypal.js
r3359611 r3359815 3 3 * 4 4 * @package Gestpay_For_WooCommerce 5 * @since 2025091 15 * @since 20250912 6 6 */ 7 7 -
gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay.js
r3359611 r3359815 3 3 * 4 4 * @package Gestpay_For_WooCommerce 5 * @since 2025091 15 * @since 20250912 6 6 */ 7 7 -
gestpay-for-woocommerce/trunk/gestpay-for-woocommerce.php
r3359611 r3359815 4 4 * Plugin URI: http://wordpress.org/plugins/gestpay-for-woocommerce/ 5 5 * Description: Abilita il sistema di pagamento GestPay by Axerve (Gruppo Banca Sella) in WooCommerce. 6 * Version: 2025091 16 * Version: 20250912 7 7 * Requires at least: 4.7 8 8 * Requires PHP: 7.0 … … 218 218 $this->is_tokenization = $this->is_s2s || $this->is_iframe; 219 219 220 //error_log('Gestpay Config - Account type: ' . $this->account);221 //error_log('Gestpay Config - is_s2s: ' . ($this->is_s2s ? 'true' : 'false'));222 //error_log('Gestpay Config - is_iframe: ' . ($this->is_iframe ? 'true' : 'false'));223 //error_log('Gestpay Config - is_tokenization: ' . ($this->is_tokenization ? 'true' : 'false'));224 220 225 221 // For token+auth output a payment_box containing the direct payment form … … 1072 1068 // Register the main Gestpay payment method 1073 1069 if ( ! class_exists( 'Gestpay_Blocks_Integration' ) ) { 1074 require_once plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-blocks-integration.php'; 1070 $blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-blocks-integration.php'; 1071 if ( file_exists( $blocks_integration_file ) ) { 1072 require_once $blocks_integration_file; 1073 } else { 1074 // Log error and skip registration if file doesn't exist 1075 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 1076 error_log( 'Gestpay Blocks Integration: File not found - ' . $blocks_integration_file ); 1077 } 1078 return; 1079 } 1075 1080 } 1076 1081 … … 1085 1090 // Register the PayPal payment method 1086 1091 if ( ! class_exists( 'Gestpay_PayPal_Blocks_Integration' ) ) { 1087 require_once plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-paypal-blocks-integration.php'; 1092 $paypal_blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-paypal-blocks-integration.php'; 1093 if ( file_exists( $paypal_blocks_integration_file ) ) { 1094 require_once $paypal_blocks_integration_file; 1095 } else { 1096 // Log error and skip registration if file doesn't exist 1097 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 1098 error_log( 'Gestpay PayPal Blocks Integration: File not found - ' . $paypal_blocks_integration_file ); 1099 } 1100 return; 1101 } 1088 1102 } 1089 1103 … … 1122 1136 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-blocks.css', 1123 1137 array(), 1124 '20250 911'1138 '20250603' 1125 1139 ); 1126 1140 } … … 1133 1147 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-paypal-blocks.css', 1134 1148 array(), 1135 '20250 911'1149 '20250603' 1136 1150 ); 1137 1151 } -
gestpay-for-woocommerce/trunk/inc/class-gestpay-blocks-integration.php
r3359611 r3359815 4 4 * 5 5 * @package Gestpay_For_WooCommerce 6 * @since 2025091 16 * @since 20250912 7 7 */ 8 8 … … 22 22 * Gestpay Blocks Integration 23 23 * 24 * @since 2025091 124 * @since 20250912 25 25 */ 26 26 final class Gestpay_Blocks_Integration extends AbstractPaymentMethodType { … … 74 74 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay.js', 75 75 array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ), 76 '2025091 1',76 '20250912', 77 77 true 78 78 ); -
gestpay-for-woocommerce/trunk/inc/class-gestpay-paypal-blocks-integration.php
r3359611 r3359815 4 4 * 5 5 * @package Gestpay_For_WooCommerce 6 * @since 2025091 16 * @since 20250912 7 7 */ 8 8 … … 22 22 * Gestpay PayPal Blocks Integration 23 23 * 24 * @since 2025091 124 * @since 20250912 25 25 */ 26 26 final class Gestpay_PayPal_Blocks_Integration extends AbstractPaymentMethodType { … … 80 80 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-paypal.js', 81 81 array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ), 82 '2025091 1',82 '20250912', 83 83 true 84 84 ); -
gestpay-for-woocommerce/trunk/readme.txt
r3359611 r3359815 5 5 Requires PHP: 7.0 6 6 Tested up to: 6.8.2 7 Stable tag: 2025091 17 Stable tag: 20250912 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 69 69 == Changelog == 70 70 71 = 20250912 = 72 * Fix: Critical bug fix for WooCommerce Blocks integration 73 - Fixed fatal error when Blocks integration files are missing on server 74 - Added file existence checks before requiring Blocks integration files 75 - Implemented graceful fallback to prevent site crashes 76 - Enhanced error logging for debugging deployment issues 77 * Security: Nothing added 78 * Improvement: Improved deployment reliability and error handling 79 * Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4 80 * Note: This hotfix resolves the critical issue that caused site crashes in production 81 71 82 = 20250911 = 72 83 * Feature: Added WooCommerce Blocks support for credit card and PayPal payments
Note: See TracChangeset
for help on using the changeset viewer.