From f11f151e6510ad06202e24530a268af57fbbae71 Mon Sep 17 00:00:00 2001 From: dinamiko Date: Thu, 4 Aug 2022 11:25:12 +0200 Subject: [PATCH] Disable gateways only for non PayPal funding sources --- modules/ppcp-wc-gateway/src/Checkout/DisableGateways.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ppcp-wc-gateway/src/Checkout/DisableGateways.php b/modules/ppcp-wc-gateway/src/Checkout/DisableGateways.php index dffecca37..b9fb934eb 100644 --- a/modules/ppcp-wc-gateway/src/Checkout/DisableGateways.php +++ b/modules/ppcp-wc-gateway/src/Checkout/DisableGateways.php @@ -107,7 +107,7 @@ class DisableGateways { */ private function needs_to_disable_gateways(): bool { $wc_ajax = filter_input( INPUT_GET, 'wc-ajax', FILTER_SANITIZE_STRING ) ?? ''; - if ( $wc_ajax === 'update_order_review' ) { + if ( $wc_ajax === 'update_order_review' && $this->session_handler->funding_source() !== 'paypal' ) { return false; }