issue #24631 - Updated needs payment check to use order

This commit is contained in:
Dominic Vermeulen-Smith 2020-10-06 17:38:07 +01:00
parent 51029986b5
commit c054a2803b
1 changed files with 1 additions and 1 deletions

View File

@ -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 );