You could also disable shipping costs for specific payment method with the following code: