diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 8fcffff7e4d..eaca7f582d8 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -643,7 +643,7 @@ class WC_Checkout { $result = $available_gateways[ $this->posted['payment_method'] ]->process_payment( $order_id ); // Redirect to success/confirmation/payment page - if ( 'success' === $result['result'] ) { + if ( isset( $result['result'] ) && 'success' === $result['result'] ) { $result = apply_filters( 'woocommerce_payment_successful_result', $result, $order_id );