How to restrict payment methods based on the state in WooCommerce

The State / Province condition allows you to control payment methods based on the customer’s billing or shipping state.

Use this when you want to allow or restrict specific payment options for certain regions.

Benefits

  • Control payment methods by region
  • Reduce risk in specific states or areas
  • Apply location-based business rules
  • Improve checkout relevance for customers

How to Restrict Payments by State

Follow these steps to configure payment restrictions based on state:

  1. Go to WooCommerce → Settings → Payments → Conditions
  2. Click Add New Rule (or edit an existing rule)
  3. Enter a Rule Name (e.g., State-based restriction)
  4. Set Status = Enabled

Add Condition:

  1. Select State / Province
  2. Choose condition type (e.g., Equal to (=))
  3. Select the state (e.g., India → Goa)

👉 This condition can be applied based on both:

  • Billing address state
  • Shipping address state

Add Action:

  1. Choose Disable Payments Method
  2. Select the payment method(s) (e.g., Direct Bank Transfer)
  3. Save the rule
Admin: Configure state-based condition with selected region

Once configured, the selected payment methods will be restricted for customers from that state.

Front: Checkout page where payment methods are hidden based on selected state

Example Use Cases

  • Disable COD in high-risk states
  • Restrict bank transfer in specific regions
  • Allow only prepaid methods in selected areas
  • Apply region-specific payment policies

Conclusion

Restricting payment methods by state helps you control how customers pay based on their location. This is useful for managing risk, logistics, and regional business rules.


FAQs

1. Does this use billing or shipping state?

It can work with either, depending on the customer’s entered address during checkout.

2. What happens if the customer changes their state?

The available payment methods will update automatically based on the selected state.

3. Can I select multiple states?

Yes. You can select multiple states in a single rule.

4. Will this affect all products?

Yes. This condition applies to the entire cart unless combined with other conditions.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.