Changeset 3385955
- Timestamp:
- 10/28/2025 03:25:01 PM (4 months ago)
- Location:
- gestpay-for-woocommerce
- Files:
-
- 3 added
- 22 edited
- 1 copied
-
tags/20251028 (copied) (copied from gestpay-for-woocommerce/trunk)
-
tags/20251028/assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js (modified) (2 diffs)
-
tags/20251028/assets/js/blocks/wc-payment-method-gestpay-consel.js (modified) (2 diffs)
-
tags/20251028/assets/js/blocks/wc-payment-method-gestpay-paypal.js (modified) (2 diffs)
-
tags/20251028/assets/js/blocks/wc-payment-method-gestpay.js (modified) (5 diffs)
-
tags/20251028/assets/js/iFrameReady.js (modified) (6 diffs)
-
tags/20251028/gestpay-for-woocommerce.php (modified) (4 diffs)
-
tags/20251028/inc/class-gestpay-bancomatpay-blocks-integration.php (modified) (1 diff)
-
tags/20251028/inc/class-gestpay-blocks-integration.php (modified) (1 diff)
-
tags/20251028/inc/class-gestpay-consel-blocks-integration.php (modified) (1 diff)
-
tags/20251028/inc/class-gestpay-paypal-blocks-integration.php (modified) (1 diff)
-
tags/20251028/readme.txt (modified) (6 diffs)
-
trunk/assets/css/blocks/gestpay-mybank-blocks.css (added)
-
trunk/assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js (modified) (2 diffs)
-
trunk/assets/js/blocks/wc-payment-method-gestpay-consel.js (modified) (2 diffs)
-
trunk/assets/js/blocks/wc-payment-method-gestpay-mybank.js (added)
-
trunk/assets/js/blocks/wc-payment-method-gestpay-paypal.js (modified) (2 diffs)
-
trunk/assets/js/blocks/wc-payment-method-gestpay.js (modified) (5 diffs)
-
trunk/assets/js/iFrameReady.js (modified) (6 diffs)
-
trunk/gestpay-for-woocommerce.php (modified) (4 diffs)
-
trunk/inc/class-gestpay-bancomatpay-blocks-integration.php (modified) (1 diff)
-
trunk/inc/class-gestpay-blocks-integration.php (modified) (1 diff)
-
trunk/inc/class-gestpay-consel-blocks-integration.php (modified) (1 diff)
-
trunk/inc/class-gestpay-mybank-blocks-integration.php (added)
-
trunk/inc/class-gestpay-paypal-blocks-integration.php (modified) (1 diff)
-
trunk/readme.txt (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gestpay-for-woocommerce/tags/20251028/assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js
r3371755 r3385955 35 35 label: decodeEntities( 36 36 getPaymentMethodData("wc_gateway_gestpay_bancomatpay", {}).title || 37 __("Bancomatpay", " woocommerce")37 __("Bancomatpay", "gestpay-for-woocommerce") 38 38 ), 39 39 content: createElement(GestpayBancomatpayContent), … … 49 49 ariaLabel: decodeEntities( 50 50 getPaymentMethodData("wc_gateway_gestpay_bancomatpay", {}).title || 51 __("Payment via Bancomatpay", " woocommerce")51 __("Payment via Bancomatpay", "gestpay-for-woocommerce") 52 52 ), 53 53 supports: { -
gestpay-for-woocommerce/tags/20251028/assets/js/blocks/wc-payment-method-gestpay-consel.js
r3371755 r3385955 35 35 label: decodeEntities( 36 36 getPaymentMethodData("wc_gateway_gestpay_consel", {}).title || 37 __("Consel", " woocommerce")37 __("Consel", "gestpay-for-woocommerce") 38 38 ), 39 39 content: createElement(GestpayConselContent), … … 49 49 ariaLabel: decodeEntities( 50 50 getPaymentMethodData("wc_gateway_gestpay_consel", {}).title || 51 __("Payment via Consel", " woocommerce")51 __("Payment via Consel", "gestpay-for-woocommerce") 52 52 ), 53 53 supports: { -
gestpay-for-woocommerce/tags/20251028/assets/js/blocks/wc-payment-method-gestpay-paypal.js
r3359815 r3385955 35 35 label: decodeEntities( 36 36 getPaymentMethodData("wc_gateway_gestpay_paypal", {}).title || 37 __("PayPal", " woocommerce")37 __("PayPal", "gestpay-for-woocommerce") 38 38 ), 39 39 content: createElement(GestpayPayPalContent), … … 49 49 ariaLabel: decodeEntities( 50 50 getPaymentMethodData("wc_gateway_gestpay_paypal", {}).title || 51 __("Payment via PayPal", " woocommerce")51 __("Payment via PayPal", "gestpay-for-woocommerce") 52 52 ), 53 53 supports: { -
gestpay-for-woocommerce/tags/20251028/assets/js/blocks/wc-payment-method-gestpay.js
r3359815 r3385955 35 35 label: decodeEntities( 36 36 getPaymentMethodData("wc_gateway_gestpay", {}).title || 37 __("Gestpay", " woocommerce")37 __("Gestpay", "gestpay-for-woocommerce") 38 38 ), 39 39 content: createElement(GestpayContent), … … 46 46 ariaLabel: decodeEntities( 47 47 getPaymentMethodData("wc_gateway_gestpay", {}).title || 48 __("Payment via Gestpay", " woocommerce")48 __("Payment via Gestpay", "gestpay-for-woocommerce") 49 49 ), 50 50 supports: { … … 67 67 const buyerName = paymentMethodData.buyerName || false; 68 68 const expMonthLabel = 69 paymentMethodData.expMonthLabel || __("MM", " woocommerce");69 paymentMethodData.expMonthLabel || __("MM", "gestpay-for-woocommerce"); 70 70 const expYearLabel = 71 paymentMethodData.expYearLabel || __("YY", " woocommerce");71 paymentMethodData.expYearLabel || __("YY", "gestpay-for-woocommerce"); 72 72 const expDateLabel = 73 paymentMethodData.expDateLabel || __("Expiry (MM/YY)", "woocommerce"); 73 paymentMethodData.expDateLabel || 74 __("Expiry (MM/YY)", "gestpay-for-woocommerce"); 74 75 const cardholderNameLabel = 75 76 paymentMethodData.cardholderNameLabel || 76 __("Cardholder Name", " woocommerce");77 __("Cardholder Name", "gestpay-for-woocommerce"); 77 78 const cardNumberLabel = 78 paymentMethodData.cardNumberLabel || __("Card Number", "woocommerce"); 79 paymentMethodData.cardNumberLabel || 80 __("Card Number", "gestpay-for-woocommerce"); 79 81 const cardCVVLabel = 80 paymentMethodData.cardCVVLabel || __("Card Code", "woocommerce"); 82 paymentMethodData.cardCVVLabel || 83 __("Card Code", "gestpay-for-woocommerce"); 81 84 const infoBox = paymentMethodData.infoBox || ""; 82 85 const infoModal = paymentMethodData.infoModal || ""; … … 95 98 const manageCardsEndpoint = paymentMethodData.manageCardsEndpoint; 96 99 const manageCardsText = 97 paymentMethodData.manageCardsText || __("Manage Cards", "woocommerce"); 100 paymentMethodData.manageCardsText || 101 __("Manage Cards", "gestpay-for-woocommerce"); 98 102 const newCardText = 99 paymentMethodData.newCardText || __("New Card", "woocommerce"); 103 paymentMethodData.newCardText || 104 __("New Card", "gestpay-for-woocommerce"); 100 105 101 106 useEffect(() => { … … 189 194 }, 190 195 }), 196 isSandbox && 197 createElement("p", { 198 key: "sandbox", 199 dangerouslySetInnerHTML: { 200 __html: decodeEntities(paymentMethodData.sandbox || ""), 201 }, 202 }), 191 203 ] 192 204 ); -
gestpay-for-woocommerce/tags/20251028/assets/js/iFrameReady.js
r3359611 r3385955 5 5 */ 6 6 GestpayIframe.PaymentPageLoad = function (Result) { 7 console.log("PaymentPageLoad", Result);8 console.log("paRes", gestpayReadyObject.paRes);9 console.log("transKey", gestpayReadyObject.transKey);10 7 // Check for errors: if the Result.ErroCode is 10 the iFrame 11 8 // is created correctly and the security check are passed … … 26 23 TransKey: transKey, 27 24 }; 28 console.log("SendPAymentPArams", params);29 25 30 26 GestPay.SendPayment(params, GestpayIframe.PaymentCallBack); 31 27 } else { 32 console.log("First Load");33 28 // 1st page load: show the form with the credit card fields 34 29 document.getElementById("gestpay-inner-freeze-pane").className = … … 46 41 */ 47 42 GestpayIframe.PaymentCallBack = function (Result) { 48 console.log("PaymentCallback", Result);49 50 43 if (Result.ErrorCode == 0) { 51 44 // --- Transaction correctly processed … … 119 112 120 113 GestpayIframe.OnError = function (Result) { 121 console.log("OnError", Result);122 114 //if (Result.ErrorCode === 'none') return; 123 115 // Show the error box … … 142 134 */ 143 135 function gestpayCheckCC() { 144 console.log("GestpayCheckCC");145 146 136 document.getElementById("gestpay-submit").disabled = true; 147 137 document.getElementById("gestpay-freeze-pane").className = … … 159 149 if (gestpayReadyObject.is_cvv_required) 160 150 params.CVV2 = document.getElementById("gestpay-cc-cvv").value; 161 162 console.log(params);163 151 164 152 GestPay.SendPayment(params, GestpayIframe.PaymentCallBack); -
gestpay-for-woocommerce/tags/20251028/gestpay-for-woocommerce.php
r3371755 r3385955 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: 202510 026 * Version: 20251028 7 7 * Requires at least: 4.7 8 8 * Requires PHP: 7.0 9 * Tested up to: 6.8.3 9 10 * Author: Fabrick (Gruppo Banca Sella) 10 11 * Author URI: https://www.fabrick.com 11 12 * 12 13 * WC requires at least: 3.0 13 * WC tested up to: 9.4.214 * WC tested up to: 10.2.2 14 15 * Requires Plugins: woocommerce 15 16 * … … 1037 1038 1038 1039 /** 1040 * Handle MyBank payment processing from blocks checkout 1041 */ 1042 add_action( 'template_redirect', 'wc_gateway_gestpay_handle_blocks_mybank_payment' ); 1043 function wc_gateway_gestpay_handle_blocks_mybank_payment() { 1044 1045 // Only handle on checkout page 1046 if ( ! is_checkout() ) { 1047 return; 1048 } 1049 1050 // Check if this is a MyBank blocks payment 1051 if ( ! isset( $_GET['gestpay_payment_type'] ) || $_GET['gestpay_payment_type'] !== 'MYBANK' ) { 1052 return; 1053 } 1054 1055 if ( ! isset( $_GET['gestpay_blocks'] ) || $_GET['gestpay_blocks'] !== '1' ) { 1056 return; 1057 } 1058 1059 if ( ! isset( $_GET['payment_method'] ) || $_GET['payment_method'] !== 'wc_gateway_gestpay_mybank' ) { 1060 return; 1061 } 1062 1063 // Check if cart is not empty 1064 if ( WC()->cart->is_empty() ) { 1065 wc_add_notice( 'Your cart is empty.', 'error' ); 1066 wp_redirect( wc_get_cart_url() ); 1067 exit; 1068 } 1069 1070 // Create order 1071 $order = wc_create_order(); 1072 1073 // Add items from cart 1074 foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { 1075 $order->add_product( 1076 $cart_item['data'], 1077 $cart_item['quantity'] 1078 ); 1079 } 1080 1081 // Set payment method 1082 $order->set_payment_method( 'wc_gateway_gestpay_mybank' ); 1083 1084 // Set billing and shipping addresses 1085 $order->set_address( WC()->customer->get_billing(), 'billing' ); 1086 $order->set_address( WC()->customer->get_shipping(), 'shipping' ); 1087 1088 // Calculate totals 1089 $order->calculate_totals(); 1090 1091 // Process payment with MyBank gateway 1092 if ( class_exists( 'WC_Gateway_Gestpay_MYBANK' ) ) { 1093 $mybank_gateway = new WC_Gateway_Gestpay_MYBANK(); 1094 $result = $mybank_gateway->process_payment( $order->get_id() ); 1095 1096 if ( isset( $result['result'] ) && $result['result'] === 'success' ) { 1097 // Payment successful, redirect to payment page 1098 wp_redirect( $result['redirect'] ); 1099 exit; 1100 } else { 1101 // Payment failed 1102 wc_add_notice( 'Payment processing failed. Please try again.', 'error' ); 1103 wp_redirect( wc_get_checkout_url() ); 1104 exit; 1105 } 1106 } else { 1107 // MyBank gateway not available 1108 wc_add_notice( 'MyBank payment method is not available.', 'error' ); 1109 wp_redirect( wc_get_checkout_url() ); 1110 exit; 1111 } 1112 } 1113 1114 /** 1039 1115 * Add this action to listen for the order status manually changed 1040 1116 */ … … 1153 1229 } 1154 1230 } 1231 1232 // Register the MyBank payment method 1233 if ( ! class_exists( 'Gestpay_MyBank_Blocks_Integration' ) ) { 1234 $mybank_blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-mybank-blocks-integration.php'; 1235 if ( file_exists( $mybank_blocks_integration_file ) ) { 1236 require_once $mybank_blocks_integration_file; 1237 } else { 1238 // Log error and skip registration if file doesn't exist 1239 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 1240 error_log( 'Gestpay MyBank Blocks Integration: File not found - ' . $mybank_blocks_integration_file ); 1241 } 1242 return; 1243 } 1244 } 1245 1246 if ( class_exists( 'Gestpay_MyBank_Blocks_Integration' ) ) { 1247 $payment_method_registry->register( new Gestpay_MyBank_Blocks_Integration( $asset_api ) ); 1248 1249 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 1250 error_log( 'Gestpay Blocks Integration: MyBank payment method registered successfully' ); 1251 } 1252 } 1155 1253 1156 1254 } catch ( Exception $e ) { … … 1216 1314 ); 1217 1315 } 1316 1317 // Enqueue MyBank blocks styles 1318 $mybank_css_path = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-mybank-blocks.css'; 1319 if ( file_exists( $mybank_css_path ) ) { 1320 wp_enqueue_style( 1321 'gestpay-mybank-blocks-styles', 1322 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-mybank-blocks.css', 1323 array(), 1324 '20250603' 1325 ); 1326 } 1218 1327 } 1219 1328 -
gestpay-for-woocommerce/tags/20251028/inc/class-gestpay-bancomatpay-blocks-integration.php
r3371755 r3385955 80 80 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js', 81 81 array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ), 82 '2025 0912',82 '20251028', 83 83 true 84 84 ); -
gestpay-for-woocommerce/tags/20251028/inc/class-gestpay-blocks-integration.php
r3359815 r3385955 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 '2025 0912',76 '20251028', 77 77 true 78 78 ); -
gestpay-for-woocommerce/tags/20251028/inc/class-gestpay-consel-blocks-integration.php
r3371755 r3385955 80 80 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-consel.js', 81 81 array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ), 82 '2025 0912',82 '20251028', 83 83 true 84 84 ); -
gestpay-for-woocommerce/tags/20251028/inc/class-gestpay-paypal-blocks-integration.php
r3359815 r3385955 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 '2025 0912',82 '20251028', 83 83 true 84 84 ); -
gestpay-for-woocommerce/tags/20251028/readme.txt
r3371755 r3385955 1 1 === Gestpay for WooCommerce === 2 2 Contributors: easynolo, netingweb 3 Tags: woocommerce, payment gateway, payment, credit card, gestpay, gestpay starter, gestpay pro, gestpay professional, banca sella, sella.it, easynolo, netingweb, axerve, netingweb, fabrick, iframe, direct payment gateway3 Tags: woocommerce, payment gateway, gestpay, credit card, axerve 4 4 Requires at least: 4.7 5 5 Requires PHP: 7.0 6 Tested up to: 6.8. 27 Stable tag: 202510 026 Tested up to: 6.8.3 7 Stable tag: 20251028 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 WC requires at least: 3.0 11 WC tested up to: 10. 0.411 WC tested up to: 10.2.2 12 12 13 13 Axerve Free Plugin for Woocommerce extends WooCommerce providing the payment gateway Axerve. … … 25 25 26 26 [Click here to read the full usage documentation on Axerve](https://docs.axerve.com/it/plugin/woocommerce/ "Axerve for WooCommerce - Usage Documentation"). 27 28 = WooCommerce Blocks Compatibility = 29 30 Starting from version 20251028, the plugin is fully compatible with WooCommerce Blocks checkout. All payment methods are now supported in both classic checkout and blocks checkout modes. There is no need to disable WooCommerce Blocks checkout. 31 32 = Available Features = 33 34 * S2S SOAP (Except callReadTrxS2S and callVerifyCardS2S) 35 * Tokenization 36 * 3DS1 37 * 3DS2 – Authentication 38 * 3DS2 – Recurring Transactions 39 * RBA (Risk-Based Authentication) 40 * PayPal Seller Protection 41 * WooCommerce Subscriptions support (Recurring payments and subscriptions) 42 43 = Available Payment Methods = 44 45 * Credit Cards 46 * BANCOMAT Pay 47 * MyBank 48 * PayPal 49 * PayPal Billing Agreement 50 * PayPal Buy Now Pay Later 27 51 28 52 == Actions and filters list == … … 69 93 == Changelog == 70 94 95 = 20251028 = 96 * Feature: Full WooCommerce Blocks support 97 - Starting from version 20251028, the plugin is fully compatible with WooCommerce Blocks checkout 98 - All payment methods are now fully supported in blocks checkout mode 99 - No need to disable WooCommerce Blocks checkout 100 * Security: Nothing added 101 * Improvement: Enhanced checkout compatibility 102 * Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2 103 * Note: This release confirms complete blocks integration for all payment methods 104 71 105 = 20251002 = 72 106 * Feature: Extended WooCommerce Blocks support for additional payment methods … … 78 112 * Security: Nothing added 79 113 * Improvement: Enhanced checkout experience with extended blocks integration 80 * Checks: Verified compatibility with WordPress 6.8. 2, WooCommerce 10.0.4114 * Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2 81 115 * Note: This release completes the blocks integration for major Italian payment methods 82 116 … … 89 123 * Security: Nothing added 90 124 * Improvement: Improved deployment reliability and error handling 91 * Checks: Verified compatibility with WordPress 6.8. 2, WooCommerce 10.0.4125 * Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2 92 126 * Note: This hotfix resolves the critical issue that caused site crashes in production 93 127 … … 102 136 * Security: Nothing added 103 137 * Improvement: Enhanced checkout experience with blocks integration 104 * Checks: Verified compatibility with WordPress 6.8. 2, WooCommerce 10.0.4138 * Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2 105 139 * Note: This release enables seamless integration of GestPay payments in WooCommerce Blocks checkout 106 140 -
gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js
r3371755 r3385955 35 35 label: decodeEntities( 36 36 getPaymentMethodData("wc_gateway_gestpay_bancomatpay", {}).title || 37 __("Bancomatpay", " woocommerce")37 __("Bancomatpay", "gestpay-for-woocommerce") 38 38 ), 39 39 content: createElement(GestpayBancomatpayContent), … … 49 49 ariaLabel: decodeEntities( 50 50 getPaymentMethodData("wc_gateway_gestpay_bancomatpay", {}).title || 51 __("Payment via Bancomatpay", " woocommerce")51 __("Payment via Bancomatpay", "gestpay-for-woocommerce") 52 52 ), 53 53 supports: { -
gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay-consel.js
r3371755 r3385955 35 35 label: decodeEntities( 36 36 getPaymentMethodData("wc_gateway_gestpay_consel", {}).title || 37 __("Consel", " woocommerce")37 __("Consel", "gestpay-for-woocommerce") 38 38 ), 39 39 content: createElement(GestpayConselContent), … … 49 49 ariaLabel: decodeEntities( 50 50 getPaymentMethodData("wc_gateway_gestpay_consel", {}).title || 51 __("Payment via Consel", " woocommerce")51 __("Payment via Consel", "gestpay-for-woocommerce") 52 52 ), 53 53 supports: { -
gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay-paypal.js
r3359815 r3385955 35 35 label: decodeEntities( 36 36 getPaymentMethodData("wc_gateway_gestpay_paypal", {}).title || 37 __("PayPal", " woocommerce")37 __("PayPal", "gestpay-for-woocommerce") 38 38 ), 39 39 content: createElement(GestpayPayPalContent), … … 49 49 ariaLabel: decodeEntities( 50 50 getPaymentMethodData("wc_gateway_gestpay_paypal", {}).title || 51 __("Payment via PayPal", " woocommerce")51 __("Payment via PayPal", "gestpay-for-woocommerce") 52 52 ), 53 53 supports: { -
gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay.js
r3359815 r3385955 35 35 label: decodeEntities( 36 36 getPaymentMethodData("wc_gateway_gestpay", {}).title || 37 __("Gestpay", " woocommerce")37 __("Gestpay", "gestpay-for-woocommerce") 38 38 ), 39 39 content: createElement(GestpayContent), … … 46 46 ariaLabel: decodeEntities( 47 47 getPaymentMethodData("wc_gateway_gestpay", {}).title || 48 __("Payment via Gestpay", " woocommerce")48 __("Payment via Gestpay", "gestpay-for-woocommerce") 49 49 ), 50 50 supports: { … … 67 67 const buyerName = paymentMethodData.buyerName || false; 68 68 const expMonthLabel = 69 paymentMethodData.expMonthLabel || __("MM", " woocommerce");69 paymentMethodData.expMonthLabel || __("MM", "gestpay-for-woocommerce"); 70 70 const expYearLabel = 71 paymentMethodData.expYearLabel || __("YY", " woocommerce");71 paymentMethodData.expYearLabel || __("YY", "gestpay-for-woocommerce"); 72 72 const expDateLabel = 73 paymentMethodData.expDateLabel || __("Expiry (MM/YY)", "woocommerce"); 73 paymentMethodData.expDateLabel || 74 __("Expiry (MM/YY)", "gestpay-for-woocommerce"); 74 75 const cardholderNameLabel = 75 76 paymentMethodData.cardholderNameLabel || 76 __("Cardholder Name", " woocommerce");77 __("Cardholder Name", "gestpay-for-woocommerce"); 77 78 const cardNumberLabel = 78 paymentMethodData.cardNumberLabel || __("Card Number", "woocommerce"); 79 paymentMethodData.cardNumberLabel || 80 __("Card Number", "gestpay-for-woocommerce"); 79 81 const cardCVVLabel = 80 paymentMethodData.cardCVVLabel || __("Card Code", "woocommerce"); 82 paymentMethodData.cardCVVLabel || 83 __("Card Code", "gestpay-for-woocommerce"); 81 84 const infoBox = paymentMethodData.infoBox || ""; 82 85 const infoModal = paymentMethodData.infoModal || ""; … … 95 98 const manageCardsEndpoint = paymentMethodData.manageCardsEndpoint; 96 99 const manageCardsText = 97 paymentMethodData.manageCardsText || __("Manage Cards", "woocommerce"); 100 paymentMethodData.manageCardsText || 101 __("Manage Cards", "gestpay-for-woocommerce"); 98 102 const newCardText = 99 paymentMethodData.newCardText || __("New Card", "woocommerce"); 103 paymentMethodData.newCardText || 104 __("New Card", "gestpay-for-woocommerce"); 100 105 101 106 useEffect(() => { … … 189 194 }, 190 195 }), 196 isSandbox && 197 createElement("p", { 198 key: "sandbox", 199 dangerouslySetInnerHTML: { 200 __html: decodeEntities(paymentMethodData.sandbox || ""), 201 }, 202 }), 191 203 ] 192 204 ); -
gestpay-for-woocommerce/trunk/assets/js/iFrameReady.js
r3359611 r3385955 5 5 */ 6 6 GestpayIframe.PaymentPageLoad = function (Result) { 7 console.log("PaymentPageLoad", Result);8 console.log("paRes", gestpayReadyObject.paRes);9 console.log("transKey", gestpayReadyObject.transKey);10 7 // Check for errors: if the Result.ErroCode is 10 the iFrame 11 8 // is created correctly and the security check are passed … … 26 23 TransKey: transKey, 27 24 }; 28 console.log("SendPAymentPArams", params);29 25 30 26 GestPay.SendPayment(params, GestpayIframe.PaymentCallBack); 31 27 } else { 32 console.log("First Load");33 28 // 1st page load: show the form with the credit card fields 34 29 document.getElementById("gestpay-inner-freeze-pane").className = … … 46 41 */ 47 42 GestpayIframe.PaymentCallBack = function (Result) { 48 console.log("PaymentCallback", Result);49 50 43 if (Result.ErrorCode == 0) { 51 44 // --- Transaction correctly processed … … 119 112 120 113 GestpayIframe.OnError = function (Result) { 121 console.log("OnError", Result);122 114 //if (Result.ErrorCode === 'none') return; 123 115 // Show the error box … … 142 134 */ 143 135 function gestpayCheckCC() { 144 console.log("GestpayCheckCC");145 146 136 document.getElementById("gestpay-submit").disabled = true; 147 137 document.getElementById("gestpay-freeze-pane").className = … … 159 149 if (gestpayReadyObject.is_cvv_required) 160 150 params.CVV2 = document.getElementById("gestpay-cc-cvv").value; 161 162 console.log(params);163 151 164 152 GestPay.SendPayment(params, GestpayIframe.PaymentCallBack); -
gestpay-for-woocommerce/trunk/gestpay-for-woocommerce.php
r3371755 r3385955 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: 202510 026 * Version: 20251028 7 7 * Requires at least: 4.7 8 8 * Requires PHP: 7.0 9 * Tested up to: 6.8.3 9 10 * Author: Fabrick (Gruppo Banca Sella) 10 11 * Author URI: https://www.fabrick.com 11 12 * 12 13 * WC requires at least: 3.0 13 * WC tested up to: 9.4.214 * WC tested up to: 10.2.2 14 15 * Requires Plugins: woocommerce 15 16 * … … 1037 1038 1038 1039 /** 1040 * Handle MyBank payment processing from blocks checkout 1041 */ 1042 add_action( 'template_redirect', 'wc_gateway_gestpay_handle_blocks_mybank_payment' ); 1043 function wc_gateway_gestpay_handle_blocks_mybank_payment() { 1044 1045 // Only handle on checkout page 1046 if ( ! is_checkout() ) { 1047 return; 1048 } 1049 1050 // Check if this is a MyBank blocks payment 1051 if ( ! isset( $_GET['gestpay_payment_type'] ) || $_GET['gestpay_payment_type'] !== 'MYBANK' ) { 1052 return; 1053 } 1054 1055 if ( ! isset( $_GET['gestpay_blocks'] ) || $_GET['gestpay_blocks'] !== '1' ) { 1056 return; 1057 } 1058 1059 if ( ! isset( $_GET['payment_method'] ) || $_GET['payment_method'] !== 'wc_gateway_gestpay_mybank' ) { 1060 return; 1061 } 1062 1063 // Check if cart is not empty 1064 if ( WC()->cart->is_empty() ) { 1065 wc_add_notice( 'Your cart is empty.', 'error' ); 1066 wp_redirect( wc_get_cart_url() ); 1067 exit; 1068 } 1069 1070 // Create order 1071 $order = wc_create_order(); 1072 1073 // Add items from cart 1074 foreach ( WC()->cart->get_cart() as $cart_item_key => $cart_item ) { 1075 $order->add_product( 1076 $cart_item['data'], 1077 $cart_item['quantity'] 1078 ); 1079 } 1080 1081 // Set payment method 1082 $order->set_payment_method( 'wc_gateway_gestpay_mybank' ); 1083 1084 // Set billing and shipping addresses 1085 $order->set_address( WC()->customer->get_billing(), 'billing' ); 1086 $order->set_address( WC()->customer->get_shipping(), 'shipping' ); 1087 1088 // Calculate totals 1089 $order->calculate_totals(); 1090 1091 // Process payment with MyBank gateway 1092 if ( class_exists( 'WC_Gateway_Gestpay_MYBANK' ) ) { 1093 $mybank_gateway = new WC_Gateway_Gestpay_MYBANK(); 1094 $result = $mybank_gateway->process_payment( $order->get_id() ); 1095 1096 if ( isset( $result['result'] ) && $result['result'] === 'success' ) { 1097 // Payment successful, redirect to payment page 1098 wp_redirect( $result['redirect'] ); 1099 exit; 1100 } else { 1101 // Payment failed 1102 wc_add_notice( 'Payment processing failed. Please try again.', 'error' ); 1103 wp_redirect( wc_get_checkout_url() ); 1104 exit; 1105 } 1106 } else { 1107 // MyBank gateway not available 1108 wc_add_notice( 'MyBank payment method is not available.', 'error' ); 1109 wp_redirect( wc_get_checkout_url() ); 1110 exit; 1111 } 1112 } 1113 1114 /** 1039 1115 * Add this action to listen for the order status manually changed 1040 1116 */ … … 1153 1229 } 1154 1230 } 1231 1232 // Register the MyBank payment method 1233 if ( ! class_exists( 'Gestpay_MyBank_Blocks_Integration' ) ) { 1234 $mybank_blocks_integration_file = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'inc/class-gestpay-mybank-blocks-integration.php'; 1235 if ( file_exists( $mybank_blocks_integration_file ) ) { 1236 require_once $mybank_blocks_integration_file; 1237 } else { 1238 // Log error and skip registration if file doesn't exist 1239 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 1240 error_log( 'Gestpay MyBank Blocks Integration: File not found - ' . $mybank_blocks_integration_file ); 1241 } 1242 return; 1243 } 1244 } 1245 1246 if ( class_exists( 'Gestpay_MyBank_Blocks_Integration' ) ) { 1247 $payment_method_registry->register( new Gestpay_MyBank_Blocks_Integration( $asset_api ) ); 1248 1249 if ( defined( 'WP_DEBUG' ) && WP_DEBUG ) { 1250 error_log( 'Gestpay Blocks Integration: MyBank payment method registered successfully' ); 1251 } 1252 } 1155 1253 1156 1254 } catch ( Exception $e ) { … … 1216 1314 ); 1217 1315 } 1316 1317 // Enqueue MyBank blocks styles 1318 $mybank_css_path = plugin_dir_path( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-mybank-blocks.css'; 1319 if ( file_exists( $mybank_css_path ) ) { 1320 wp_enqueue_style( 1321 'gestpay-mybank-blocks-styles', 1322 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/css/blocks/gestpay-mybank-blocks.css', 1323 array(), 1324 '20250603' 1325 ); 1326 } 1218 1327 } 1219 1328 -
gestpay-for-woocommerce/trunk/inc/class-gestpay-bancomatpay-blocks-integration.php
r3371755 r3385955 80 80 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js', 81 81 array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ), 82 '2025 0912',82 '20251028', 83 83 true 84 84 ); -
gestpay-for-woocommerce/trunk/inc/class-gestpay-blocks-integration.php
r3359815 r3385955 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 '2025 0912',76 '20251028', 77 77 true 78 78 ); -
gestpay-for-woocommerce/trunk/inc/class-gestpay-consel-blocks-integration.php
r3371755 r3385955 80 80 plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-consel.js', 81 81 array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ), 82 '2025 0912',82 '20251028', 83 83 true 84 84 ); -
gestpay-for-woocommerce/trunk/inc/class-gestpay-paypal-blocks-integration.php
r3359815 r3385955 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 '2025 0912',82 '20251028', 83 83 true 84 84 ); -
gestpay-for-woocommerce/trunk/readme.txt
r3371755 r3385955 1 1 === Gestpay for WooCommerce === 2 2 Contributors: easynolo, netingweb 3 Tags: woocommerce, payment gateway, payment, credit card, gestpay, gestpay starter, gestpay pro, gestpay professional, banca sella, sella.it, easynolo, netingweb, axerve, netingweb, fabrick, iframe, direct payment gateway3 Tags: woocommerce, payment gateway, gestpay, credit card, axerve 4 4 Requires at least: 4.7 5 5 Requires PHP: 7.0 6 Tested up to: 6.8. 27 Stable tag: 202510 026 Tested up to: 6.8.3 7 Stable tag: 20251028 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 WC requires at least: 3.0 11 WC tested up to: 10. 0.411 WC tested up to: 10.2.2 12 12 13 13 Axerve Free Plugin for Woocommerce extends WooCommerce providing the payment gateway Axerve. … … 25 25 26 26 [Click here to read the full usage documentation on Axerve](https://docs.axerve.com/it/plugin/woocommerce/ "Axerve for WooCommerce - Usage Documentation"). 27 28 = WooCommerce Blocks Compatibility = 29 30 Starting from version 20251028, the plugin is fully compatible with WooCommerce Blocks checkout. All payment methods are now supported in both classic checkout and blocks checkout modes. There is no need to disable WooCommerce Blocks checkout. 31 32 = Available Features = 33 34 * S2S SOAP (Except callReadTrxS2S and callVerifyCardS2S) 35 * Tokenization 36 * 3DS1 37 * 3DS2 – Authentication 38 * 3DS2 – Recurring Transactions 39 * RBA (Risk-Based Authentication) 40 * PayPal Seller Protection 41 * WooCommerce Subscriptions support (Recurring payments and subscriptions) 42 43 = Available Payment Methods = 44 45 * Credit Cards 46 * BANCOMAT Pay 47 * MyBank 48 * PayPal 49 * PayPal Billing Agreement 50 * PayPal Buy Now Pay Later 27 51 28 52 == Actions and filters list == … … 69 93 == Changelog == 70 94 95 = 20251028 = 96 * Feature: Full WooCommerce Blocks support 97 - Starting from version 20251028, the plugin is fully compatible with WooCommerce Blocks checkout 98 - All payment methods are now fully supported in blocks checkout mode 99 - No need to disable WooCommerce Blocks checkout 100 * Security: Nothing added 101 * Improvement: Enhanced checkout compatibility 102 * Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2 103 * Note: This release confirms complete blocks integration for all payment methods 104 71 105 = 20251002 = 72 106 * Feature: Extended WooCommerce Blocks support for additional payment methods … … 78 112 * Security: Nothing added 79 113 * Improvement: Enhanced checkout experience with extended blocks integration 80 * Checks: Verified compatibility with WordPress 6.8. 2, WooCommerce 10.0.4114 * Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2 81 115 * Note: This release completes the blocks integration for major Italian payment methods 82 116 … … 89 123 * Security: Nothing added 90 124 * Improvement: Improved deployment reliability and error handling 91 * Checks: Verified compatibility with WordPress 6.8. 2, WooCommerce 10.0.4125 * Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2 92 126 * Note: This hotfix resolves the critical issue that caused site crashes in production 93 127 … … 102 136 * Security: Nothing added 103 137 * Improvement: Enhanced checkout experience with blocks integration 104 * Checks: Verified compatibility with WordPress 6.8. 2, WooCommerce 10.0.4138 * Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2 105 139 * Note: This release enables seamless integration of GestPay payments in WooCommerce Blocks checkout 106 140
Note: See TracChangeset
for help on using the changeset viewer.