Merge pull request #757 from woocommerce/PCP-771-1-9-0-test-6-dcc-causes-pay-upon-invoice-gateway-to-disappear-after-checkout-validation-error

DCC causes other gateways to disappear after checkout validation error
This commit is contained in:
Emili Castells 2022-08-02 11:36:33 +02:00 committed by GitHub
commit b05112d056
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -106,6 +106,11 @@ 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;