With Payment Gateways by Shipping for WooCommerce Pro plugin you can enable your payment gateways for certain shipping methods only.
Settings are located in “WooCommerce > Settings > Payment Gateways by Shipping”.
- Use shipping instances
- Enable this if you want to use shipping methods instances (with shipping zones) instead of shipping methods. Save changes after enabling this option.
- Payment gateway X
- If payment gateway is only available for certain shipping methods, set it up here. Leave blank to enable for all shipping methods. Possible values: Flat rate; Free shipping; Local pickup; All other payment gateways.
- Default: None