Plugin Directory

Changeset 3186510


Ignore:
Timestamp:
11/12/2024 12:43:18 PM (17 months ago)
Author:
monobank
Message:

Version 1.8.5

Location:
mono-checkout
Files:
4 edited
22 copied

Legend:

Unmodified
Added
Removed
  • mono-checkout/tags/1.8.5/includes/MonoApi.php

    r3047124 r3186510  
    2222            'Content-Type: application/json',
    2323            'X-Token: ' . $token,
     24            'X-CMS: WordPress',
    2425        ];
    2526        if (extension_loaded("curl")) {
  • mono-checkout/tags/1.8.5/includes/class.gateway.php

    r3129281 r3186510  
    221221                'type' => 'text',
    222222                'description' => __( 'Prepended to order numbers to distinguish between different stores.', 'mono-checkout' ),
    223                 'default' => $this->get_default_order_prefix(),
     223                'default' => '',
    224224                'desc_tip'      => false,
    225225            ),
     
    536536
    537537    protected function get_order_ref( $order_id ) {
    538         $prefix = $this->get_option('order_prefix') ?: $this->get_default_order_prefix();
    539         return $prefix . '-' . $order_id;
     538        $prefix = $this->get_option('order_prefix');
     539        return ($prefix ? ($prefix . '-') : '') . $order_id;
    540540    }
    541541
     
    580580        $payment_methods = $this->get_option('payment_methods');
    581581        $payments_number = $this->get_option('payments_number');
    582         $prefix = $this->get_option('order_prefix') ?: $this->get_default_order_prefix();
    583582
    584583        $request = [
  • mono-checkout/tags/1.8.5/mono.php

    r3169137 r3186510  
    77Plugin URI: https://checkout.mono.bank/woocomerce
    88Description: модуль Чекауту від monobank це спосіб автоматизувати процес оформлення покупки на вашому сайті. Доступний функціонал: предзаповнення даних отримувача, рекомендації по доставці та оплаті, всі доступні способи оплати від monobank: еквайринг, Покупка частинами та оплата при отриманні. Має бути підключений інтернет-еквайринг від monobank
    9 Version: 1.8.4
     9Version: 1.8.5
    1010Requires at least: 5.8
    1111Requires PHP: 7.4
     
    1818if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    1919
    20 define( 'MONO_VERSION', '1.8.4' );
     20define( 'MONO_VERSION', '1.8.5' );
    2121define( 'MONO__MINIMUM_WP_VERSION', '5.8' );
    2222define( 'MONO__PLUGIN_FILE', __FILE__ );
  • mono-checkout/tags/1.8.5/readme.txt

    r3169137 r3186510  
    44Requires at least: 5.8
    55Tested up to: 6.4
    6 Stable tag: 1.8.4
     6Stable tag: 1.8.5
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    5454
    5555== Changelog ==
     56
     57= 1.8.5 =
     58* Дозволено відключати префікс номеру замовлення.
     59* Оновлено параметри з'єднання з API
    5660
    5761= 1.8.4 =
  • mono-checkout/trunk/includes/MonoApi.php

    r3047124 r3186510  
    2222            'Content-Type: application/json',
    2323            'X-Token: ' . $token,
     24            'X-CMS: WordPress',
    2425        ];
    2526        if (extension_loaded("curl")) {
  • mono-checkout/trunk/includes/class.gateway.php

    r3129281 r3186510  
    221221                'type' => 'text',
    222222                'description' => __( 'Prepended to order numbers to distinguish between different stores.', 'mono-checkout' ),
    223                 'default' => $this->get_default_order_prefix(),
     223                'default' => '',
    224224                'desc_tip'      => false,
    225225            ),
     
    536536
    537537    protected function get_order_ref( $order_id ) {
    538         $prefix = $this->get_option('order_prefix') ?: $this->get_default_order_prefix();
    539         return $prefix . '-' . $order_id;
     538        $prefix = $this->get_option('order_prefix');
     539        return ($prefix ? ($prefix . '-') : '') . $order_id;
    540540    }
    541541
     
    580580        $payment_methods = $this->get_option('payment_methods');
    581581        $payments_number = $this->get_option('payments_number');
    582         $prefix = $this->get_option('order_prefix') ?: $this->get_default_order_prefix();
    583582
    584583        $request = [
  • mono-checkout/trunk/mono.php

    r3169137 r3186510  
    77Plugin URI: https://checkout.mono.bank/woocomerce
    88Description: модуль Чекауту від monobank це спосіб автоматизувати процес оформлення покупки на вашому сайті. Доступний функціонал: предзаповнення даних отримувача, рекомендації по доставці та оплаті, всі доступні способи оплати від monobank: еквайринг, Покупка частинами та оплата при отриманні. Має бути підключений інтернет-еквайринг від monobank
    9 Version: 1.8.4
     9Version: 1.8.5
    1010Requires at least: 5.8
    1111Requires PHP: 7.4
     
    1818if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    1919
    20 define( 'MONO_VERSION', '1.8.4' );
     20define( 'MONO_VERSION', '1.8.5' );
    2121define( 'MONO__MINIMUM_WP_VERSION', '5.8' );
    2222define( 'MONO__PLUGIN_FILE', __FILE__ );
  • mono-checkout/trunk/readme.txt

    r3169137 r3186510  
    44Requires at least: 5.8
    55Tested up to: 6.4
    6 Stable tag: 1.8.4
     6Stable tag: 1.8.5
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    5454
    5555== Changelog ==
     56
     57= 1.8.5 =
     58* Дозволено відключати префікс номеру замовлення.
     59* Оновлено параметри з'єднання з API
    5660
    5761= 1.8.4 =
Note: See TracChangeset for help on using the changeset viewer.