title: Show hide payment gateways based on checkout fields in Woocommerce
body: <p>In Woocommerce checkout page, I am trying to hide some payment gateways, keeping only <strong>"Cash on delivery"</strong> payment method (COD) when <strong>"Ship to a different address?"</strong> is checked.</p>
  
  <p>I have tried <a href="https://stackoverflow.com/questions/42513500/conditionally-hiding-et-showing-payment-gateways/42521529#42521529">Conditionally hiding et showing payment gateways</a> with some changes, but I didn't worked. I have tried also different answer codes without succes.</p>
  
  <p>How to keep only COD payment when <strong>"Ship to a different address?"</strong> is checked?</p>
  
  <p>Any help is appreciated.</p>