Changeset 3443469
- Timestamp:
- 01/20/2026 05:34:42 PM (3 months ago)
- Location:
- payhere-payment-gateway
- Files:
-
- 69 added
- 3 edited
-
tags/2.4.2 (added)
-
tags/2.4.2/LICENSE.txt (added)
-
tags/2.4.2/admin (added)
-
tags/2.4.2/admin/class-payhere-custom-admin-settings-type.php (added)
-
tags/2.4.2/admin/class-payhereadmin.php (added)
-
tags/2.4.2/admin/css (added)
-
tags/2.4.2/admin/css/payhere-customer-list-settings.css (added)
-
tags/2.4.2/admin/css/payhere-ipg-admin.css (added)
-
tags/2.4.2/admin/images (added)
-
tags/2.4.2/admin/images/ajax-loader.gif (added)
-
tags/2.4.2/admin/images/cards.png (added)
-
tags/2.4.2/admin/images/favicon.png (added)
-
tags/2.4.2/admin/index.php (added)
-
tags/2.4.2/admin/js (added)
-
tags/2.4.2/admin/js/payhere-admin-capture.js (added)
-
tags/2.4.2/admin/js/payhere-ipg-admin-image-selection.js (added)
-
tags/2.4.2/admin/js/payhere-ipg-admin.js (added)
-
tags/2.4.2/admin/partials (added)
-
tags/2.4.2/admin/partials/order-auth-payment.php (added)
-
tags/2.4.2/admin/partials/plugin-payhere-ipg-display.php (added)
-
tags/2.4.2/block (added)
-
tags/2.4.2/block/class-payhere-block-loader.php (added)
-
tags/2.4.2/block/class-payhere-woocommerce-block-checkout.php (added)
-
tags/2.4.2/gateway (added)
-
tags/2.4.2/gateway/class-chargepayment.php (added)
-
tags/2.4.2/gateway/class-gatewayutilities.php (added)
-
tags/2.4.2/gateway/class-payherecapturepayment.php (added)
-
tags/2.4.2/gateway/class-payhereorderutilities.php (added)
-
tags/2.4.2/gateway/class-payheretoken.php (added)
-
tags/2.4.2/gateway/class-subscriptionrestrictions.php (added)
-
tags/2.4.2/gateway/class-wcgatewaypayhere.php (added)
-
tags/2.4.2/includes (added)
-
tags/2.4.2/includes/class-payhere-activator.php (added)
-
tags/2.4.2/includes/class-payhere-deactivator.php (added)
-
tags/2.4.2/includes/class-payhere-loader.php (added)
-
tags/2.4.2/includes/class-payhere.php (added)
-
tags/2.4.2/includes/class-phcustomerlistoptions.php (added)
-
tags/2.4.2/includes/class-phcustomerslist.php (added)
-
tags/2.4.2/includes/index.php (added)
-
tags/2.4.2/index.php (added)
-
tags/2.4.2/languages (added)
-
tags/2.4.2/languages/payhere-ipg.pot (added)
-
tags/2.4.2/payhere-payment-gateway.php (added)
-
tags/2.4.2/public (added)
-
tags/2.4.2/public/class-payhere-public.php (added)
-
tags/2.4.2/public/css (added)
-
tags/2.4.2/public/css/payhere-checkout-styles.css (added)
-
tags/2.4.2/public/css/payhere-ipg-public.css (added)
-
tags/2.4.2/public/images (added)
-
tags/2.4.2/public/images/check.svg (added)
-
tags/2.4.2/public/images/favicon.png (added)
-
tags/2.4.2/public/images/helapay.png (added)
-
tags/2.4.2/public/images/master.png (added)
-
tags/2.4.2/public/images/payhere_long_banner.png (added)
-
tags/2.4.2/public/images/visa.png (added)
-
tags/2.4.2/public/index.php (added)
-
tags/2.4.2/public/js (added)
-
tags/2.4.2/public/js/payhere-block.js (added)
-
tags/2.4.2/public/js/payhere-checkout-auth.js (added)
-
tags/2.4.2/public/js/payhere-checkout-sale.js (added)
-
tags/2.4.2/public/js/payhere-ipg-public.js (added)
-
tags/2.4.2/public/js/payhere-my-account.js (added)
-
tags/2.4.2/public/partials (added)
-
tags/2.4.2/public/partials/checkout-form-auth.php (added)
-
tags/2.4.2/public/partials/checkout-form-sale.php (added)
-
tags/2.4.2/public/partials/payhere-ipg-public-display.php (added)
-
tags/2.4.2/public/partials/remove-card.php (added)
-
tags/2.4.2/readme.txt (added)
-
tags/2.4.2/uninstall.php (added)
-
trunk/gateway/class-wcgatewaypayhere.php (modified) (2 diffs)
-
trunk/payhere-payment-gateway.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
payhere-payment-gateway/trunk/gateway/class-wcgatewaypayhere.php
r3440771 r3443469 20 20 21 21 if (!defined('ABSPATH')) { 22 exit;22 exit; 23 23 } 24 24 … … 852 852 if (('completed' !== $order->get_status() && !$is_subscription) || ($is_subscription)) { 853 853 854 if (!$verified || floatval($payhere_amount) === floatval($order_amount) || $payhere_currency === $order_currncy) { 854 $payhereAmount = number_format((float) $payhere_amount, 2, '.', ''); 855 $orderAmount = number_format((float) $order_amount, 2, '.', ''); 856 857 $payhereCurrency = strtoupper(trim($payhere_currency)); 858 $orderCurrency = strtoupper(trim($order_currncy)); 859 860 // Validate response integrity 861 $hasError = 862 !$verified || 863 $payhereAmount !== $orderAmount || 864 $payhereCurrency !== $orderCurrency; 865 866 if ($hasError) { 855 867 $this->msg['class'] = 'error'; 856 868 $this->msg['message'] = 'Security Error. Illegal access detected.'; -
payhere-payment-gateway/trunk/payhere-payment-gateway.php
r3440773 r3443469 8 8 * Plugin URI: https://www.payhere.lk 9 9 * Description: PayHere Payment Gateway allows you to accept payment on your Woocommerce store via Visa, MasterCard, AMEX, eZcash, mCash & Internet banking services. 10 * Version: 2.4. 110 * Version: 2.4.2 11 11 * Author: PayHere (Private) Limited 12 12 * Author URI: https://www.payhere.lk … … 28 28 * Start at version 2.0.0 and use SemVer - https://semver.org 29 29 */ 30 define('PAYHERE_VERSION', '2.4. 1');30 define('PAYHERE_VERSION', '2.4.2'); 31 31 /** 32 32 * Currently plugin text domain. -
payhere-payment-gateway/trunk/readme.txt
r3440773 r3443469 6 6 Tested up to: 6.9 7 7 WC tested up to: 10.4.3 8 Stable tag: 2.4. 18 Stable tag: 2.4.2 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 181 181 = 2.4.1 = 182 182 Stable tag fix. 183 184 = 2.4.2 = 185 Bug and valiidation fixes. 183 186 184 187 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.