To disable specified payment method for specified currency you should add this code to functions.php
file in theme folder. This code should work with any currency switcher plugin. In this code PayPal payment method will be disabled for INR currency and Instamojo will be disabled for USD. This code should be changed for you requirements (currency and patment gateway).
If you do not use the child theme, remember that changes made to the functions.php
file will be overwritten when the theme is updated.
While copying code to functions.php
file it is not nessesary to copy <?php
opening tag.
If you do not use the child theme, remember that changes made to the functions.php
file will be overwritten when the theme is updated.
While copying code to functions.php
file it is not nessesary to copy <?php
opening tag.