Plugin Directory

Changeset 3417521


Ignore:
Timestamp:
12/11/2025 03:15:04 PM (3 months ago)
Author:
netingweb
Message:

Releasing version 20251211 - Fix: Removed PreviousTransDetails section for EC transaction type to prevent sending invalid bankTransactionID that caused failures in 3DS flow.

Location:
gestpay-for-woocommerce
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gestpay-for-woocommerce/tags/20251211/gestpay-for-woocommerce.php

    r3411140 r3417521  
    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: 20251204   
     6 * Version: 20251211   
    77 * Requires at least: 4.7
    88 * Requires PHP: 7.0
  • gestpay-for-woocommerce/tags/20251211/inc/class-gestpay-3DS2.php

    r3291597 r3417521  
    593593        // Contains the details of a previous authenticated transaction for the same cardholder on the same merchant.
    594594        // If present, it can help to increase the chances of a frictionless authentication.
    595         $previousTransDetails = array();
    596 
    597         $bankTransactionID = self::get_bankTransactionID( $order, $scheduled_payment );
    598         if ( !empty( $bankTransactionID ) ) {
    599             $previousTransDetails['bankTransactionID'] = $bankTransactionID;
    600         }
    601 
    602         if ( $ws_type == 'WsS2S' ) { // These are only for WsS2S API
    603             $cardholderID = get_current_user_id();
    604             self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authData' );
    605             self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authMethod' );
    606             self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authTimestamp' );
    607             self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'acsID' );
    608             // - @N/A - XID
    609         }
    610 
    611         if ( !empty( $previousTransDetails ) ) {
    612             $params->transDetails['previousTransDetails'] = $previousTransDetails;
     595        if ($type === "01N") {
     596            $previousTransDetails = array();
     597
     598            $bankTransactionID = self::get_bankTransactionID( $order, $scheduled_payment );
     599            if ( !empty( $bankTransactionID ) ) {
     600                $previousTransDetails['bankTransactionID'] = $bankTransactionID;
     601            }
     602
     603            if ( $ws_type == 'WsS2S' ) { // These are only for WsS2S API
     604                $cardholderID = get_current_user_id();
     605                self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authData' );
     606                self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authMethod' );
     607                self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authTimestamp' );
     608                self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'acsID' );
     609                // - @N/A - XID
     610            }
     611
     612            if ( !empty( $previousTransDetails ) ) {
     613                $params->transDetails['previousTransDetails'] = $previousTransDetails;
     614            }
    613615        }
    614616
  • gestpay-for-woocommerce/tags/20251211/readme.txt

    r3411140 r3417521  
    55Requires PHP: 7.0
    66Tested up to  : 6.9
    7 Stable tag: 20251204   
     7Stable tag: 20251211   
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    107107  - Removed warnings about partial blocks support
    108108
     109= 20251211 =
     110* Fix: Removed PreviousTransDetails section for EC transaction type to prevent sending invalid bankTransactionID that caused failures in 3DS flow.
     111* Fix: For 01F subscription transactions, the bankTransactionID field is now nullified, as requested by Axerve/Fabrick.
     112* Improvement: Maintained correct handling of 01N scenario, which continues to use the bankTransactionID from the 01F transaction for subscription continuity.
     113
    109114= 20251110 =
    110115* Update: Compatibility information update
  • gestpay-for-woocommerce/trunk/gestpay-for-woocommerce.php

    r3411140 r3417521  
    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: 20251204   
     6 * Version: 20251211   
    77 * Requires at least: 4.7
    88 * Requires PHP: 7.0
  • gestpay-for-woocommerce/trunk/inc/class-gestpay-3DS2.php

    r3291597 r3417521  
    593593        // Contains the details of a previous authenticated transaction for the same cardholder on the same merchant.
    594594        // If present, it can help to increase the chances of a frictionless authentication.
    595         $previousTransDetails = array();
    596 
    597         $bankTransactionID = self::get_bankTransactionID( $order, $scheduled_payment );
    598         if ( !empty( $bankTransactionID ) ) {
    599             $previousTransDetails['bankTransactionID'] = $bankTransactionID;
    600         }
    601 
    602         if ( $ws_type == 'WsS2S' ) { // These are only for WsS2S API
    603             $cardholderID = get_current_user_id();
    604             self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authData' );
    605             self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authMethod' );
    606             self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authTimestamp' );
    607             self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'acsID' );
    608             // - @N/A - XID
    609         }
    610 
    611         if ( !empty( $previousTransDetails ) ) {
    612             $params->transDetails['previousTransDetails'] = $previousTransDetails;
     595        if ($type === "01N") {
     596            $previousTransDetails = array();
     597
     598            $bankTransactionID = self::get_bankTransactionID( $order, $scheduled_payment );
     599            if ( !empty( $bankTransactionID ) ) {
     600                $previousTransDetails['bankTransactionID'] = $bankTransactionID;
     601            }
     602
     603            if ( $ws_type == 'WsS2S' ) { // These are only for WsS2S API
     604                $cardholderID = get_current_user_id();
     605                self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authData' );
     606                self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authMethod' );
     607                self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'authTimestamp' );
     608                self::maybe_add_user_transDetails( $previousTransDetails, $cardholderID, 'acsID' );
     609                // - @N/A - XID
     610            }
     611
     612            if ( !empty( $previousTransDetails ) ) {
     613                $params->transDetails['previousTransDetails'] = $previousTransDetails;
     614            }
    613615        }
    614616
  • gestpay-for-woocommerce/trunk/readme.txt

    r3411140 r3417521  
    55Requires PHP: 7.0
    66Tested up to  : 6.9
    7 Stable tag: 20251204   
     7Stable tag: 20251211   
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    107107  - Removed warnings about partial blocks support
    108108
     109= 20251211 =
     110* Fix: Removed PreviousTransDetails section for EC transaction type to prevent sending invalid bankTransactionID that caused failures in 3DS flow.
     111* Fix: For 01F subscription transactions, the bankTransactionID field is now nullified, as requested by Axerve/Fabrick.
     112* Improvement: Maintained correct handling of 01N scenario, which continues to use the bankTransactionID from the 01F transaction for subscription continuity.
     113
    109114= 20251110 =
    110115* Update: Compatibility information update
Note: See TracChangeset for help on using the changeset viewer.