Merge pull request #769 from woocommerce/PCP-850-during-pay-pal-express-checkout-pui-is-available-as-a-payment-method

During PayPal express checkout all gateways are available as a payment method (850)
This commit is contained in:
Emili Castells 2022-08-08 09:26:53 +02:00 committed by GitHub
commit 59e257679f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,11 +106,6 @@ class DisableGateways {
* @return bool
*/
private function needs_to_disable_gateways(): bool {
$wc_ajax = filter_input( INPUT_GET, 'wc-ajax', FILTER_SANITIZE_STRING ) ?? '';
if ( $wc_ajax === 'update_order_review' ) {
return false;
}
$order = $this->session_handler->order();
if ( ! $order ) {
return false;