issue #24631 - Updated needs payment check to use order
This commit is contained in:
parent
51029986b5
commit
c054a2803b
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue