{"id":49677,"date":"2016-07-14T13:50:12","date_gmt":"2016-07-14T13:50:12","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/payhere-payment-gateway\/"},"modified":"2026-01-27T11:42:45","modified_gmt":"2026-01-27T11:42:45","slug":"payhere-payment-gateway","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/payhere-payment-gateway\/","author":15046948,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"2.4.4","stable_tag":"2.4.4","tested":"6.9.4","requires":"6.4","requires_php":"","requires_plugins":null,"header_name":"PayHere Payment Gateway","header_author":"PayHere (Private) Limited","header_description":"","assets_banners_color":"8d847c","last_updated":"2026-01-27 11:42:45","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.payhere.lk","header_plugin_uri":"https:\/\/www.payhere.lk","header_author_uri":"https:\/\/www.payhere.lk","rating":4.5,"author_block_rating":0,"active_installs":2000,"downloads":53875,"num_ratings":8,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"2.2.13":{"tag":"2.2.13","author":"payhere","date":"2024-06-19 07:04:22"},"2.3.0":{"tag":"2.3.0","author":"payhere","date":"2024-06-19 08:45:43"},"2.3.1":{"tag":"2.3.1","author":"payhere","date":"2024-06-19 10:57:15"},"2.3.2":{"tag":"2.3.2","author":"payhere","date":"2024-06-19 11:27:31"},"2.3.4":{"tag":"2.3.4","author":"payhere","date":"2024-07-03 09:32:14"},"2.3.5":{"tag":"2.3.5","author":"payhere","date":"2024-07-23 09:43:48"},"2.3.6":{"tag":"2.3.6","author":"payhere","date":"2024-07-23 09:43:48"},"2.3.7":{"tag":"2.3.7","author":"payhere","date":"2024-12-18 08:46:45"},"2.3.8":{"tag":"2.3.8","author":"payhere","date":"2024-12-18 08:46:45"},"2.3.9":{"tag":"2.3.9","author":"payhere","date":"2024-12-21 03:38:35"},"2.4.0":{"tag":"2.4.0","author":"payhere","date":"2026-01-16 06:03:27"},"2.4.1":{"tag":"2.4.1","author":"payhere","date":"2026-01-16 06:03:27"},"2.4.2":{"tag":"2.4.2","author":"payhere","date":"2026-01-20 17:34:42"},"2.4.3":{"tag":"2.4.3","author":"payhere","date":"2026-01-27 04:20:36"},"2.4.4":{"tag":"2.4.4","author":"payhere","date":"2026-01-27 11:42:45"}},"upgrade_notice":{"":"<p>Please upgrade to 2.0.0 for the latest bug fixes and features.<\/p>"},"ratings":{"1":1,"2":0,"3":0,"4":0,"5":7},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2346974,"resolution":"128x128","location":"assets","locale":""},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2346974,"resolution":"256x256","location":"assets","locale":""}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":1864056,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.2.13","2.3.0","2.3.1","2.3.2","2.3.4","2.3.5","2.3.6","2.3.7","2.3.8","2.3.9","2.4.0","2.4.1","2.4.2","2.4.3","2.4.4"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":2466916,"resolution":"1","location":"assets","locale":""},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2466916,"resolution":"2","location":"assets","locale":""},"screenshot-3.png":{"filename":"screenshot-3.png","revision":2466916,"resolution":"3","location":"assets","locale":""},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2466916,"resolution":"4","location":"assets","locale":""},"screenshot-5.png":{"filename":"screenshot-5.png","revision":2466916,"resolution":"5","location":"assets","locale":""},"screenshot-6.png":{"filename":"screenshot-6.png","revision":2466916,"resolution":"6","location":"assets","locale":""},"screenshot-7.png":{"filename":"screenshot-7.png","revision":2652626,"resolution":"7","location":"assets","locale":""}},"screenshots":{"1":"PayHere configuration on WooCommerce admin area","2":"PayHere subscription settings","3":"PayHere Checkout page","4":"PayHere Tokenized Customers list","5":"PayHere Saved Cards Menu for Customers","6":"Pay with saved card options","7":"PayHere Hold on Card Capture"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[4187,74609,1887,74610],"plugin_category":[45],"plugin_contributors":[90694],"plugin_business_model":[],"class_list":["post-49677","plugin","type-plugin","status-publish","hentry","plugin_tags-online","plugin_tags-payhere","plugin_tags-payments","plugin_tags-sri-lanka","plugin_category-ecommerce","plugin_contributors-payhere","plugin_committers-payhere"],"banners":{"banner":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/banner-772x250.png?rev=1864056","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/icon-128x128.png?rev=2346974","icon_2x":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/icon-256x256.png?rev=2346974","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/screenshot-1.png?rev=2466916","caption":"PayHere configuration on WooCommerce admin area"},{"src":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/screenshot-2.png?rev=2466916","caption":"PayHere subscription settings"},{"src":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/screenshot-3.png?rev=2466916","caption":"PayHere Checkout page"},{"src":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/screenshot-4.png?rev=2466916","caption":"PayHere Tokenized Customers list"},{"src":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/screenshot-5.png?rev=2466916","caption":"PayHere Saved Cards Menu for Customers"},{"src":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/screenshot-6.png?rev=2466916","caption":"Pay with saved card options"},{"src":"https:\/\/ps.w.org\/payhere-payment-gateway\/assets\/screenshot-7.png?rev=2652626","caption":"PayHere Hold on Card Capture"}],"raw_content":"<!--section=description-->\n<p>PayHere is a Sri Lankan Payment Gateway Service that enables you to accept payments online from your customers via Visa, MasterCard, Amex, eZcash, mCash &amp; Internet Banking services. You can install this plugin to list PayHere as a payment method in your WooCommerce store.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin files to the <code>\/wp-content\/plugins\/plugin-name<\/code> directory, or install the plugin through the WordPress plugins screen directly.<\/li>\n<li>Activate the plugin through the 'Plugins' screen in WordPress<\/li>\n<li>Use the WooCommerce-&gt;Settings-&gt;Checkout-&gt;PayHere screen to configure the plugin with your PayHere Merchant Account<\/li>\n<li>Make sure you tick the Sandbox Mode checkbox if you want to test the plugin with your PayHere Sandbox account<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"how%20to%20sign%20up%20for%20a%20payhere%20merchant%20account%3F\"><h3>How to sign up for a PayHere Merchant Account?<\/h3><\/dt>\n<dd><p>Go to PayHere website &amp; apply for a Merchant Account.\nhttps:\/\/www.payhere.lk<\/p><\/dd>\n<dt id=\"how%20to%20enable%20on-site%20checkout%3F\"><h3>How to enable On-site checkout?<\/h3><\/dt>\n<dd><p>Go to WooCommerce Settings &gt; Payments &gt; PayHere &gt; Manage and tick \"Enable On-site checkout\"<\/p><\/dd>\n<dt id=\"does%20the%20plugin%20support%20woocommerce%20subscriptions%3F\"><h3>Does the plugin support WooCommerce Subscriptions?<\/h3><\/dt>\n<dd><p>Yes. Supported Subscription products can be checked out with the gateway.<\/p><\/dd>\n<dt id=\"what%20are%20the%20limitations%20in%20support%20for%20woocommerce%20subscriptions%3F\"><h3>What are the limitations in support for WooCommerce Subscriptions?<\/h3><\/dt>\n<dd><ol>\n<li>Only one subscription can be checked out at one time<\/li>\n<li>An order cannot contain normal and subscription products<\/li>\n<li>Trial and billing periods must be equal<\/li>\n<li>The trial length cannot be larger than one billing period<\/li>\n<li>Synchronized subscriptions are not supported<\/li>\n<li>Free trials cannot be processed<\/li>\n<\/ol><\/dd>\n<dt id=\"how%20do%20customers%20use%20the%20save%20card%20feature%3F\"><h3>How do customers use the Save Card Feature?<\/h3><\/dt>\n<dd><p>You should be a PayHere PREMIUM plan subscriber or using a PayHere Sandbox account to use this feature. After enabling the feature as explained in the \"How do I use Use PayHere Tokenized Cards?\", customers will automatically see a \"Save Card\" tick mark when paying.<\/p>\n\n<p>On their next visits, customers will be offered the option of paying with their saved card.<\/p><\/dd>\n<dt id=\"can%20customers%20remove%20their%20saved%20card%3F\"><h3>Can customers remove their Saved Card?<\/h3><\/dt>\n<dd><p>Yes. Customers should to navigate to My Account &gt; Saved Cards. This menu will only appear for customers with saved cards.<\/p>\n\n<p>Once in the menu, click \"Remove Card\".<\/p><\/dd>\n<dt id=\"how%20do%20i%20integrate%20payhere%20tokenized%20cards%3F\"><h3>How do I integrate PayHere Tokenized Cards?<\/h3><\/dt>\n<dd><ol>\n<li>You should be a PayHere PREMIUM plan subscriber or using a PayHere Sandbox account to use this feature<\/li>\n<li>Login to your PayHere Merchant Account<\/li>\n<li>Navigate to Settings &gt; Business Apps &gt; Create App<\/li>\n<li>Generate an App ID and App Secret<\/li>\n<li>Go to WooCommerce Settings &gt; Payments &gt; PayHere &gt; Manage<\/li>\n<li>Click \"Enable Tokenizer\"<\/li>\n<li>Copy and paste the App ID and App Secret generated in Step 4<\/li>\n<li>Click Save<\/li>\n<\/ol><\/dd>\n<dt id=\"can%20i%20view%20the%20list%20of%20customers%20with%20pre-approved%20%28saved%29%20cards%3F\"><h3>Can I view the list of customers with Pre-approved (saved) cards?<\/h3><\/dt>\n<dd><p>Yes. Navigate to WooCommerce &gt; Cards on files<\/p><\/dd>\n<dt id=\"the%20plugin%20gets%20de-activated%20after%20updating%20to%20version%202.0.%2A\"><h3>The plugin gets de-activated after updating to version 2.0.*<\/h3><\/dt>\n<dd><p>Go to WP-Admin &gt; Plugins, and re-activated the PayHere plugin.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.0<\/h4>\n\n<p>Initial public release<\/p>\n\n<h4>1.0.1<\/h4>\n\n<p>Fixed PayHere logo not showing issue<\/p>\n\n<h4>1.0.2<\/h4>\n\n<p>Fixed redirecting issue<\/p>\n\n<h4>1.0.3<\/h4>\n\n<p>Fixed Return URL issue in latest WP versions<\/p>\n\n<h4>1.0.4<\/h4>\n\n<p>Added support for On-site checkout<\/p>\n\n<h4>1.0.5<\/h4>\n\n<p>Fixed issue with On-site checkout in live mode<\/p>\n\n<h4>1.0.6<\/h4>\n\n<p>Fixed various issues<\/p>\n\n<h4>1.0.7<\/h4>\n\n<p>Fixed various issues<\/p>\n\n<h4>1.0.8<\/h4>\n\n<p>Bug fixes\nWooCommerce Subscription Support<\/p>\n\n<h4>1.0.9<\/h4>\n\n<p>Bug fixes<\/p>\n\n<h4>1.0.10<\/h4>\n\n<p>Added support for Tokenized Payments<\/p>\n\n<h4>1.0.11<\/h4>\n\n<p>Added support for delete tokenized card payments<\/p>\n\n<h4>1.0.12<\/h4>\n\n<p>Added option to show\/hide save card in frontend.<\/p>\n\n<h4>1.0.13<\/h4>\n\n<p>Fixed not Empty cart issue.<\/p>\n\n<h4>1.0.14<\/h4>\n\n<p>Fixed not auto redirecting issue on checkout page.<\/p>\n\n<h4>1.0.15<\/h4>\n\n<p>Fixed if woocommerce not active error plugin breaks and cannot login to the site.<\/p>\n\n<h4>1.0.16<\/h4>\n\n<p>Fixes bug caused by WordPress optimization, where Payment starts before PayHere.js is loaded.<\/p>\n\n<h4>1.0.17<\/h4>\n\n<p>Added better support for orders with many items.<\/p>\n\n<h4>1.0.18<\/h4>\n\n<p>Added in-code order blacklisting capabilities.<\/p>\n\n<h4>1.0.19<\/h4>\n\n<p>Small bug fix for Tokenize payments.<\/p>\n\n<h4>1.0.20<\/h4>\n\n<p>Remove Auto Trigger authorize payment if Card is already tokenized.<\/p>\n\n<h4>2.0.0<\/h4>\n\n<p>Hold on card support with small bug fixes.<\/p>\n\n<h4>2.0.1<\/h4>\n\n<p>Small bug fix for invalid amount format.<\/p>\n\n<h4>2.0.2<\/h4>\n\n<p>Small bug fix and add notice for hold on card support.<\/p>\n\n<h4>2.0.3<\/h4>\n\n<p>Small bug fix for authorization payment activated by default.<\/p>\n\n<h4>2.0.4<\/h4>\n\n<p>Fix a bug for some themes giving an error when editing a Post or a Page.<\/p>\n\n<h4>2.0.5<\/h4>\n\n<p>Added support for daily recurring payments.<\/p>\n\n<h4>2.1.0<\/h4>\n\n<p>Added input sanitizing for form fields to fix vulnerability issues.<\/p>\n\n<h4>2.1.1<\/h4>\n\n<p>Code standardize to PSR12 and WordPress<\/p>\n\n<h4>2.2.3<\/h4>\n\n<p>Code standardize to PSR12 and WordPress<\/p>\n\n<h4>2.2.4<\/h4>\n\n<p>Fix the issue with \"Something went wrong\" after the latest update (2.2.3)<\/p>\n\n<h4>2.2.5<\/h4>\n\n<p>Fix the issue with the Order complete message<\/p>\n\n<h4>2.2.6<\/h4>\n\n<p>Fix the issue with the Merchant ID not set in the backend and the frontend<\/p>\n\n<h4>2.2.7<\/h4>\n\n<p>Fix the issue with the redirect page not found.<\/p>\n\n<h4>2.2.8<\/h4>\n\n<p>Fix the issue with the redirect page not found and issue with plugin error when de-activate and activate.<\/p>\n\n<h4>2.2.9<\/h4>\n\n<p>Remove the line item name list from the \"items\" parameter and replace with the order id.<\/p>\n\n<h4>2.2.10<\/h4>\n\n<p>Fix the \"order_key was called incorrectly\" issue in thankyou page.<\/p>\n\n<h4>2.2.11<\/h4>\n\n<p>Fix the vulnerability with payhere logs.<\/p>\n\n<h4>2.2.12<\/h4>\n\n<p>Fix the vulnerability with payhere logs and disabled the loggin function.<\/p>\n\n<h4>2.2.13<\/h4>\n\n<p>Fix the issue with the Chackout page show deprecated warning\/error.<\/p>\n\n<h4>2.3.0<\/h4>\n\n<p>Added support for WordPress blocks and resolved issues on the redirect page.<\/p>\n\n<h4>2.3.1<\/h4>\n\n<p>Fixed the issue occurring during plugin activation and update.<\/p>\n\n<h4>2.3.2<\/h4>\n\n<p>Fixed the issues occurring during plugin activation and update.<\/p>\n\n<h4>2.3.4<\/h4>\n\n<p>Enabled support for changing the gateway icon, resolved the issues with WordPress Blocks, and fixed the gateway viewing issue.<\/p>\n\n<h4>2.3.5<\/h4>\n\n<p>Fixed the issue with the text message when redirecting to the order-received page while the payment is pending.<\/p>\n\n<h4>2.3.6<\/h4>\n\n<p>Fixed the issue of the pay button duplication.<\/p>\n\n<h4>2.3.7<\/h4>\n\n<p>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.<\/p>\n\n<h4>2.3.8<\/h4>\n\n<p>Support for PayHere gateway discounts has been enabled to display in WooCommerce Orders.<\/p>\n\n<h4>2.3.9<\/h4>\n\n<p>Bug fixes &amp; improvements.<\/p>\n\n<h4>2.4.0<\/h4>\n\n<p>Bug fixes, vulnerability fixes, and security enhancements.<\/p>\n\n<h4>2.4.1<\/h4>\n\n<p>Stable tag fix.<\/p>\n\n<h4>2.4.2<\/h4>\n\n<p>Bug and valiidation fixes.<\/p>\n\n<h4>2.4.3<\/h4>\n\n<p>Bug fixes.<\/p>\n\n<h4>2.4.4<\/h4>\n\n<p>Fixed an issue on the WooCommerce order page.<\/p>","raw_excerpt":"PayHere Payment Gateway","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/49677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=49677"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/payhere"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=49677"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=49677"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=49677"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=49677"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=49677"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=49677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}