• Resolved enterteinment

    (@enterteinment)


    Hi sir, I’m using your plugin WooCommerce Stripe Payment Gateway.

    I want to hide stripe payment gateway when the currency is selected in INR.

    If you have any code that helps me out.

    Thank you for creating an awesome plugin for Us.

Viewing 1 replies (of 1 total)
  • Plugin Author WebToffee

    (@webtoffee)

    Hi @enterteinment,

    Please use below code snippet in your active theme’s functions.php to hide the stripe payment gateway when the currency selected is INR.

    add_action( 'woocommerce_available_payment_gateways', 'eh_disable_gateway_for_stripe_credit_card_gateway' );
        function eh_disable_gateway_for_stripe_credit_card_gateway( $available_gateways ) {
    	    $currency = get_woocommerce_currency();
            if ( $currency == 'INR' ) {
               unset( $available_gateways['eh_stripe_pay'] );
            }
            return $available_gateways;
        }
Viewing 1 replies (of 1 total)
  • The topic ‘Hide on Checkout when currency is in INR’ is closed to new replies.