• Resolved Bunty Pundir

    (@bunty-pundir)


    I want to disable the payapal express checkout for indian customers. I am using a code to disable this payment options if the customer billing country is India:

    if ( isset( $available_payment_gateways[‘ppcp’] ) && WC()->customer->get_billing_country() == ‘IN’ ) {
    unset( $available_payment_gateways[‘ppcp’]);

    I can see it is disabling this payment method, but the express checkout still stays on top. Even if I disable your payment methods, the express checkout still shows. How can I remove it if the customer is from India, I want to know because no one uses PayPal in india.

Viewing 1 replies (of 1 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @bunty-pundir

    Make sure your site is correctly triggering the jQuery event updated_checkout. WooCommerce uses that event to refresh the checkout page HTML when the checkout page fields change.

    Kind Regards

Viewing 1 replies (of 1 total)
  • The topic ‘Disable Express checkout’ is closed to new replies.