Plugin Directory

Changeset 3385955


Ignore:
Timestamp:
10/28/2025 03:25:01 PM (4 months ago)
Author:
netingweb
Message:

Releasing version 20251028 - Full WooCommerce Blocks support with all payment methods. Added WooCommerce Subscriptions support. Updated script cache versions. Tested with WordPress 6.8.3 and WooCommerce 10.2.2.

Location:
gestpay-for-woocommerce
Files:
3 added
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gestpay-for-woocommerce/tags/20251028/assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js

    r3371755 r3385955  
    3535    label: decodeEntities(
    3636      getPaymentMethodData("wc_gateway_gestpay_bancomatpay", {}).title ||
    37         __("Bancomatpay", "woocommerce")
     37        __("Bancomatpay", "gestpay-for-woocommerce")
    3838    ),
    3939    content: createElement(GestpayBancomatpayContent),
     
    4949    ariaLabel: decodeEntities(
    5050      getPaymentMethodData("wc_gateway_gestpay_bancomatpay", {}).title ||
    51         __("Payment via Bancomatpay", "woocommerce")
     51        __("Payment via Bancomatpay", "gestpay-for-woocommerce")
    5252    ),
    5353    supports: {
  • gestpay-for-woocommerce/tags/20251028/assets/js/blocks/wc-payment-method-gestpay-consel.js

    r3371755 r3385955  
    3535    label: decodeEntities(
    3636      getPaymentMethodData("wc_gateway_gestpay_consel", {}).title ||
    37         __("Consel", "woocommerce")
     37        __("Consel", "gestpay-for-woocommerce")
    3838    ),
    3939    content: createElement(GestpayConselContent),
     
    4949    ariaLabel: decodeEntities(
    5050      getPaymentMethodData("wc_gateway_gestpay_consel", {}).title ||
    51         __("Payment via Consel", "woocommerce")
     51        __("Payment via Consel", "gestpay-for-woocommerce")
    5252    ),
    5353    supports: {
  • gestpay-for-woocommerce/tags/20251028/assets/js/blocks/wc-payment-method-gestpay-paypal.js

    r3359815 r3385955  
    3535    label: decodeEntities(
    3636      getPaymentMethodData("wc_gateway_gestpay_paypal", {}).title ||
    37         __("PayPal", "woocommerce")
     37        __("PayPal", "gestpay-for-woocommerce")
    3838    ),
    3939    content: createElement(GestpayPayPalContent),
     
    4949    ariaLabel: decodeEntities(
    5050      getPaymentMethodData("wc_gateway_gestpay_paypal", {}).title ||
    51         __("Payment via PayPal", "woocommerce")
     51        __("Payment via PayPal", "gestpay-for-woocommerce")
    5252    ),
    5353    supports: {
  • gestpay-for-woocommerce/tags/20251028/assets/js/blocks/wc-payment-method-gestpay.js

    r3359815 r3385955  
    3535    label: decodeEntities(
    3636      getPaymentMethodData("wc_gateway_gestpay", {}).title ||
    37         __("Gestpay", "woocommerce")
     37        __("Gestpay", "gestpay-for-woocommerce")
    3838    ),
    3939    content: createElement(GestpayContent),
     
    4646    ariaLabel: decodeEntities(
    4747      getPaymentMethodData("wc_gateway_gestpay", {}).title ||
    48         __("Payment via Gestpay", "woocommerce")
     48        __("Payment via Gestpay", "gestpay-for-woocommerce")
    4949    ),
    5050    supports: {
     
    6767    const buyerName = paymentMethodData.buyerName || false;
    6868    const expMonthLabel =
    69       paymentMethodData.expMonthLabel || __("MM", "woocommerce");
     69      paymentMethodData.expMonthLabel || __("MM", "gestpay-for-woocommerce");
    7070    const expYearLabel =
    71       paymentMethodData.expYearLabel || __("YY", "woocommerce");
     71      paymentMethodData.expYearLabel || __("YY", "gestpay-for-woocommerce");
    7272    const expDateLabel =
    73       paymentMethodData.expDateLabel || __("Expiry (MM/YY)", "woocommerce");
     73      paymentMethodData.expDateLabel ||
     74      __("Expiry (MM/YY)", "gestpay-for-woocommerce");
    7475    const cardholderNameLabel =
    7576      paymentMethodData.cardholderNameLabel ||
    76       __("Cardholder Name", "woocommerce");
     77      __("Cardholder Name", "gestpay-for-woocommerce");
    7778    const cardNumberLabel =
    78       paymentMethodData.cardNumberLabel || __("Card Number", "woocommerce");
     79      paymentMethodData.cardNumberLabel ||
     80      __("Card Number", "gestpay-for-woocommerce");
    7981    const cardCVVLabel =
    80       paymentMethodData.cardCVVLabel || __("Card Code", "woocommerce");
     82      paymentMethodData.cardCVVLabel ||
     83      __("Card Code", "gestpay-for-woocommerce");
    8184    const infoBox = paymentMethodData.infoBox || "";
    8285    const infoModal = paymentMethodData.infoModal || "";
     
    9598    const manageCardsEndpoint = paymentMethodData.manageCardsEndpoint;
    9699    const manageCardsText =
    97       paymentMethodData.manageCardsText || __("Manage Cards", "woocommerce");
     100      paymentMethodData.manageCardsText ||
     101      __("Manage Cards", "gestpay-for-woocommerce");
    98102    const newCardText =
    99       paymentMethodData.newCardText || __("New Card", "woocommerce");
     103      paymentMethodData.newCardText ||
     104      __("New Card", "gestpay-for-woocommerce");
    100105
    101106    useEffect(() => {
     
    189194            },
    190195          }),
     196          isSandbox &&
     197            createElement("p", {
     198              key: "sandbox",
     199              dangerouslySetInnerHTML: {
     200                __html: decodeEntities(paymentMethodData.sandbox || ""),
     201              },
     202            }),
    191203        ]
    192204      );
  • gestpay-for-woocommerce/tags/20251028/assets/js/iFrameReady.js

    r3359611 r3385955  
    55 */
    66GestpayIframe.PaymentPageLoad = function (Result) {
    7   console.log("PaymentPageLoad", Result);
    8   console.log("paRes", gestpayReadyObject.paRes);
    9   console.log("transKey", gestpayReadyObject.transKey);
    107  // Check for errors: if the Result.ErroCode is 10 the iFrame
    118  // is created correctly and the security check are passed
     
    2623        TransKey: transKey,
    2724      };
    28       console.log("SendPAymentPArams", params);
    2925
    3026      GestPay.SendPayment(params, GestpayIframe.PaymentCallBack);
    3127    } else {
    32       console.log("First Load");
    3328      // 1st page load: show the form with the credit card fields
    3429      document.getElementById("gestpay-inner-freeze-pane").className =
     
    4641 */
    4742GestpayIframe.PaymentCallBack = function (Result) {
    48   console.log("PaymentCallback", Result);
    49 
    5043  if (Result.ErrorCode == 0) {
    5144    // --- Transaction correctly processed
     
    119112
    120113GestpayIframe.OnError = function (Result) {
    121   console.log("OnError", Result);
    122114  //if (Result.ErrorCode === 'none') return;
    123115  // Show the error box
     
    142134 */
    143135function gestpayCheckCC() {
    144   console.log("GestpayCheckCC");
    145 
    146136  document.getElementById("gestpay-submit").disabled = true;
    147137  document.getElementById("gestpay-freeze-pane").className =
     
    159149  if (gestpayReadyObject.is_cvv_required)
    160150    params.CVV2 = document.getElementById("gestpay-cc-cvv").value;
    161 
    162   console.log(params);
    163151
    164152  GestPay.SendPayment(params, GestpayIframe.PaymentCallBack);
  • gestpay-for-woocommerce/tags/20251028/gestpay-for-woocommerce.php

    r3371755 r3385955  
    44 * Plugin URI: http://wordpress.org/plugins/gestpay-for-woocommerce/
    55 * Description: Abilita il sistema di pagamento GestPay by Axerve (Gruppo Banca Sella) in WooCommerce.
    6  * Version: 20251002
     6 * Version: 20251028
    77 * Requires at least: 4.7
    88 * Requires PHP: 7.0
     9 * Tested up to: 6.8.3
    910 * Author: Fabrick (Gruppo Banca Sella)
    1011 * Author URI: https://www.fabrick.com
    1112 *
    1213 * WC requires at least: 3.0
    13  * WC tested up to: 9.4.2
     14 * WC tested up to: 10.2.2
    1415 * Requires Plugins: woocommerce
    1516 *
     
    10371038
    10381039/**
     1040 * Handle MyBank payment processing from blocks checkout
     1041 */
     1042add_action( 'template_redirect', 'wc_gateway_gestpay_handle_blocks_mybank_payment' );
     1043function 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/**
    10391115 * Add this action to listen for the order status manually changed
    10401116 */
     
    11531229            }
    11541230        }
     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        }
    11551253       
    11561254    } catch ( Exception $e ) {
     
    12161314        );
    12171315    }
     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    }
    12181327}
    12191328
  • gestpay-for-woocommerce/tags/20251028/inc/class-gestpay-bancomatpay-blocks-integration.php

    r3371755 r3385955  
    8080            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js',
    8181            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    82             '20250912',
     82            '20251028',
    8383            true
    8484        );
  • gestpay-for-woocommerce/tags/20251028/inc/class-gestpay-blocks-integration.php

    r3359815 r3385955  
    7474            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay.js',
    7575            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    76             '20250912',
     76            '20251028',
    7777            true
    7878        );
  • gestpay-for-woocommerce/tags/20251028/inc/class-gestpay-consel-blocks-integration.php

    r3371755 r3385955  
    8080            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-consel.js',
    8181            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    82             '20250912',
     82            '20251028',
    8383            true
    8484        );
  • gestpay-for-woocommerce/tags/20251028/inc/class-gestpay-paypal-blocks-integration.php

    r3359815 r3385955  
    8080            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-paypal.js',
    8181            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    82             '20250912',
     82            '20251028',
    8383            true
    8484        );
  • gestpay-for-woocommerce/tags/20251028/readme.txt

    r3371755 r3385955  
    11=== Gestpay for WooCommerce ===
    22Contributors: 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 gateway
     3Tags: woocommerce, payment gateway, gestpay, credit card, axerve
    44Requires at least: 4.7
    55Requires PHP: 7.0
    6 Tested up to: 6.8.2
    7 Stable tag: 20251002
     6Tested up to: 6.8.3
     7Stable tag: 20251028
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010WC requires at least: 3.0
    11 WC tested up to: 10.0.4
     11WC tested up to: 10.2.2
    1212
    1313Axerve Free Plugin for Woocommerce extends WooCommerce providing the payment gateway Axerve.
     
    2525
    2626[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
     30Starting 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
    2751
    2852== Actions and filters list ==
     
    6993== Changelog ==
    7094
     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
    71105= 20251002 =
    72106* Feature: Extended WooCommerce Blocks support for additional payment methods
     
    78112* Security: Nothing added
    79113* Improvement: Enhanced checkout experience with extended blocks integration
    80 * Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4
     114* Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2
    81115* Note: This release completes the blocks integration for major Italian payment methods
    82116
     
    89123* Security: Nothing added
    90124* Improvement: Improved deployment reliability and error handling
    91 * Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4
     125* Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2
    92126* Note: This hotfix resolves the critical issue that caused site crashes in production
    93127
     
    102136* Security: Nothing added
    103137* Improvement: Enhanced checkout experience with blocks integration
    104 * Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4
     138* Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2
    105139* Note: This release enables seamless integration of GestPay payments in WooCommerce Blocks checkout
    106140
  • gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js

    r3371755 r3385955  
    3535    label: decodeEntities(
    3636      getPaymentMethodData("wc_gateway_gestpay_bancomatpay", {}).title ||
    37         __("Bancomatpay", "woocommerce")
     37        __("Bancomatpay", "gestpay-for-woocommerce")
    3838    ),
    3939    content: createElement(GestpayBancomatpayContent),
     
    4949    ariaLabel: decodeEntities(
    5050      getPaymentMethodData("wc_gateway_gestpay_bancomatpay", {}).title ||
    51         __("Payment via Bancomatpay", "woocommerce")
     51        __("Payment via Bancomatpay", "gestpay-for-woocommerce")
    5252    ),
    5353    supports: {
  • gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay-consel.js

    r3371755 r3385955  
    3535    label: decodeEntities(
    3636      getPaymentMethodData("wc_gateway_gestpay_consel", {}).title ||
    37         __("Consel", "woocommerce")
     37        __("Consel", "gestpay-for-woocommerce")
    3838    ),
    3939    content: createElement(GestpayConselContent),
     
    4949    ariaLabel: decodeEntities(
    5050      getPaymentMethodData("wc_gateway_gestpay_consel", {}).title ||
    51         __("Payment via Consel", "woocommerce")
     51        __("Payment via Consel", "gestpay-for-woocommerce")
    5252    ),
    5353    supports: {
  • gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay-paypal.js

    r3359815 r3385955  
    3535    label: decodeEntities(
    3636      getPaymentMethodData("wc_gateway_gestpay_paypal", {}).title ||
    37         __("PayPal", "woocommerce")
     37        __("PayPal", "gestpay-for-woocommerce")
    3838    ),
    3939    content: createElement(GestpayPayPalContent),
     
    4949    ariaLabel: decodeEntities(
    5050      getPaymentMethodData("wc_gateway_gestpay_paypal", {}).title ||
    51         __("Payment via PayPal", "woocommerce")
     51        __("Payment via PayPal", "gestpay-for-woocommerce")
    5252    ),
    5353    supports: {
  • gestpay-for-woocommerce/trunk/assets/js/blocks/wc-payment-method-gestpay.js

    r3359815 r3385955  
    3535    label: decodeEntities(
    3636      getPaymentMethodData("wc_gateway_gestpay", {}).title ||
    37         __("Gestpay", "woocommerce")
     37        __("Gestpay", "gestpay-for-woocommerce")
    3838    ),
    3939    content: createElement(GestpayContent),
     
    4646    ariaLabel: decodeEntities(
    4747      getPaymentMethodData("wc_gateway_gestpay", {}).title ||
    48         __("Payment via Gestpay", "woocommerce")
     48        __("Payment via Gestpay", "gestpay-for-woocommerce")
    4949    ),
    5050    supports: {
     
    6767    const buyerName = paymentMethodData.buyerName || false;
    6868    const expMonthLabel =
    69       paymentMethodData.expMonthLabel || __("MM", "woocommerce");
     69      paymentMethodData.expMonthLabel || __("MM", "gestpay-for-woocommerce");
    7070    const expYearLabel =
    71       paymentMethodData.expYearLabel || __("YY", "woocommerce");
     71      paymentMethodData.expYearLabel || __("YY", "gestpay-for-woocommerce");
    7272    const expDateLabel =
    73       paymentMethodData.expDateLabel || __("Expiry (MM/YY)", "woocommerce");
     73      paymentMethodData.expDateLabel ||
     74      __("Expiry (MM/YY)", "gestpay-for-woocommerce");
    7475    const cardholderNameLabel =
    7576      paymentMethodData.cardholderNameLabel ||
    76       __("Cardholder Name", "woocommerce");
     77      __("Cardholder Name", "gestpay-for-woocommerce");
    7778    const cardNumberLabel =
    78       paymentMethodData.cardNumberLabel || __("Card Number", "woocommerce");
     79      paymentMethodData.cardNumberLabel ||
     80      __("Card Number", "gestpay-for-woocommerce");
    7981    const cardCVVLabel =
    80       paymentMethodData.cardCVVLabel || __("Card Code", "woocommerce");
     82      paymentMethodData.cardCVVLabel ||
     83      __("Card Code", "gestpay-for-woocommerce");
    8184    const infoBox = paymentMethodData.infoBox || "";
    8285    const infoModal = paymentMethodData.infoModal || "";
     
    9598    const manageCardsEndpoint = paymentMethodData.manageCardsEndpoint;
    9699    const manageCardsText =
    97       paymentMethodData.manageCardsText || __("Manage Cards", "woocommerce");
     100      paymentMethodData.manageCardsText ||
     101      __("Manage Cards", "gestpay-for-woocommerce");
    98102    const newCardText =
    99       paymentMethodData.newCardText || __("New Card", "woocommerce");
     103      paymentMethodData.newCardText ||
     104      __("New Card", "gestpay-for-woocommerce");
    100105
    101106    useEffect(() => {
     
    189194            },
    190195          }),
     196          isSandbox &&
     197            createElement("p", {
     198              key: "sandbox",
     199              dangerouslySetInnerHTML: {
     200                __html: decodeEntities(paymentMethodData.sandbox || ""),
     201              },
     202            }),
    191203        ]
    192204      );
  • gestpay-for-woocommerce/trunk/assets/js/iFrameReady.js

    r3359611 r3385955  
    55 */
    66GestpayIframe.PaymentPageLoad = function (Result) {
    7   console.log("PaymentPageLoad", Result);
    8   console.log("paRes", gestpayReadyObject.paRes);
    9   console.log("transKey", gestpayReadyObject.transKey);
    107  // Check for errors: if the Result.ErroCode is 10 the iFrame
    118  // is created correctly and the security check are passed
     
    2623        TransKey: transKey,
    2724      };
    28       console.log("SendPAymentPArams", params);
    2925
    3026      GestPay.SendPayment(params, GestpayIframe.PaymentCallBack);
    3127    } else {
    32       console.log("First Load");
    3328      // 1st page load: show the form with the credit card fields
    3429      document.getElementById("gestpay-inner-freeze-pane").className =
     
    4641 */
    4742GestpayIframe.PaymentCallBack = function (Result) {
    48   console.log("PaymentCallback", Result);
    49 
    5043  if (Result.ErrorCode == 0) {
    5144    // --- Transaction correctly processed
     
    119112
    120113GestpayIframe.OnError = function (Result) {
    121   console.log("OnError", Result);
    122114  //if (Result.ErrorCode === 'none') return;
    123115  // Show the error box
     
    142134 */
    143135function gestpayCheckCC() {
    144   console.log("GestpayCheckCC");
    145 
    146136  document.getElementById("gestpay-submit").disabled = true;
    147137  document.getElementById("gestpay-freeze-pane").className =
     
    159149  if (gestpayReadyObject.is_cvv_required)
    160150    params.CVV2 = document.getElementById("gestpay-cc-cvv").value;
    161 
    162   console.log(params);
    163151
    164152  GestPay.SendPayment(params, GestpayIframe.PaymentCallBack);
  • gestpay-for-woocommerce/trunk/gestpay-for-woocommerce.php

    r3371755 r3385955  
    44 * Plugin URI: http://wordpress.org/plugins/gestpay-for-woocommerce/
    55 * Description: Abilita il sistema di pagamento GestPay by Axerve (Gruppo Banca Sella) in WooCommerce.
    6  * Version: 20251002
     6 * Version: 20251028
    77 * Requires at least: 4.7
    88 * Requires PHP: 7.0
     9 * Tested up to: 6.8.3
    910 * Author: Fabrick (Gruppo Banca Sella)
    1011 * Author URI: https://www.fabrick.com
    1112 *
    1213 * WC requires at least: 3.0
    13  * WC tested up to: 9.4.2
     14 * WC tested up to: 10.2.2
    1415 * Requires Plugins: woocommerce
    1516 *
     
    10371038
    10381039/**
     1040 * Handle MyBank payment processing from blocks checkout
     1041 */
     1042add_action( 'template_redirect', 'wc_gateway_gestpay_handle_blocks_mybank_payment' );
     1043function 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/**
    10391115 * Add this action to listen for the order status manually changed
    10401116 */
     
    11531229            }
    11541230        }
     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        }
    11551253       
    11561254    } catch ( Exception $e ) {
     
    12161314        );
    12171315    }
     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    }
    12181327}
    12191328
  • gestpay-for-woocommerce/trunk/inc/class-gestpay-bancomatpay-blocks-integration.php

    r3371755 r3385955  
    8080            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-bancomatpay.js',
    8181            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    82             '20250912',
     82            '20251028',
    8383            true
    8484        );
  • gestpay-for-woocommerce/trunk/inc/class-gestpay-blocks-integration.php

    r3359815 r3385955  
    7474            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay.js',
    7575            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    76             '20250912',
     76            '20251028',
    7777            true
    7878        );
  • gestpay-for-woocommerce/trunk/inc/class-gestpay-consel-blocks-integration.php

    r3371755 r3385955  
    8080            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-consel.js',
    8181            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    82             '20250912',
     82            '20251028',
    8383            true
    8484        );
  • gestpay-for-woocommerce/trunk/inc/class-gestpay-paypal-blocks-integration.php

    r3359815 r3385955  
    8080            plugin_dir_url( GESTPAY_MAIN_FILE ) . 'assets/js/blocks/wc-payment-method-gestpay-paypal.js',
    8181            array( 'wc-blocks-registry', 'wc-settings', 'wp-element', 'wp-components', 'wp-blocks', 'wp-data', 'wp-hooks', 'wp-i18n' ),
    82             '20250912',
     82            '20251028',
    8383            true
    8484        );
  • gestpay-for-woocommerce/trunk/readme.txt

    r3371755 r3385955  
    11=== Gestpay for WooCommerce ===
    22Contributors: 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 gateway
     3Tags: woocommerce, payment gateway, gestpay, credit card, axerve
    44Requires at least: 4.7
    55Requires PHP: 7.0
    6 Tested up to: 6.8.2
    7 Stable tag: 20251002
     6Tested up to: 6.8.3
     7Stable tag: 20251028
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010WC requires at least: 3.0
    11 WC tested up to: 10.0.4
     11WC tested up to: 10.2.2
    1212
    1313Axerve Free Plugin for Woocommerce extends WooCommerce providing the payment gateway Axerve.
     
    2525
    2626[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
     30Starting 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
    2751
    2852== Actions and filters list ==
     
    6993== Changelog ==
    7094
     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
    71105= 20251002 =
    72106* Feature: Extended WooCommerce Blocks support for additional payment methods
     
    78112* Security: Nothing added
    79113* Improvement: Enhanced checkout experience with extended blocks integration
    80 * Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4
     114* Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2
    81115* Note: This release completes the blocks integration for major Italian payment methods
    82116
     
    89123* Security: Nothing added
    90124* Improvement: Improved deployment reliability and error handling
    91 * Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4
     125* Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2
    92126* Note: This hotfix resolves the critical issue that caused site crashes in production
    93127
     
    102136* Security: Nothing added
    103137* Improvement: Enhanced checkout experience with blocks integration
    104 * Checks: Verified compatibility with WordPress 6.8.2, WooCommerce 10.0.4
     138* Checks: Verified compatibility with WordPress 6.8.3, WooCommerce 10.2.2
    105139* Note: This release enables seamless integration of GestPay payments in WooCommerce Blocks checkout
    106140
Note: See TracChangeset for help on using the changeset viewer.