Plugin Directory

Changeset 3178173


Ignore:
Timestamp:
10/29/2024 03:45:07 PM (17 months ago)
Author:
trustist
Message:

Bug saving Woocommerce settings

Location:
trustistecommerce/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trustistecommerce/trunk/includes/woocommerce/TrustistPaymentsWC.php

    r3131773 r3178173  
    2020        $this->description = $this->get_option('description');
    2121        $this->enabled = $this->get_option('enabled');
    22         $this->testmode = 'yes' === $this->get_option('testmode');
    23 
    24         $testmode = 'yes' === $this->settings['testmode'];
     22        $this->testmode = $this->get_option('testmode');
     23
     24        $testmode = 'yes' === $this->testmode;
    2525        $cards_enabled = $testmode ? get_option("trustist_payments_sandbox_cards_enabled") : get_option("trustist_payments_cards_enabled");
    2626        $icon = TRUSTISTPLUGIN_URL . ($cards_enabled ? 'img/Trustist-all-payment-methods_full.png' : 'img/Trustist-star-icon-150x150.png');
     
    2828
    2929        add_action('woocommerce_api_' . $this->id, array($this, 'trustist_payments_process_response'));
     30        add_action('woocommerce_update_options_payment_gateways_' . $this->id, array( $this, 'process_admin_options' ) );
    3031    }
    3132
     
    208209    private function is_testmode()
    209210    {
    210         return 'yes' === (string) $this->get_option('testmode') ? true : false;
     211        return 'yes' === $this->testmode;
    211212    }
    212213
  • trustistecommerce/trunk/readme.txt

    r3178082 r3178173  
    44Requires at least: 5.4
    55Tested up to: 6.5
    6 Stable tag: 1.0.3
     6Stable tag: 1.0.4
    77Requires PHP: 7.2
    88License: GPLv2
  • trustistecommerce/trunk/trustist-ecommerce.php

    r3178082 r3178173  
    44Plugin URI: https://www.trustistecommerce.com
    55Description: Take Open Banking or credit card payments in the UK using TrustistEcommerce.
    6 Version: 1.0.3
     6Version: 1.0.4
    77Author: Trustist
    88Author URI: https://www.trustist.com
     
    1212defined( 'ABSPATH' ) or die();
    1313
    14 \define('TRUSTISTPLUGIN_VERSION', '1.0.3');
     14\define('TRUSTISTPLUGIN_VERSION', '1.0.4');
    1515\define('TRUSTISTPLUGIN_SLUG', 'trustistecommerce');
    1616\define('TRUSTISTPLUGIN_NAME', 'TrustistEcommerce');
Note: See TracChangeset for help on using the changeset viewer.