{"id":138646,"date":"2021-03-28T14:54:33","date_gmt":"2021-03-28T14:54:33","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/conditional-payment-gateways-for-woocommerce\/"},"modified":"2025-12-17T14:55:57","modified_gmt":"2025-12-17T14:55:57","slug":"conditional-payment-gateways-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/eu.wordpress.org\/plugins\/conditional-payment-gateways-for-woocommerce\/","author":18216844,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.5.4","stable_tag":"2.5.4","tested":"6.9.4","requires":"4.4","requires_php":"","requires_plugins":null,"header_name":"Conditional Payment Gateways for WooCommerce","header_author":"WPFactory","header_description":"Manage payment gateways in WooCommerce. Beautifully.","assets_banners_color":"c9e1f6","last_updated":"2025-12-17 14:55:57","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wpfactory.com\/item\/conditional-payment-gateways-for-woocommerce\/","header_author_uri":"https:\/\/wpfactory.com","rating":5,"author_block_rating":0,"active_installs":200,"downloads":7223,"num_ratings":3,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"2.0.1":{"tag":"2.0.1","author":"algoritmika","date":"2021-03-31 19:20:25"},"2.1.0":{"tag":"2.1.0","author":"algoritmika","date":"2021-12-28 17:22:56"},"2.1.1":{"tag":"2.1.1","author":"wpcodefactory","date":"2022-11-10 22:46:21"},"2.1.2":{"tag":"2.1.2","author":"wpcodefactory","date":"2023-06-18 18:39:18"},"2.1.3":{"tag":"2.1.3","author":"wpcodefactory","date":"2023-09-24 15:47:57"},"2.2.0":{"tag":"2.2.0","author":"wpcodefactory","date":"2024-01-26 16:26:06"},"2.2.1":{"tag":"2.2.1","author":"wpcodefactory","date":"2024-07-30 07:17:29"},"2.2.2":{"tag":"2.2.2","author":"wpcodefactory","date":"2024-08-11 14:12:28"},"2.3.0":{"tag":"2.3.0","author":"wpcodefactory","date":"2024-08-13 16:13:17"},"2.4.0":{"tag":"2.4.0","author":"wpcodefactory","date":"2024-08-16 11:42:16"},"2.5.0":{"tag":"2.5.0","author":"wpcodefactory","date":"2025-06-28 12:04:56"},"2.5.1":{"tag":"2.5.1","author":"wpcodefactory","date":"2025-09-11 15:13:21"},"2.5.2":{"tag":"2.5.2","author":"wpcodefactory","date":"2025-12-10 00:47:09"},"2.5.3":{"tag":"2.5.3","author":"wpcodefactory","date":"2025-12-10 16:38:14"},"2.5.4":{"tag":"2.5.4","author":"wpcodefactory","date":"2025-12-17 14:55:57"}},"upgrade_notice":{"1.0.0":"<p>This is the first release of the plugin.<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":3},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2970912,"resolution":"128x128","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2970912,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2970912,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2970912,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","2.2.0","2.2.1","2.2.2","2.3.0","2.4.0","2.5.0","2.5.1","2.5.2","2.5.3","2.5.4"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[6593,288,286],"plugin_category":[45],"plugin_contributors":[78783,80665,178791,189606],"plugin_business_model":[216238],"class_list":["post-138646","plugin","type-plugin","status-publish","hentry","plugin_tags-payment-gateway","plugin_tags-woo-commerce","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-anbinder","plugin_contributors-karzin","plugin_contributors-omardabbas","plugin_contributors-wpcodefactory","plugin_business_model-commercial","plugin_committers-algoritmika","plugin_committers-wpcodefactory","plugin_support_reps-anbinder","plugin_support_reps-karzin","plugin_support_reps-tahaamin"],"banners":{"banner":"https:\/\/ps.w.org\/conditional-payment-gateways-for-woocommerce\/assets\/banner-772x250.png?rev=2970912","banner_2x":"https:\/\/ps.w.org\/conditional-payment-gateways-for-woocommerce\/assets\/banner-1544x500.png?rev=2970912","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/conditional-payment-gateways-for-woocommerce\/assets\/icon.svg?rev=2970912","icon":"https:\/\/ps.w.org\/conditional-payment-gateways-for-woocommerce\/assets\/icon.svg?rev=2970912","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Conditional Payment Gateways for WooCommerce<\/strong> plugin lets you hide payment gateways in WooCommerce based on various <strong>conditions<\/strong>, for example, minimum or maximum cart amount, current date and time, current customer IP or user ID.<\/p>\n\n<h3>&#9989; Available Conditions<\/h3>\n\n<p>Plugin includes these <strong>modules<\/strong> (i.e., \"conditions\"):<\/p>\n\n<ul>\n<li><strong>Cart total<\/strong> - Hides WooCommerce payment gateways based on minimum and maximum cart (i.e., order) amounts.<\/li>\n<li><strong>Date and time<\/strong> - Hides WooCommerce payment gateways by current date and time.<\/li>\n<li><strong>Customer IP<\/strong> - Hides WooCommerce payment gateways by current user IP.<\/li>\n<li><strong>User<\/strong> - Hides WooCommerce payment gateways by current user ID.<\/li>\n<li><strong>User Role<\/strong> - Hides WooCommerce payment gateways by current user role.<\/li>\n<li><strong>Language<\/strong> - Hides WooCommerce payment gateways by the current WPML or Polylang language.<\/li>\n<li><strong>Currency<\/strong> - Hides WooCommerce payment gateways by the current currency. For example, this is useful, if you are using some additional currency switcher plugin.<\/li>\n<li><strong>Country<\/strong> - Hides WooCommerce payment gateways by the current user country (by IP, billing or shipping country).<\/li>\n<li><strong>Product<\/strong> - Hides WooCommerce payment gateways by cart products.<\/li>\n<li><strong>Product Category<\/strong> - Hides WooCommerce payment gateways by cart product categories.<\/li>\n<li><strong>Product Tag<\/strong> - Hides WooCommerce payment gateways by cart product tags.<\/li>\n<li><strong>Product Shipping Class<\/strong> - Hides WooCommerce payment gateways by cart product shipping classes.<\/li>\n<li><strong>Product Taxonomy<\/strong> - Hides WooCommerce payment gateways by cart product custom taxonomy, e.g., brands.<\/li>\n<li><strong>Product Title<\/strong> - Hides WooCommerce payment gateways by cart product titles (or descriptions).<\/li>\n<\/ul>\n\n<h3>&#127942; Premium Version<\/h3>\n\n<p>Free version allows setting conditions for all standard WooCommerce payment gateways, i.e.:<\/p>\n\n<ul>\n<li>Direct bank transfer,<\/li>\n<li>Check payments,<\/li>\n<li>Cash on delivery (COD),<\/li>\n<li>PayPal.<\/li>\n<\/ul>\n\n<p>With <a href=\"https:\/\/wpfactory.com\/item\/conditional-payment-gateways-for-woocommerce\/\">Conditional Payment Gateways for WooCommerce Pro<\/a> you can set conditions for <strong>any payment gateway<\/strong>.<\/p>\n\n<h3>&#128472; Feedback<\/h3>\n\n<ul>\n<li>We are open to your suggestions and feedback. Thank you for using or trying out one of our plugins!<\/li>\n<li><a href=\"https:\/\/wpfactory.com\/item\/conditional-payment-gateways-for-woocommerce\/\">Visit plugin site<\/a>.<\/li>\n<\/ul>\n\n<h3>&#8505; More<\/h3>\n\n<ul>\n<li>The plugin is <strong>\"High-Performance Order Storage (HPOS)\"<\/strong> compatible.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the entire plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>Start by visiting plugin settings at \"WPFactory &gt; Conditional Payment Gateways\".<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.5.4 - 17\/12\/2025<\/h4>\n\n<ul>\n<li>Dev - Admin settings - Payment gateway titles - Output improved when the main title is empty.<\/li>\n<li>WC tested up to: 10.4.<\/li>\n<\/ul>\n\n<h4>2.5.3 - 10\/12\/2025<\/h4>\n\n<ul>\n<li>Dev - Admin settings - Payment gateway titles - Remove HTML tags.<\/li>\n<\/ul>\n\n<h4>2.5.2 - 10\/12\/2025<\/h4>\n\n<ul>\n<li>Dev - Admin settings - Payment gateway titles improved.<\/li>\n<li>Dev - WPFactory Recommendations - Library updated.<\/li>\n<li>Dev - Coding standards improved.<\/li>\n<li>WC tested up to: 10.3.<\/li>\n<li>Tested up to: 6.9.<\/li>\n<\/ul>\n\n<h4>2.5.1 - 11\/09\/2025<\/h4>\n\n<ul>\n<li>WC tested up to: 10.1.<\/li>\n<\/ul>\n\n<h4>2.5.0 - 28\/06\/2025<\/h4>\n\n<ul>\n<li>Dev - Security - Output escaped.<\/li>\n<li>Dev - Plugin settings moved to the \"WPFactory\" menu.<\/li>\n<li>Dev - WPFactory \"Recommendations\" added.<\/li>\n<li>Dev - WPFactory \"Key Manager\" added.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>Dev - Coding standards improved.<\/li>\n<li>WC tested up to: 9.9.<\/li>\n<li>Tested up to: 6.8.<\/li>\n<\/ul>\n\n<h4>2.4.0 - 16\/08\/2024<\/h4>\n\n<ul>\n<li>Dev - \"Product\" module added.<\/li>\n<li>Dev - \"Product Category\" module added.<\/li>\n<li>Dev - \"Product Tag\" module added.<\/li>\n<li>Dev - \"Product Shipping Class\" module added.<\/li>\n<li>Dev - \"Product Taxonomy\" module added.<\/li>\n<li>Dev - Default module priorities updated.<\/li>\n<li>Dev - Admin settings restyled.<\/li>\n<li>Dev - Developers - <code>alg_wc_cpg_gateway_settings_{$module_id}<\/code> filter added.<\/li>\n<\/ul>\n\n<h4>2.3.0 - 13\/08\/2024<\/h4>\n\n<ul>\n<li>Dev - \"User Role\" module added.<\/li>\n<li>Dev - \"Country\" module added.<\/li>\n<li>Dev - \"Product Title\" module added.<\/li>\n<li>Dev - Default module priorities updated.<\/li>\n<li>Dev - Admin settings descriptions updated.<\/li>\n<\/ul>\n\n<h4>2.2.2 - 11\/08\/2024<\/h4>\n\n<ul>\n<li>Dev - Customer IP - Now accepts CIDR ranges.<\/li>\n<li>Tested up to: 6.6.<\/li>\n<\/ul>\n\n<h4>2.2.1 - 30\/07\/2024<\/h4>\n\n<ul>\n<li>WC tested up to: 9.1.<\/li>\n<li>Tested up to: 6.5.<\/li>\n<li>WooCommerce added to the \"Requires Plugins\" (plugin header).<\/li>\n<\/ul>\n\n<h4>2.2.0 - 26\/01\/2024<\/h4>\n\n<ul>\n<li>Dev \u2013 \"High-Performance Order Storage (HPOS)\" compatibility.<\/li>\n<li>Dev - PHP 8.2 compatibility - \"Creation of dynamic property is deprecated\" notice fixed.<\/li>\n<li>Dev - Admin settings descriptions updated.<\/li>\n<li>WC tested up to: 8.5.<\/li>\n<li>Tested up to: 6.4.<\/li>\n<\/ul>\n\n<h4>2.1.3 - 24\/09\/2023<\/h4>\n\n<ul>\n<li>WC tested up to: 8.1.<\/li>\n<li>Tested up to: 6.3.<\/li>\n<\/ul>\n\n<h4>2.1.2 - 18\/06\/2023<\/h4>\n\n<ul>\n<li>WC tested up to: 7.8.<\/li>\n<li>Tested up to: 6.2.<\/li>\n<\/ul>\n\n<h4>2.1.1 - 10\/11\/2022<\/h4>\n\n<ul>\n<li>WC tested up to: 7.1.<\/li>\n<li>Tested up to: 6.1.<\/li>\n<li>Readme.txt updated.<\/li>\n<li>Deploy script added.<\/li>\n<\/ul>\n\n<h4>2.1.0 - 28\/12\/2021<\/h4>\n\n<ul>\n<li>Fix - Notices - Adding notices only on AJAX now.<\/li>\n<li>Dev - Notices - <code>%current_raw%<\/code> placeholder added.<\/li>\n<li>Dev - \"Currency\" module added.<\/li>\n<li>Dev - \"Language\" module added.<\/li>\n<li>Dev - Admin settings restyled.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>WC tested up to: 6.0.<\/li>\n<li>Tested up to: 5.8.<\/li>\n<\/ul>\n\n<h4>2.0.1 - 26\/03\/2021<\/h4>\n\n<ul>\n<li>Dev - Shortcodes - <code>[alg_wc_cpg_cart_total]<\/code> - Removing and then re-adding the main filter when calling WooCommerce <code>calculate_totals()<\/code> function.<\/li>\n<li>Dev - Admin settings restyled; descriptions updated.<\/li>\n<li>Dev - Free plugin version released.<\/li>\n<\/ul>\n\n<h4>2.0.0 - 16\/03\/2021<\/h4>\n\n<ul>\n<li>Dev - \"Customer IP\" module added.<\/li>\n<li>Dev - \"User\" module added.<\/li>\n<li>Dev - \"Date\/Time\" module added.<\/li>\n<li>Dev - Cart Total - Cart total is calculated with shortcode now. Checkbox options (i.e., \"Exclude taxes\/shipping\/discounts\") removed - this is replaced by shortcode attributes now.<\/li>\n<li>Dev - Cart Total - Additional notice - Placeholders renamed: <code>%min_amount%<\/code> and <code>%max_amount%<\/code> are now replaced by a single <code>%value%<\/code> placeholder. <code>%result%<\/code> (i.e., current cart total) placeholder added.<\/li>\n<li>Dev - General - \"Leave at least one gateway\" option added.<\/li>\n<li>Dev - General - \"Debug\" option added.<\/li>\n<li>Dev - Shortcodes - <code>[alg_wc_cpg_if]<\/code> shortcode added.<\/li>\n<li>Dev - Shortcodes - <code>[alg_wc_cpg_cart_total]<\/code> shortcode added.<\/li>\n<li>Dev - Shortcodes - <code>[alg_wc_cpg_user_id]<\/code> shortcode added.<\/li>\n<li>Dev - Shortcodes - <code>[alg_wc_pgmma_translate]<\/code> renamed to <code>[alg_wc_cpg_translate]<\/code>.<\/li>\n<li>Dev - Major code refactoring.<\/li>\n<li>Plugin renamed (was \"Payment Gateways Min Max Amounts for WooCommerce\").<\/li>\n<li>WC tested up to: 5.1.<\/li>\n<li>Tested up to: 5.7.<\/li>\n<\/ul>\n\n<h4>1.1.0 - 07\/11\/2019<\/h4>\n\n<ul>\n<li>Fix - Cart Total - Comparing float values with epsilon now.<\/li>\n<li>Dev - Cart Total - Option IDs for all settings updated. Min\/max amounts are saved in array now.<\/li>\n<li>Dev - Cart Total - \"Exclude taxes\" option added.<\/li>\n<li>Dev - Cart Total - \"Exclude discounts\" option added.<\/li>\n<li>Dev - Cart Total - Shortcodes are now processed in plugin notices on checkout. Shortcode added for WPML\/Polylang translations.<\/li>\n<li>Dev - Cart Total - Min and max notices can be displayed simultaneously now.<\/li>\n<li>Dev - Cart Total - Admin settings restyled.<\/li>\n<li>Dev - Cart Total - Code refactoring.<\/li>\n<li>Plugin URI updated.<\/li>\n<li>WC tested up to: 3.8.<\/li>\n<li>Tested up to: 5.2.<\/li>\n<\/ul>\n\n<h4>1.0.0 - 27\/04\/2018<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>","raw_excerpt":"Manage payment gateways in WooCommerce. Beautifully.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/138646","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=138646"}],"author":[{"embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wpcodefactory"}],"wp:attachment":[{"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=138646"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=138646"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=138646"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=138646"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=138646"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/eu.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=138646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}