I’m using this solution (in functions.php file):
add_filter( 'woocommerce_available_payment_gateways', 'hide_dotpay' );
function hide_dotpay( $gateways ) {
global $woocommerce_wpml;
$get_current_currency = $woocommerce_wpml->multi_currency_support->get_client_currency();
if( $get_current_currency == 'EUR' or $get_current_currency == 'USD')
unset( $gateways['your-gateway-1'] );
elseif ($get_current_currency == 'PLN') {
unset( $gateways['your-gateway-2'] );
}
return $gateways;
}
I mean qTranslate plugin. I added an entry in the wrong place.