diff --git a/includes/class-wc-checkout.php b/includes/class-wc-checkout.php index 195c8c2d7e5..9a90cbef4c0 100644 --- a/includes/class-wc-checkout.php +++ b/includes/class-wc-checkout.php @@ -1155,7 +1155,7 @@ class WC_Checkout { do_action( 'woocommerce_checkout_order_processed', $order_id, $posted_data, $order ); - if ( WC()->cart->needs_payment() ) { + if ( $order->needs_payment() ) { $this->process_order_payment( $order_id, $posted_data['payment_method'] ); } else { $this->process_order_without_payment( $order_id );