Plugin Directory

Changeset 3144253


Ignore:
Timestamp:
08/30/2024 11:16:37 AM (19 months ago)
Author:
ecommpay
Message:

new version 3.4.6

Location:
ecommpay-payments/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • ecommpay-payments/trunk/common/class-ecp-core.php

    r3139550 r3144253  
    4343     * @since 2.0.0
    4444     */
    45     const WC_ECP_VERSION = '3.4.5';
     45    const WC_ECP_VERSION = '3.4.6';
    4646    // endregion
    4747
  • ecommpay-payments/trunk/common/includes/class-ecp-gateway-order.php

    r3054258 r3144253  
    611611        return in_array($state, $allowed_states[$action]);
    612612    }
     613
     614    public function needs_processing()
     615    {
     616        if (ecp_is_enabled(Ecp_Gateway_Settings_General::OPTION_AUTO_COMPETE_ORDER)) {
     617            return false;
     618        }
     619        return parent::needs_processing();
     620    }
    613621}
  • ecommpay-payments/trunk/common/settings/class-ecp-gateway-settings-general.php

    r3054258 r3144253  
    2323    const OPTION_LOG_LEVEL = 'log_level';
    2424    const OPTION_TRANSACTION_INFO = 'orders_transaction_info';
     25    const OPTION_AUTO_COMPETE_ORDER = 'complete_order';
    2526    const OPTION_CUSTOM_VARIABLES = 'custom_variables';
    2627
     
    246247            ],
    247248            [
     249                self::FIELD_ID => self::OPTION_AUTO_COMPETE_ORDER,
     250                self::FIELD_TITLE => _x('Сomplete order automatically', 'Settings shop admin setup', 'woo-ecommpay'),
     251                self::FIELD_TYPE => self::TYPE_CHECKBOX,
     252                self::FIELD_DESC => _x(
     253                    'Enable',
     254                    'Settings shop admin setup',
     255                    'woo-ecommpay'
     256                ),
     257                self::FIELD_TIP => _x(
     258                    'Automatically complete the order in case of successful payment. Otherwise, the order will be in the Processing status.',
     259                    'Settings shop admin setup',
     260                    'woo-ecommpay'
     261                ),
     262                self::FIELD_DEFAULT => self::NO,
     263            ],
     264            [
    248265                self::FIELD_ID => self::ADMIN_OPTIONS,
    249266                self::FIELD_TYPE => self::TYPE_END,
  • ecommpay-payments/trunk/gateway-ecommpay.php

    r3139550 r3144253  
    55 * GitHub Plugin URI:
    66 * Description:       Easy payment from WooCommerce by different methods in single Payment Page.
    7  * Version:           3.4.5
     7 * Version:           3.4.6
    88 * License:           GPL2
    99 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
  • ecommpay-payments/trunk/readme.txt

    r3139550 r3144253  
    44Requires at least: 4.0.0
    55Tested up to: 6.4
    6 Stable tag: 3.4.5
     6Stable tag: 3.4.6
    77License: GPLv2
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.