Changeset 3216301
- Timestamp:
- 01/03/2025 08:11:20 AM (15 months ago)
- Location:
- payhere-payment-gateway-beta
- Files:
-
- 80 added
- 4 edited
-
assets/banner-772x250.png (added)
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
assets/screenshot-1.png (added)
-
assets/screenshot-2.png (added)
-
assets/screenshot-3.png (added)
-
assets/screenshot-4.png (added)
-
assets/screenshot-5.png (added)
-
assets/screenshot-6.png (added)
-
assets/screenshot-7.png (added)
-
tags/2.4.0 (added)
-
tags/2.4.0/LICENSE.txt (added)
-
tags/2.4.0/admin (added)
-
tags/2.4.0/admin/class-payhere-custom-admin-settings-type.php (added)
-
tags/2.4.0/admin/class-payhereadmin.php (added)
-
tags/2.4.0/admin/css (added)
-
tags/2.4.0/admin/css/payhere-customer-list-settings.css (added)
-
tags/2.4.0/admin/css/payhere-ipg-admin.css (added)
-
tags/2.4.0/admin/images (added)
-
tags/2.4.0/admin/images/ajax-loader.gif (added)
-
tags/2.4.0/admin/images/cards.png (added)
-
tags/2.4.0/admin/images/favicon.png (added)
-
tags/2.4.0/admin/index.php (added)
-
tags/2.4.0/admin/js (added)
-
tags/2.4.0/admin/js/payhere-admin-capture.js (added)
-
tags/2.4.0/admin/js/payhere-ipg-admin-image-selection.js (added)
-
tags/2.4.0/admin/js/payhere-ipg-admin.js (added)
-
tags/2.4.0/admin/partials (added)
-
tags/2.4.0/admin/partials/order-auth-payment.php (added)
-
tags/2.4.0/admin/partials/plugin-payhere-ipg-display.php (added)
-
tags/2.4.0/block (added)
-
tags/2.4.0/block/class-payhere-block-loader.php (added)
-
tags/2.4.0/block/class-payhere-woocommerce-block-checkout.php (added)
-
tags/2.4.0/gateway (added)
-
tags/2.4.0/gateway/class-chargepayment.php (added)
-
tags/2.4.0/gateway/class-gatewayutilities.php (added)
-
tags/2.4.0/gateway/class-payherecapturepayment.php (added)
-
tags/2.4.0/gateway/class-payhereorderutilities.php (added)
-
tags/2.4.0/gateway/class-payheretoken.php (added)
-
tags/2.4.0/gateway/class-subscriptionrestrictions.php (added)
-
tags/2.4.0/gateway/class-wcgatewaypayhere.php (added)
-
tags/2.4.0/includes (added)
-
tags/2.4.0/includes/class-payhere-activator.php (added)
-
tags/2.4.0/includes/class-payhere-deactivator.php (added)
-
tags/2.4.0/includes/class-payhere-i18n.php (added)
-
tags/2.4.0/includes/class-payhere-loader.php (added)
-
tags/2.4.0/includes/class-payhere.php (added)
-
tags/2.4.0/includes/class-phcustomerlistoptions.php (added)
-
tags/2.4.0/includes/class-phcustomerslist.php (added)
-
tags/2.4.0/includes/index.php (added)
-
tags/2.4.0/index.php (added)
-
tags/2.4.0/languages (added)
-
tags/2.4.0/languages/payhere-ipg.pot (added)
-
tags/2.4.0/payhere-payment-gateway-beta.php (added)
-
tags/2.4.0/public (added)
-
tags/2.4.0/public/class-payhere-public.php (added)
-
tags/2.4.0/public/css (added)
-
tags/2.4.0/public/css/payhere-checkout-styles.css (added)
-
tags/2.4.0/public/css/payhere-ipg-public.css (added)
-
tags/2.4.0/public/images (added)
-
tags/2.4.0/public/images/check.svg (added)
-
tags/2.4.0/public/images/favicon.png (added)
-
tags/2.4.0/public/images/helapay.png (added)
-
tags/2.4.0/public/images/master.png (added)
-
tags/2.4.0/public/images/payhere_long_banner.png (added)
-
tags/2.4.0/public/images/visa.png (added)
-
tags/2.4.0/public/index.php (added)
-
tags/2.4.0/public/js (added)
-
tags/2.4.0/public/js/payhere-block.js (added)
-
tags/2.4.0/public/js/payhere-checkout-auth.js (added)
-
tags/2.4.0/public/js/payhere-checkout-sale.js (added)
-
tags/2.4.0/public/js/payhere-ipg-public.js (added)
-
tags/2.4.0/public/js/payhere-my-account.js (added)
-
tags/2.4.0/public/partials (added)
-
tags/2.4.0/public/partials/checkout-form-auth.php (added)
-
tags/2.4.0/public/partials/checkout-form-sale.php (added)
-
tags/2.4.0/public/partials/payhere-ipg-public-display.php (added)
-
tags/2.4.0/public/partials/remove-card.php (added)
-
tags/2.4.0/readme.txt (added)
-
tags/2.4.0/uninstall.php (added)
-
trunk/gateway/class-payhereorderutilities.php (modified) (1 diff)
-
trunk/gateway/class-wcgatewaypayhere.php (modified) (1 diff)
-
trunk/payhere-payment-gateway-beta.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
payhere-payment-gateway-beta/trunk/gateway/class-payhereorderutilities.php
r3216236 r3216301 115 115 $this->order->add_order_note( 'PayHere payment successful.<br/>PayHere Payment ID: ' . $payment_id ); 116 116 117 if ($post['captured_amount'] != $post['payhere_amount']){ 118 119 $discount_amount = $post['payhere_amount'] - $post['captured_amount']; 120 121 $item = new WC_Order_Item_Fee(); 122 $item->set_name(__('PayHere Payment Gateway Discount', 'payhere')); 123 $item->set_amount(-$discount_amount); 124 $item->set_total(-$discount_amount); 125 $this->order->add_item($item); 126 $this->order->set_total($this->order->get_total() - $discount_amount); 127 $this->order->save(); 128 } 129 117 130 if ( $this->is_subscription ) { 118 131 $subscription_id = sanitize_text_field( $post['subscription_id'] ); //moved to is_subscription block from version 2.3.7 -
payhere-payment-gateway-beta/trunk/gateway/class-wcgatewaypayhere.php
r3216236 r3216301 786 786 787 787 $post_data = [ 788 'payment_id' => sanitize_text_field($payment_id), 788 'payment_id' => sanitize_text_field($payment_id), 789 'payhere_amount' => sanitize_text_field(filter_input(INPUT_POST, 'payhere_amount', FILTER_SANITIZE_SPECIAL_CHARS)), 790 'captured_amount' => sanitize_text_field(filter_input(INPUT_POST, 'captured_amount', FILTER_SANITIZE_SPECIAL_CHARS)) 789 791 ]; 790 792 -
payhere-payment-gateway-beta/trunk/payhere-payment-gateway-beta.php
r3216236 r3216301 7 7 * Plugin Name: PayHere Payment Gateway - Beta 8 8 * Description: This is a beta version of the PayHere Payment Gateway and is recommended for use in a development environment. 9 * Version: 2. 3.89 * Version: 2.4.0 10 10 * Author: PayHere (Private) Limited 11 11 * Author URI: https://www.payhere.lk … … 27 27 * Start at version 2.0.0 and use SemVer - https://semver.org 28 28 */ 29 define('PAYHERE_VERSION', '2. 3.8');29 define('PAYHERE_VERSION', '2.4.0'); 30 30 /** 31 31 * Currently plugin text domain. -
payhere-payment-gateway-beta/trunk/readme.txt
r3216236 r3216301 6 6 Tested up to: 6.7.1 7 7 WC tested up to: 9.5.1 8 Stable tag: 2. 3.88 Stable tag: 2.4.0 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 35 35 = 2.3.8 = 36 36 Fixed issues with authorized and tokenized payments, and the issue with shipping details not being passed to PayHere in partial payments has also been fixed. 37 38 = 2.4.0 = 39 Support for PayHere gateway discounts has been enabled to display in WooCommerce Orders. 37 40 38 41 == Frequently Asked Questions ==
Note: See TracChangeset
for help on using the changeset viewer.