Changeset 3301333
- Timestamp:
- 05/27/2025 10:03:29 AM (10 months ago)
- Location:
- planet-pay-payment/trunk
- Files:
-
- 9 edited
-
README.md (modified) (1 diff)
-
composer.json (modified) (1 diff)
-
planet-pay-payment.php (modified) (4 diffs)
-
src/Gateways/Block/WC_Blik_Block.php (modified) (1 diff)
-
src/Gateways/Block/WC_Card_Block.php (modified) (1 diff)
-
src/Gateways/Block/WC_Planet_Pay_Block.php (modified) (1 diff)
-
src/Gateways/Block/WC_TO_Block.php (modified) (1 diff)
-
static/scripts/blik-validation.js (modified) (1 diff)
-
static/scripts/polling_script.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
planet-pay-payment/trunk/README.md
r3294872 r3301333 4 4 Tested up to: 6.8 5 5 Requires PHP: 7.4 6 Stable tag: 5.0.1 56 Stable tag: 5.0.16 7 7 License: GPLv2 or later 8 8 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
planet-pay-payment/trunk/composer.json
r3294872 r3301333 3 3 "description": "Planet Pay payments plugin for WooCommerce", 4 4 "type": "woocommerce-plugin", 5 "version": "5.0.1 5",5 "version": "5.0.16", 6 6 "minimum-stability": "stable", 7 7 "license": "OSL-3.0", -
planet-pay-payment/trunk/planet-pay-payment.php
r3294872 r3301333 4 4 * Description: Planet Pay payments plugin for WooCommerce 5 5 * Author: Planet Pay 6 * Version: 5.0.1 56 * Version: 5.0.16 7 7 * Requires PHP: 7.4 8 8 * WC requires at least: 6.5 … … 35 35 define('PLANETPAY_PLUGIN_URL', plugin_dir_url(__FILE__)); 36 36 37 const WC_PLANET_PAY_GATEWAY_VERSION = '5.0.1 5';37 const WC_PLANET_PAY_GATEWAY_VERSION = '5.0.16'; 38 38 const WC_PLANET_PAY_GATEWAY_MIN_WC_VER = '6.5'; 39 39 const WC_PLANET_PAY_GATEWAY_PLUGIN_FILE = __FILE__; … … 117 117 $screen = get_current_screen(); 118 118 if ($screen->id === 'woocommerce_page_wc-settings') { 119 wp_enqueue_script('planetpay-admin', plugins_url('static/scripts/planetpay-admin.js', __FILE__), array('jquery'), defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.1 5', true);119 wp_enqueue_script('planetpay-admin', plugins_url('static/scripts/planetpay-admin.js', __FILE__), array('jquery'), defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.16', true); 120 120 121 121 wp_localize_script('planetpay-admin', 'planetPayParams', array( … … 130 130 } 131 131 132 wp_enqueue_style('planet-pay-admin-style', plugins_url('static/styles/planet_pay_admin.css', __FILE__), array(), defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.1 5');132 wp_enqueue_style('planet-pay-admin-style', plugins_url('static/styles/planet_pay_admin.css', __FILE__), array(), defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.16'); 133 133 } 134 134 -
planet-pay-payment/trunk/src/Gateways/Block/WC_Blik_Block.php
r3294872 r3301333 39 39 'wp-i18n', 40 40 ], 41 defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.1 5',41 defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.16', 42 42 true 43 43 ); -
planet-pay-payment/trunk/src/Gateways/Block/WC_Card_Block.php
r3294872 r3301333 38 38 'wp-i18n', 39 39 ], 40 defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.1 5',40 defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.16', 41 41 true 42 42 ); -
planet-pay-payment/trunk/src/Gateways/Block/WC_Planet_Pay_Block.php
r3294872 r3301333 37 37 'wp-i18n', 38 38 ], 39 defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.1 5',39 defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.16', 40 40 true 41 41 ); -
planet-pay-payment/trunk/src/Gateways/Block/WC_TO_Block.php
r3294872 r3301333 38 38 'wp-i18n', 39 39 ], 40 defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.1 5',40 defined('WC_PLANET_PAY_VERSION') ? WC_PLANET_PAY_GATEWAY_VERSION : '5.0.16', 41 41 true 42 42 ); -
planet-pay-payment/trunk/static/scripts/blik-validation.js
r3289584 r3301333 1 document.getElementById("blik_code").addEventListener("keydown", function (event) { 2 if (event.ctrlKey || event.altKey || typeof event.key !== "string" || event.key.length !== 1) { 3 return; 4 } 5 const regex = /^[0-9]+$/; 6 if (!regex.test(event.key)) { 7 event.preventDefault(); 1 document.addEventListener("DOMContentLoaded", function () { 2 const blikInput = document.getElementById("blik_code"); 3 4 if (blikInput) { 5 blikInput.addEventListener("keydown", function (event) { 6 if (event.ctrlKey || event.altKey || typeof event.key !== "string" || event.key.length !== 1) { 7 return; 8 } 9 10 const regex = /^[0-9]+$/; 11 if (!regex.test(event.key)) { 12 event.preventDefault(); 13 } 14 }); 8 15 } 9 16 }); -
planet-pay-payment/trunk/static/scripts/polling_script.js
r3289584 r3301333 159 159 resetBlikProcess(); 160 160 }); 161 setupBlikHandlers(); 162 161 initializeCheckoutButtons(); 163 162 });
Note: See TracChangeset
for help on using the changeset viewer.