Disable Express checkout
-
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)
Viewing 1 replies (of 1 total)
- The topic ‘Disable Express checkout’ is closed to new replies.