WooCommerce Payment Gateways by Shipping module lets you set “enable for shipping methods” for WooCommerce payment gateways.