Title: CartMend Payment Method Rules for WooCommerce
Author: CartMend
Published: <strong>7 آگسٽ 2026</strong>
Last modified: 7 آگسٽ 2026

---

پلگ انس ڳولھيو

![](https://ps.w.org/cartmend-payment-rules/assets/banner-772x250.png?rev=3638788)

![](https://ps.w.org/cartmend-payment-rules/assets/icon-256x256.png?rev=3638788)

# CartMend Payment Method Rules for WooCommerce

 کان: [CartMend](https://profiles.wordpress.org/cartmendmodule/)

[ڊائون لوڊ ڪريو](https://downloads.wordpress.org/plugin/cartmend-payment-rules.1.1.4.zip)

 * [تفصيل](https://snd.wordpress.org/plugins/cartmend-payment-rules/#description)
 * [جائزو](https://snd.wordpress.org/plugins/cartmend-payment-rules/#reviews)
 *  [تنصيب](https://snd.wordpress.org/plugins/cartmend-payment-rules/#installation)
 * [ترقي](https://snd.wordpress.org/plugins/cartmend-payment-rules/#developers)

 [سھائتا](https://wordpress.org/support/plugin/cartmend-payment-rules/)

## وضاحت

**CartMend Payment Method Rules for WooCommerce** lets you conditionally hide or
show payment gateways at checkout — without writing a single line of code. Create
as many rules as you need, each targeting one gateway with one or more conditions
combined with AND/OR logic. It works on **both** the classic shortcode checkout 
and the new **block (Gutenberg) checkout**, and it adds **zero JavaScript and zero
jQuery** to your storefront.

Common things store owners use it for:

 * Hide **Cash on Delivery** for orders over a certain amount (reduce fraud and 
   unpaid COD).
 * Hide **PayPal** (or any gateway) for specific billing countries.
 * Show a gateway **only** for a chosen country (whitelist mode).

#### Features

 * Unlimited rules, each targeting one payment gateway.
 * Action per rule: **Hide** or **Show only**.
 * Each rule can combine multiple conditions with **AND/OR** logic: **Billing country**(
   is in / is not in a list) and/or **Cart subtotal** (greater than / less than /
   equal to / between).
 * Enable/disable toggle per rule.
 * Admin-only **debug notice** at checkout that tells you exactly which rule fired
   and why.
 * Works on classic checkout, block checkout, and the order-pay page.
 * HPOS (High-Performance Order Storage) compatible.
 * Lightweight: no frontend JavaScript, no jQuery, no bloat.

## انسٽاليشن

 1. Upload the plugin to `/wp-content/plugins/` or install it from **Plugins  Add New**.
 2. Activate **CartMend Payment Method Rules for WooCommerce**.
 3. Make sure WooCommerce is active and you have at least one payment gateway enabled.
 4. Go to **WooCommerce  Settings  Payment Rules**.
 5. Add a rule: choose a gateway, an action (Hide / Show only), and one or more conditions(
    Billing country and/or Cart subtotal). Add more rules or conditions as needed, 
    then save.

## FAQ

### Does it work with the new block (Gutenberg) checkout?

Yes. The core hide/show logic runs server-side through WooCommerce’s `woocommerce_available_payment_gateways`
filter, which now fires in the block/Store API checkout as well as the classic shortcode
checkout and the order-pay page.

### Will it work with Stripe, PayPal, Square and other gateways?

Yes. The plugin filters whatever active gateways WooCommerce exposes, including 
third-party gateways, as long as they are enabled in WooCommerce.

### My rule isn’t working. What should I check?

Enable the admin-only debug notice by viewing checkout while logged in as a shop
manager/admin — it shows which rule fired and why. Also confirm the gateway is enabled
in WooCommerce and that any full-page cache excludes the checkout page.

### Does it slow down checkout?

No. Rules are evaluated in plain PHP from a single cached option, with no extra 
database queries during checkout, and no frontend JavaScript.

### Does it collect any data?

No. The plugin sends no telemetry.

## جائزا

ھن پلگ ان لاءِ ڪي به رايا ناھن.

## تعاون ڪندڙ & ڊولپرز

“CartMend Payment Method Rules for WooCommerce” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن
ھن پلگ ان ۾ حصو ورتو آھي.

تعاون ڪندڙ

 *   [ CartMend ](https://profiles.wordpress.org/cartmendmodule/)

[ترجمو ڪريو “CartMend Payment Method Rules for WooCommerce” توهان جي ٻولي ۾.](https://translate.wordpress.org/projects/wp-plugins/cartmend-payment-rules)

### ڊولپمينٽ ۾ دلچسپي؟

[ڪوڊ براؤز ڪريو](https://plugins.trac.wordpress.org/browser/cartmend-payment-rules/)،
چيڪ ڪريو [SVN مخزن](https://plugins.svn.wordpress.org/cartmend-payment-rules/)، 
يا رڪنيت حاصل ڪريو [ڊولپمينٽ لاگ](https://plugins.trac.wordpress.org/log/cartmend-payment-rules/)
پاران [RSS](https://plugins.trac.wordpress.org/log/cartmend-payment-rules/?limit=100&mode=stop_on_copy&format=rss).

## لاگ تبدیل ڪريو

#### 1.1.4

 * The free version now supports unlimited rules with AND/OR condition logic.
 * Each rule can combine multiple conditions (billing country and/or cart subtotal).
 * Added an “equal to” comparison for cart subtotal.
 * Removed a leftover empty init hook.

#### 1.1.3

 * Confirmed the plugin ships exactly the billing country and cart subtotal condition
   types shown in the settings screen.
 * Renamed to lead with brand.
 * Fixed contributors.
 * Moved inline debug style to an enqueued stylesheet.

#### 1.0.0

 * Initial release.
 * One rule: hide or show a payment gateway by billing country or cart subtotal.
 * Works on classic checkout, block (Store API) checkout, and order-pay page.
 * Admin-only checkout debug notice.
 * HPOS and Cart/Checkout Blocks compatibility declared.

## ميٽا

 *  Version **1.1.4**
 *  Last updated **5 ڏينهَن اڳ**
 *  Active installations **10 کان گھٽ**
 *  WordPress version ** 5.5 يا وڌيڪ **
 *  Tested up to **7.0.4**
 *  PHP version ** 7.4 يا وڌيڪ **
 *  Language
 * [English (US)](https://wordpress.org/plugins/cartmend-payment-rules/)
 * Tags
 * [conditional payments](https://snd.wordpress.org/plugins/tags/conditional-payments/)
   [hide payment method](https://snd.wordpress.org/plugins/tags/hide-payment-method/)
   [payment gateways](https://snd.wordpress.org/plugins/tags/payment-gateways/)[payment methods](https://snd.wordpress.org/plugins/tags/payment-methods/)
   [woocommerce](https://snd.wordpress.org/plugins/tags/woocommerce/)
 *  [ترقي يافته ڏيک](https://snd.wordpress.org/plugins/cartmend-payment-rules/advanced/)

## درجه بندي

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/cartmend-payment-rules/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/cartmend-payment-rules/reviews/)

## تعاون ڪندڙ

 *   [ CartMend ](https://profiles.wordpress.org/cartmendmodule/)

## سھائتا

چوڻ لاءِ ڪجهه آهي؟ مدد گهرجي؟

 [ڏسو سپورٽ فورم](https://wordpress.org/support/plugin/cartmend-payment-rules/)