CartMend Conditional Payments for WooCommerce – Hide Payment Methods by Country & Cart Total

By CartMend

0+ active installationsVersion 1.1.5

Hide or show WooCommerce payment methods by billing country and cart subtotal. Unlimited AND/OR rules, no code, classic and block checkout.

Description

CartMend Conditional Payments hides or shows WooCommerce payment methods (payment gateways) at checkout based on the customer’s billing country and the cart subtotal. Create as many rules as you need, without code. It works on the classic shortcode checkout, the block checkout and the order-pay page, and adds no JavaScript or jQuery to your storefront.

Common uses:

  • Hide Cash on Delivery for orders over a certain amount (fewer unpaid COD orders).
  • Disable PayPal, Stripe or any other payment method for some countries.
  • Show a payment method only in one country or a list of countries.
  • Offer Bank Transfer only for large orders.

How it works

  1. Go to WooCommerce → Settings → Payment Rules and add a rule.
  2. Choose the payment method the rule applies to.
  3. Choose the action when the conditions match: Hide this payment method, or Show only this payment method (all others are hidden).
  4. Add one or more conditions — billing country and/or cart subtotal — and choose if ALL must match (AND) or ANY (OR).
  5. Save. At checkout, the payment methods update by your rules. Log in as admin to see a debug note that explains which rule matched.

Features

  • Unlimited rules, each targeting one payment gateway.
  • Action per rule: Hide or Show only.
  • Multiple conditions per rule with AND/OR logic.
  • Billing country condition: is in / is not in a list of countries.
  • Cart subtotal condition: greater than / less than / equal to / between.
  • Enable/disable toggle per rule.
  • Admin-only debug notice at checkout that shows which rule matched and why.
  • Works on classic checkout, block checkout and the order-pay page.
  • Works with any active gateway: Cash on Delivery, Bank Transfer, Cheque, Stripe, PayPal, WooPayments and third-party gateways.
  • HPOS (High-Performance Order Storage) compatible.
  • Lightweight: no frontend JavaScript, no jQuery, no telemetry.

Need help setting it up? https://cartmend.com/setup.html

Installation

  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

How do I hide Cash on Delivery for orders over a certain amount?

Add a rule for Cash on Delivery, action Hide, condition Cart subtotal – greater than your amount. Save. Customers with a larger cart will not see Cash on Delivery.

How do I show a payment method only in some countries?

Add a rule for that payment method, action Hide, condition Billing country – is not in the list, and select the countries where it should stay visible. Customers from any other country will not see it.

Can I hide a payment method by product, category, shipping method or user role?

Not at the moment. The conditions available are billing country and cart subtotal. Shipping country, products, categories, shipping methods and user roles are not conditions in this plugin.

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

Yes. The rules run server-side through WooCommerce’s woocommerce_available_payment_gateways filter, which is used by the block (Store API) checkout, 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?

Open the checkout while logged in as a shop manager or admin — a debug notice shows which rule matched and why. Also confirm the gateway is enabled in WooCommerce, the rule is enabled, and any full-page cache excludes the checkout page.

If I don’t add any rules, does anything change?

No. All payment methods show as usual until you add and enable a rule.

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.

Screenshots

Changelog

1.1.5

  • Tested with WordPress 7.1 and WooCommerce 11.2 (classic and block checkout, HPOS). No functional change.

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.