Plugin Directory

Changeset 3472936


Ignore:
Timestamp:
03/02/2026 05:03:53 PM (4 weeks ago)
Author:
quantapay
Message:

v1.1.1: Fix transaction status labels, remove premature stock reduction, add settings cache, log protection and rotation

Location:
quantapay-payment/trunk
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • quantapay-payment/trunk/languages/quantapay-payment-de_DE.po

    r3436899 r3472936  
    8181
    8282#: index.php:496
    83 msgid "Canceled"
    84 msgstr ""
    85 
    86 #: index.php:497
    8783msgid "Underpaid"
    88 msgstr ""
     84msgstr "Unterbezahlt"
    8985
    9086#: index.php:498
  • quantapay-payment/trunk/languages/quantapay-payment-en_US.po

    r3436899 r3472936  
    8383
    8484#: index.php:496
    85 msgid "Canceled"
    86 msgstr "Canceled"
    87 
    88 #: index.php:497
    8985msgid "Underpaid"
    9086msgstr "Underpaid"
  • quantapay-payment/trunk/languages/quantapay-payment-es_ES.po

    r3436899 r3472936  
    8686
    8787#: index.php:496
    88 msgid "Canceled"
    89 msgstr "Cancelado"
    90 
    91 #: index.php:497
    9288msgid "Underpaid"
    9389msgstr "Pagado de menos"
  • quantapay-payment/trunk/languages/quantapay-payment-fr_FR.po

    r3436899 r3472936  
    8787
    8888#: index.php:496
    89 msgid "Canceled"
    90 msgstr "Annulé"
    91 
    92 #: index.php:497
    9389msgid "Underpaid"
    9490msgstr "Sous-payé"
  • quantapay-payment/trunk/languages/quantapay-payment-ja.po

    r3436899 r3472936  
    8383
    8484#: index.php:496
    85 msgid "Canceled"
    86 msgstr "キャンセル済み"
    87 
    88 #: index.php:497
    8985msgid "Underpaid"
    9086msgstr "支払い不足"
  • quantapay-payment/trunk/languages/quantapay-payment-ja_JP.po

    r3436899 r3472936  
    8383
    8484#: index.php:496
    85 msgid "Canceled"
    86 msgstr "キャンセル済み"
    87 
    88 #: index.php:497
    8985msgid "Underpaid"
    9086msgstr "支払い不足"
  • quantapay-payment/trunk/languages/quantapay-payment-ko_KR.po

    r3436899 r3472936  
    8282
    8383#: index.php:496
    84 msgid "Canceled"
    85 msgstr "취소됨"
    86 
    87 #: index.php:497
    8884msgid "Underpaid"
    8985msgstr "금액 부족"
  • quantapay-payment/trunk/languages/quantapay-payment-pt_BR.po

    r3436899 r3472936  
    8787
    8888#: index.php:496
    89 msgid "Canceled"
    90 msgstr "Cancelado"
    91 
    92 #: index.php:497
    9389msgid "Underpaid"
    9490msgstr "Pago parcialmente"
  • quantapay-payment/trunk/languages/quantapay-payment-ru_RU.po

    r3436899 r3472936  
    8585
    8686#: index.php:496
    87 msgid "Canceled"
    88 msgstr "Отменено"
    89 
    90 #: index.php:497
    9187msgid "Underpaid"
    9288msgstr "Недоплата"
  • quantapay-payment/trunk/languages/quantapay-payment-zh_CN.po

    r3436899 r3472936  
    8080
    8181#: index.php:496
    82 msgid "Canceled"
    83 msgstr "已取消"
    84 
    85 #: index.php:497
    8682msgid "Underpaid"
    8783msgstr "支付不足"
  • quantapay-payment/trunk/languages/quantapay-payment.pot

    r3436899 r3472936  
    8181
    8282#: index.php:496
    83 msgid "Canceled"
    84 msgstr ""
    85 
    86 #: index.php:497
    8783msgid "Underpaid"
    8884msgstr ""
  • quantapay-payment/trunk/quantapay-payment.php

    r3469556 r3472936  
    66 * Plugin URI: https://quantapay.app/wordpress-plugin
    77 * Description: Accept cryptocurrency payments via QuantaPay
    8  * Version: 1.1.0
     8 * Version: 1.1.1
    99 * Author: QuantaPay
    1010 * Author URI: https://quantapay.app/
     
    226226                $order = wc_get_order($order_id);
    227227                $order->update_status('pending');
    228                 wc_reduce_stock_levels($order_id);
    229228
    230229                $order_total = $order->get_total();
     
    492491
    493492function quantapay_get_wp_settings() {
     493    static $cache = null;
     494    if ($cache !== null) {
     495        return $cache;
     496    }
    494497    $settings = get_option(QUANTAPAY_SETTINGS_OPTION);
    495498    if (is_string($settings)) {
    496499        $settings = json_decode($settings, true);
    497500    }
    498     return is_array($settings) ? $settings : [];
     501    $cache = is_array($settings) ? $settings : [];
     502    return $cache;
    499503}
    500504
     
    560564        return;
    561565    }
     566
     567    // .htaccess 保护:禁止浏览器直接访问日志文件
     568    $htaccess = $log_dir . '.htaccess';
     569    if (!file_exists($htaccess)) {
     570        @file_put_contents($htaccess, "deny from all\n");
     571    }
     572
    562573    $log_file = $log_dir . 'quantapay-debug.log';
     574
     575    // 5MB 自动轮转:超限时将旧日志重命名,开始新文件
     576    if (file_exists($log_file) && @filesize($log_file) > 5 * 1024 * 1024) {
     577        @rename($log_file, $log_dir . 'quantapay-debug-' . gmdate('Ymd-His') . '.log');
     578    }
     579
    563580    $prepared = quantapay_prepare_log_value($message);
    564581    $entry = '[' . current_time('mysql') . '] ' . (is_scalar($prepared) ? $prepared : wp_json_encode($prepared)) . PHP_EOL;
     
    811828        'C' => __('Completed', 'quantapay-payment'),
    812829        'P' => __('Pending', 'quantapay-payment'),
    813         'X' => __('Canceled', 'quantapay-payment'),
    814         'U' => __('Underpaid', 'quantapay-payment'),
     830        'X' => __('Underpaid', 'quantapay-payment'),
    815831        'R' => __('Refunded', 'quantapay-payment'),
    816832    ];
     
    974990                    'sanitize' => 'url',
    975991                    'placeholder' => 'https://example.com/thank-you',
    976                     'note' => __('Send customers to a thank-you or account page after the payment succeeds.', 'quantapay-payment'),
     992                    'note' => __('WooCommerce orders automatically redirect to the order-received page. This field is only used for standalone Cloud payment links and invoices.', 'quantapay-payment'),
    977993                ],
    978994            ],
  • quantapay-payment/trunk/readme.txt

    r3469556 r3472936  
    44Requires at least: 5.8
    55Tested up to: 6.9.1
    6 Stable tag: 1.1.0
     6Stable tag: 1.1.1
    77Requires PHP: 7.4
    88License: GPLv2 or later
     
    9090== Changelog ==
    9191
     92= 1.1.1 =
     93* Fix transaction status labels and stock handling.
     94* Improve settings caching and log file management.
     95
    9296= 1.1.0 =
    9397* Checkout Session API – cleaner, shorter payment URLs with automatic fallback.
     
    104108== Upgrade Notice ==
    105109
     110= 1.1.1 =
     111Bug fixes and reliability improvements. Recommended for all users.
     112
    106113= 1.1.0 =
    107114Checkout Session API for cleaner payment URLs, top-level admin menu, and a webhook crash fix. Recommended update for all users.
Note: See TracChangeset for help on using the changeset viewer.