How to show-hide payment methods on condition base in WooCommerce
You can show-hide payment methods on condition base in WooCommerce just using a plugin named
Disable Payment Methods based on cart conditions for WooCommerce
Enable or disable WooCommerce payment gateways based on cart conditions like the order total.
Examples:
Enable paypal for orders higher than $100
Enable credit card only when the order total is higher than $1000
Disable stripe when the order total is < than $30
Enable “cash on delivery” when the order total is lower than $10
Only allow bank transfers for orders > $1000
Use Cases:
Save money by using the cheapest payment processors when the order total is too low
Make more money by enabling the best payment gateway based on the user order
Hide payment gateways that don’t allow transactions < $5 or charge too much fees on small transactions
Features:
The free plugin works with:
All payment gateways
You can create unlimited conditions for every gateway or multiple gateways at once
You can create AND and OR conditions. i.e. “Enable paypal when the total order is > $100 and < $200”
You can use conditions based on “cart total”, “subtotal”, and “subtotal exc. taxes” only
Extra conditions available on the premium plugin:
Enable or disable payment methods based on the user address
Enable or disable payment methods for specific city
Enable or disable payment methods for specific user state
Enable or disable payment methods for specific zip code
Enable or disable payment methods for specific country
Enable or disable payment methods for specific user roles
Enable or disable payment methods for old or new customers
Enable or disable payment methods based on customer registration date
Enable or disable payment methods based on previous customers orders
etc.
Enable or disable payment methods for category
Enable or disable payment methods based on product height
Enable or disable payment methods based on product length
Enable or disable payment methods based on product weight
Enable or disable payment methods based on the product quantity
Enable or disable payment methods for specific product brands
Enable or disable payment methods for specific product sizes or colors or attributes
Enable or disable payment methods for specific product taxonomies
etc.
You can enable payment methods based on cart information:
Enable or disable payment methods for specific coupons used
Enable or disable payment methods for specific shipping method
Enable or disable payment methods based on the products in the cart
Enable or disable payment methods based on the total tax
Enable or disable payment methods based on the total weight
Enable or disable payment methods based on the total coupon discounts
Enable or disable payment methods based on the total shipping cost
Enable or restrict payment methods based on the currency
etc.
You can rotate payment methods:
– Enable or disable payment methods by day of the week, day of the month, month, year, or full date
– Rotate payment methods for every order. For example: bank account 1 for order 1, bank account 2 for order 2, etc.
Search For This Plugin In your wordpress add new plugin section or download from wordpress org https://wordpress.org/plugins/woo-conditional-payment-gateways/