Title: Conditional Payment Gateways for WooCommerce
Author: WPFactory
Published: <strong>మార్చి 28, 2021</strong>
Last modified: డిసెంబర్ 17, 2025

---

Search plugins

![](https://ps.w.org/conditional-payment-gateways-for-woocommerce/assets/banner-
772x250.png?rev=2970912)

![](https://ps.w.org/conditional-payment-gateways-for-woocommerce/assets/icon.svg?
rev=2970912)

# Conditional Payment Gateways for WooCommerce

 By [WPFactory](https://profiles.wordpress.org/wpcodefactory/)

[Download](https://downloads.wordpress.org/plugin/conditional-payment-gateways-for-woocommerce.2.5.4.zip)

 * [Details](https://te.wordpress.org/plugins/conditional-payment-gateways-for-woocommerce/#description)
 * [Reviews](https://te.wordpress.org/plugins/conditional-payment-gateways-for-woocommerce/#reviews)
 *  [Installation](https://te.wordpress.org/plugins/conditional-payment-gateways-for-woocommerce/#installation)
 * [Development](https://te.wordpress.org/plugins/conditional-payment-gateways-for-woocommerce/#developers)

 [Support](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/)

## Description

**Conditional Payment Gateways for WooCommerce** plugin lets you hide payment gateways
in WooCommerce based on various **conditions**, for example, minimum or maximum 
cart amount, current date and time, current customer IP or user ID.

### ✅ Available Conditions

Plugin includes these **modules** (i.e., “conditions”):

 * **Cart total** – Hides WooCommerce payment gateways based on minimum and maximum
   cart (i.e., order) amounts.
 * **Date and time** – Hides WooCommerce payment gateways by current date and time.
 * **Customer IP** – Hides WooCommerce payment gateways by current user IP.
 * **User** – Hides WooCommerce payment gateways by current user ID.
 * **User Role** – Hides WooCommerce payment gateways by current user role.
 * **Language** – Hides WooCommerce payment gateways by the current WPML or Polylang
   language.
 * **Currency** – Hides WooCommerce payment gateways by the current currency. For
   example, this is useful, if you are using some additional currency switcher plugin.
 * **Country** – Hides WooCommerce payment gateways by the current user country (
   by IP, billing or shipping country).
 * **Product** – Hides WooCommerce payment gateways by cart products.
 * **Product Category** – Hides WooCommerce payment gateways by cart product categories.
 * **Product Tag** – Hides WooCommerce payment gateways by cart product tags.
 * **Product Shipping Class** – Hides WooCommerce payment gateways by cart product
   shipping classes.
 * **Product Taxonomy** – Hides WooCommerce payment gateways by cart product custom
   taxonomy, e.g., brands.
 * **Product Title** – Hides WooCommerce payment gateways by cart product titles(
   or descriptions).

### 🏆 Premium Version

Free version allows setting conditions for all standard WooCommerce payment gateways,
i.e.:

 * Direct bank transfer,
 * Check payments,
 * Cash on delivery (COD),
 * PayPal.

With [Conditional Payment Gateways for WooCommerce Pro](https://wpfactory.com/item/conditional-payment-gateways-for-woocommerce/)
you can set conditions for **any payment gateway**.

### 🗘 Feedback

 * We are open to your suggestions and feedback. Thank you for using or trying out
   one of our plugins!
 * [Visit plugin site](https://wpfactory.com/item/conditional-payment-gateways-for-woocommerce/).

### ℹ More

 * The plugin is **“High-Performance Order Storage (HPOS)”** compatible.

## Installation

 1. Upload the entire plugin folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. Start by visiting plugin settings at “WPFactory > Conditional Payment Gateways”.

## Reviews

![](https://secure.gravatar.com/avatar/175a35105c3bdc35d2f39aea2598e7d8a390e22861af2f2ff22680f54d6c4950?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-39329/)󠁿

 [Mo](https://profiles.wordpress.org/nadhonar/) ఆగస్ట్ 13, 2024 1 reply

A compact, smart and easy-to-use plugin. Thanks to the developers.

![](https://secure.gravatar.com/avatar/3f132aad7387ac73c5a44c809c456994be838faf907d794db1a1f33ae0b38d40?
s=60&d=retro&r=g)

### 󠀁[Works well](https://wordpress.org/support/topic/works-well-2965/)󠁿

 [qsdnxu](https://profiles.wordpress.org/qsdnxu/) ఆగస్ట్ 11, 2024 1 reply

It works well for me. Plugin did not support blockin ip ranges although support 
updated the plugin for my request and solved my issue within 2 days. Greatly appreciated.

![](https://secure.gravatar.com/avatar/8068b7766f6612f3c3a3263779ab0206f48489ee2df0bdb5a7acfeb4123e879e?
s=60&d=retro&r=g)

### 󠀁[Great Plugin!](https://wordpress.org/support/topic/great-plugin-36530/)󠁿

 [vaibhavb2004](https://profiles.wordpress.org/vaibhavb2004/) మార్చి 31, 2023 1 
reply

Easy to use plugin. Does what it says. 5 stars from me! Please try to update more
frequently if you can. Thank you.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/reviews/)

## Contributors & Developers

“Conditional Payment Gateways for WooCommerce” is open source software. The following
people have contributed to this plugin.

Contributors

 *   [ WPFactory ](https://profiles.wordpress.org/wpcodefactory/)
 *   [ Tom Anbinder ](https://profiles.wordpress.org/anbinder/)
 *   [ Pablo Pacheco ](https://profiles.wordpress.org/karzin/)
 *   [ Omar AlDabbas ](https://profiles.wordpress.org/omardabbas/)

[Translate “Conditional Payment Gateways for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/conditional-payment-gateways-for-woocommerce)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/conditional-payment-gateways-for-woocommerce/),
check out the [SVN repository](https://plugins.svn.wordpress.org/conditional-payment-gateways-for-woocommerce/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/conditional-payment-gateways-for-woocommerce/)
by [RSS](https://plugins.trac.wordpress.org/log/conditional-payment-gateways-for-woocommerce/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.5.4 – 17/12/2025

 * Dev – Admin settings – Payment gateway titles – Output improved when the main
   title is empty.
 * WC tested up to: 10.4.

#### 2.5.3 – 10/12/2025

 * Dev – Admin settings – Payment gateway titles – Remove HTML tags.

#### 2.5.2 – 10/12/2025

 * Dev – Admin settings – Payment gateway titles improved.
 * Dev – WPFactory Recommendations – Library updated.
 * Dev – Coding standards improved.
 * WC tested up to: 10.3.
 * Tested up to: 6.9.

#### 2.5.1 – 11/09/2025

 * WC tested up to: 10.1.

#### 2.5.0 – 28/06/2025

 * Dev – Security – Output escaped.
 * Dev – Plugin settings moved to the “WPFactory” menu.
 * Dev – WPFactory “Recommendations” added.
 * Dev – WPFactory “Key Manager” added.
 * Dev – Code refactoring.
 * Dev – Coding standards improved.
 * WC tested up to: 9.9.
 * Tested up to: 6.8.

#### 2.4.0 – 16/08/2024

 * Dev – “Product” module added.
 * Dev – “Product Category” module added.
 * Dev – “Product Tag” module added.
 * Dev – “Product Shipping Class” module added.
 * Dev – “Product Taxonomy” module added.
 * Dev – Default module priorities updated.
 * Dev – Admin settings restyled.
 * Dev – Developers – `alg_wc_cpg_gateway_settings_{$module_id}` filter added.

#### 2.3.0 – 13/08/2024

 * Dev – “User Role” module added.
 * Dev – “Country” module added.
 * Dev – “Product Title” module added.
 * Dev – Default module priorities updated.
 * Dev – Admin settings descriptions updated.

#### 2.2.2 – 11/08/2024

 * Dev – Customer IP – Now accepts CIDR ranges.
 * Tested up to: 6.6.

#### 2.2.1 – 30/07/2024

 * WC tested up to: 9.1.
 * Tested up to: 6.5.
 * WooCommerce added to the “Requires Plugins” (plugin header).

#### 2.2.0 – 26/01/2024

 * Dev – “High-Performance Order Storage (HPOS)” compatibility.
 * Dev – PHP 8.2 compatibility – “Creation of dynamic property is deprecated” notice
   fixed.
 * Dev – Admin settings descriptions updated.
 * WC tested up to: 8.5.
 * Tested up to: 6.4.

#### 2.1.3 – 24/09/2023

 * WC tested up to: 8.1.
 * Tested up to: 6.3.

#### 2.1.2 – 18/06/2023

 * WC tested up to: 7.8.
 * Tested up to: 6.2.

#### 2.1.1 – 10/11/2022

 * WC tested up to: 7.1.
 * Tested up to: 6.1.
 * Readme.txt updated.
 * Deploy script added.

#### 2.1.0 – 28/12/2021

 * Fix – Notices – Adding notices only on AJAX now.
 * Dev – Notices – `%current_raw%` placeholder added.
 * Dev – “Currency” module added.
 * Dev – “Language” module added.
 * Dev – Admin settings restyled.
 * Dev – Code refactoring.
 * WC tested up to: 6.0.
 * Tested up to: 5.8.

#### 2.0.1 – 26/03/2021

 * Dev – Shortcodes – `[alg_wc_cpg_cart_total]` – Removing and then re-adding the
   main filter when calling WooCommerce `calculate_totals()` function.
 * Dev – Admin settings restyled; descriptions updated.
 * Dev – Free plugin version released.

#### 2.0.0 – 16/03/2021

 * Dev – “Customer IP” module added.
 * Dev – “User” module added.
 * Dev – “Date/Time” module added.
 * 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.
 * Dev – Cart Total – Additional notice – Placeholders renamed: `%min_amount%` and`%
   max_amount%` are now replaced by a single `%value%` placeholder. `%result%` (
   i.e., current cart total) placeholder added.
 * Dev – General – “Leave at least one gateway” option added.
 * Dev – General – “Debug” option added.
 * Dev – Shortcodes – `[alg_wc_cpg_if]` shortcode added.
 * Dev – Shortcodes – `[alg_wc_cpg_cart_total]` shortcode added.
 * Dev – Shortcodes – `[alg_wc_cpg_user_id]` shortcode added.
 * Dev – Shortcodes – `[alg_wc_pgmma_translate]` renamed to `[alg_wc_cpg_translate]`.
 * Dev – Major code refactoring.
 * Plugin renamed (was “Payment Gateways Min Max Amounts for WooCommerce”).
 * WC tested up to: 5.1.
 * Tested up to: 5.7.

#### 1.1.0 – 07/11/2019

 * Fix – Cart Total – Comparing float values with epsilon now.
 * Dev – Cart Total – Option IDs for all settings updated. Min/max amounts are saved
   in array now.
 * Dev – Cart Total – “Exclude taxes” option added.
 * Dev – Cart Total – “Exclude discounts” option added.
 * Dev – Cart Total – Shortcodes are now processed in plugin notices on checkout.
   Shortcode added for WPML/Polylang translations.
 * Dev – Cart Total – Min and max notices can be displayed simultaneously now.
 * Dev – Cart Total – Admin settings restyled.
 * Dev – Cart Total – Code refactoring.
 * Plugin URI updated.
 * WC tested up to: 3.8.
 * Tested up to: 5.2.

#### 1.0.0 – 27/04/2018

 * Initial Release.

## Commercial plugin

This plugin is free but offers additional paid commercial upgrades or support.

## Meta

 *  Version **2.5.4**
 *  Last updated **4 నెలలు ago**
 *  Active installations **200+**
 *  WordPress version ** 4.4 or higher **
 *  Tested up to **6.9.4**
 *  Language
 * [English (US)](https://wordpress.org/plugins/conditional-payment-gateways-for-woocommerce/)
 * Tags
 * [payment gateway](https://te.wordpress.org/plugins/tags/payment-gateway/)[woo-commerce](https://te.wordpress.org/plugins/tags/woo-commerce/)
   [woocommerce](https://te.wordpress.org/plugins/tags/woocommerce/)
 *  [Advanced View](https://te.wordpress.org/plugins/conditional-payment-gateways-for-woocommerce/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/reviews/)

## Contributors

 *   [ WPFactory ](https://profiles.wordpress.org/wpcodefactory/)
 *   [ Tom Anbinder ](https://profiles.wordpress.org/anbinder/)
 *   [ Pablo Pacheco ](https://profiles.wordpress.org/karzin/)
 *   [ Omar AlDabbas ](https://profiles.wordpress.org/omardabbas/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/conditional-payment-gateways-for-woocommerce/)