Do not check ajax for showing gateways

This commit is contained in:
dinamiko 2022-08-05 09:06:15 +02:00
parent f11f151e65
commit aa18a0982c

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' && $this->session_handler->funding_source() !== 'paypal' ) {
return false;
}
$order = $this->session_handler->order();
if ( ! $order ) {
return false;