Changeset 3472936
- Timestamp:
- 03/02/2026 05:03:53 PM (4 weeks ago)
- Location:
- quantapay-payment/trunk
- Files:
-
- 23 edited
-
languages/quantapay-payment-de_DE.mo (modified) (previous)
-
languages/quantapay-payment-de_DE.po (modified) (1 diff)
-
languages/quantapay-payment-en_US.mo (modified) (previous)
-
languages/quantapay-payment-en_US.po (modified) (1 diff)
-
languages/quantapay-payment-es_ES.mo (modified) (previous)
-
languages/quantapay-payment-es_ES.po (modified) (1 diff)
-
languages/quantapay-payment-fr_FR.mo (modified) (previous)
-
languages/quantapay-payment-fr_FR.po (modified) (1 diff)
-
languages/quantapay-payment-ja.mo (modified) (previous)
-
languages/quantapay-payment-ja.po (modified) (1 diff)
-
languages/quantapay-payment-ja_JP.mo (modified) (previous)
-
languages/quantapay-payment-ja_JP.po (modified) (1 diff)
-
languages/quantapay-payment-ko_KR.mo (modified) (previous)
-
languages/quantapay-payment-ko_KR.po (modified) (1 diff)
-
languages/quantapay-payment-pt_BR.mo (modified) (previous)
-
languages/quantapay-payment-pt_BR.po (modified) (1 diff)
-
languages/quantapay-payment-ru_RU.mo (modified) (previous)
-
languages/quantapay-payment-ru_RU.po (modified) (1 diff)
-
languages/quantapay-payment-zh_CN.mo (modified) (previous)
-
languages/quantapay-payment-zh_CN.po (modified) (1 diff)
-
languages/quantapay-payment.pot (modified) (1 diff)
-
quantapay-payment.php (modified) (6 diffs)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
quantapay-payment/trunk/languages/quantapay-payment-de_DE.po
r3436899 r3472936 81 81 82 82 #: index.php:496 83 msgid "Canceled"84 msgstr ""85 86 #: index.php:49787 83 msgid "Underpaid" 88 msgstr " "84 msgstr "Unterbezahlt" 89 85 90 86 #: index.php:498 -
quantapay-payment/trunk/languages/quantapay-payment-en_US.po
r3436899 r3472936 83 83 84 84 #: index.php:496 85 msgid "Canceled"86 msgstr "Canceled"87 88 #: index.php:49789 85 msgid "Underpaid" 90 86 msgstr "Underpaid" -
quantapay-payment/trunk/languages/quantapay-payment-es_ES.po
r3436899 r3472936 86 86 87 87 #: index.php:496 88 msgid "Canceled"89 msgstr "Cancelado"90 91 #: index.php:49792 88 msgid "Underpaid" 93 89 msgstr "Pagado de menos" -
quantapay-payment/trunk/languages/quantapay-payment-fr_FR.po
r3436899 r3472936 87 87 88 88 #: index.php:496 89 msgid "Canceled"90 msgstr "Annulé"91 92 #: index.php:49793 89 msgid "Underpaid" 94 90 msgstr "Sous-payé" -
quantapay-payment/trunk/languages/quantapay-payment-ja.po
r3436899 r3472936 83 83 84 84 #: index.php:496 85 msgid "Canceled"86 msgstr "キャンセル済み"87 88 #: index.php:49789 85 msgid "Underpaid" 90 86 msgstr "支払い不足" -
quantapay-payment/trunk/languages/quantapay-payment-ja_JP.po
r3436899 r3472936 83 83 84 84 #: index.php:496 85 msgid "Canceled"86 msgstr "キャンセル済み"87 88 #: index.php:49789 85 msgid "Underpaid" 90 86 msgstr "支払い不足" -
quantapay-payment/trunk/languages/quantapay-payment-ko_KR.po
r3436899 r3472936 82 82 83 83 #: index.php:496 84 msgid "Canceled"85 msgstr "취소됨"86 87 #: index.php:49788 84 msgid "Underpaid" 89 85 msgstr "금액 부족" -
quantapay-payment/trunk/languages/quantapay-payment-pt_BR.po
r3436899 r3472936 87 87 88 88 #: index.php:496 89 msgid "Canceled"90 msgstr "Cancelado"91 92 #: index.php:49793 89 msgid "Underpaid" 94 90 msgstr "Pago parcialmente" -
quantapay-payment/trunk/languages/quantapay-payment-ru_RU.po
r3436899 r3472936 85 85 86 86 #: index.php:496 87 msgid "Canceled"88 msgstr "Отменено"89 90 #: index.php:49791 87 msgid "Underpaid" 92 88 msgstr "Недоплата" -
quantapay-payment/trunk/languages/quantapay-payment-zh_CN.po
r3436899 r3472936 80 80 81 81 #: index.php:496 82 msgid "Canceled"83 msgstr "已取消"84 85 #: index.php:49786 82 msgid "Underpaid" 87 83 msgstr "支付不足" -
quantapay-payment/trunk/languages/quantapay-payment.pot
r3436899 r3472936 81 81 82 82 #: index.php:496 83 msgid "Canceled"84 msgstr ""85 86 #: index.php:49787 83 msgid "Underpaid" 88 84 msgstr "" -
quantapay-payment/trunk/quantapay-payment.php
r3469556 r3472936 6 6 * Plugin URI: https://quantapay.app/wordpress-plugin 7 7 * Description: Accept cryptocurrency payments via QuantaPay 8 * Version: 1.1. 08 * Version: 1.1.1 9 9 * Author: QuantaPay 10 10 * Author URI: https://quantapay.app/ … … 226 226 $order = wc_get_order($order_id); 227 227 $order->update_status('pending'); 228 wc_reduce_stock_levels($order_id);229 228 230 229 $order_total = $order->get_total(); … … 492 491 493 492 function quantapay_get_wp_settings() { 493 static $cache = null; 494 if ($cache !== null) { 495 return $cache; 496 } 494 497 $settings = get_option(QUANTAPAY_SETTINGS_OPTION); 495 498 if (is_string($settings)) { 496 499 $settings = json_decode($settings, true); 497 500 } 498 return is_array($settings) ? $settings : []; 501 $cache = is_array($settings) ? $settings : []; 502 return $cache; 499 503 } 500 504 … … 560 564 return; 561 565 } 566 567 // .htaccess 保护:禁止浏览器直接访问日志文件 568 $htaccess = $log_dir . '.htaccess'; 569 if (!file_exists($htaccess)) { 570 @file_put_contents($htaccess, "deny from all\n"); 571 } 572 562 573 $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 563 580 $prepared = quantapay_prepare_log_value($message); 564 581 $entry = '[' . current_time('mysql') . '] ' . (is_scalar($prepared) ? $prepared : wp_json_encode($prepared)) . PHP_EOL; … … 811 828 'C' => __('Completed', 'quantapay-payment'), 812 829 'P' => __('Pending', 'quantapay-payment'), 813 'X' => __('Canceled', 'quantapay-payment'), 814 'U' => __('Underpaid', 'quantapay-payment'), 830 'X' => __('Underpaid', 'quantapay-payment'), 815 831 'R' => __('Refunded', 'quantapay-payment'), 816 832 ]; … … 974 990 'sanitize' => 'url', 975 991 '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'), 977 993 ], 978 994 ], -
quantapay-payment/trunk/readme.txt
r3469556 r3472936 4 4 Requires at least: 5.8 5 5 Tested up to: 6.9.1 6 Stable tag: 1.1. 06 Stable tag: 1.1.1 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 90 90 == Changelog == 91 91 92 = 1.1.1 = 93 * Fix transaction status labels and stock handling. 94 * Improve settings caching and log file management. 95 92 96 = 1.1.0 = 93 97 * Checkout Session API – cleaner, shorter payment URLs with automatic fallback. … … 104 108 == Upgrade Notice == 105 109 110 = 1.1.1 = 111 Bug fixes and reliability improvements. Recommended for all users. 112 106 113 = 1.1.0 = 107 114 Checkout 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.