Plugin Directory

Changeset 3446618


Ignore:
Timestamp:
01/25/2026 05:18:13 PM (2 months ago)
Author:
tripleatechnology
Message:

Version 2.0.25 - Fixed client secret preservation bug when saving settings from non-Account tabs

Location:
triplea-cryptocurrency-payment-gateway-for-woocommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • triplea-cryptocurrency-payment-gateway-for-woocommerce/trunk/includes/WooCommerce/views/triplea_options.php

    r3446589 r3446618  
    108108                </div>
    109109                <?php else: ?>
     110                <!-- Encryption key is configured, show credentials form -->
    110111                <div class="triplea-settings-notice" style="background-color:#d4edda;border-left:4px solid #28a745;padding:15px;margin-bottom:20px;">
    111112                    <p style="margin:0;color:#155724;"><strong>&#10004; <?php _e('Encryption Key Configured', 'wc-triplea-crypto-payment'); ?></strong> - <?php _e('Your wp-config.php encryption key is set up correctly.', 'wc-triplea-crypto-payment'); ?></p>
    112113                </div>
    113                 <?php endif; ?>
    114114
    115115                <div class="triplea-settings-notice">
     
    155155                <input type="hidden" name="oAuthToken" id="oAuthToken">
    156156                <input type="hidden" name="oAuthTokenExpiry" id="oAuthTokenExpiry">
     157                <?php endif; ?>
    157158            </div>
    158159            <div id="settings" class="tab-content">
     
    224225                <p>Payment not guaranteed yet at this stage! Do not yet provide the product or service.</p>
    225226                <?php endif; ?>
    226                 <?php endforeach; ?>
     227                <?php endforeach; ?>
    227228            </div>
    228229            <div id="account-verification" class="tab-content">
     
    349350            $('#woocommerce_triplea_payment_gateway_merchant_key').val(merchantKey);
    350351            $('#woocommerce_triplea_payment_gateway_client_id').val(clientID);
    351             $('#woocommerce_triplea_payment_gateway_client_secret').val(clientSecret);
     352
     353            // Only update client_secret if user entered a new value (not empty)
     354            // This prevents overwriting existing encrypted secret when saving from other tabs
     355            if (clientSecret && clientSecret.trim() !== '') {
     356                $('#woocommerce_triplea_payment_gateway_client_secret').val(clientSecret);
     357            }
    352358
    353359            //Second Tab options save
  • triplea-cryptocurrency-payment-gateway-for-woocommerce/trunk/readme.txt

    r3446589 r3446618  
    77Requires at least: 5.5
    88Tested up to: 6.6.2
    9 Stable tag: 2.0.24
     9Stable tag: 2.0.25
    1010Requires PHP: 7.0
    1111License: GPLv2 or later
     
    104104== Changelog ==
    105105
     106= 2.0.25 =
     107* Fixed: Client secret no longer gets erased when saving settings from non-Account tabs
     108
    106109= 2.0.24 =
    107110* Security: Custom encryption key system (TRIPLEA_ENCRYPTION_KEY in wp-config.php)
  • triplea-cryptocurrency-payment-gateway-for-woocommerce/trunk/triplea-cryptocurrency-payment-gateway-for-woocommerce.php

    r3446589 r3446618  
    1717 * Plugin URI:        https://wordpress.org/plugins/triplea-cryptocurrency-payment-gateway-for-woocommerce/
    1818 * Description:       Offer cryptocurrency as a payment option on your website and get access to even more clients. Receive payments in cryptocurrency or in your local currency, directly in your bank account. Enjoy an easy setup, no cryptocurrency expertise required. Powered by Triple-A.
    19  * Version:           2.0.24
     19 * Version:           2.0.25
    2020 * Author:            Triple-A Team
    2121 * Author URI:        https://triple-a.io
     
    4949     * $var string
    5050     */
    51     public const version = '2.0.24';
     51    public const version = '2.0.25';
    5252
    5353    /*
Note: See TracChangeset for help on using the changeset viewer.