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.
In The Article
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:
- Go to WooCommerce → Settings → Payments → Conditions
- Click Add New Rule (or edit an existing rule)
- Enter a Rule Name (e.g., State-based restriction)
- Set Status = Enabled
Add Condition:
- Select State / Province
- Choose condition type (e.g., Equal to (=))
- Select the state (e.g., India → Goa)
👉 This condition can be applied based on both:
- Billing address state
- Shipping address state
Add Action:
- Choose Disable Payments Method
- Select the payment method(s) (e.g., Direct Bank Transfer)
- Save the rule
Once configured, the selected payment methods will be restricted for customers from that 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.