WordPress at Your Fingertips
function is not described

WC_Cart::needs_payment() public WC 1.0

Looks at the totals to see if payment is actually required.

{} It's a method of the class: WC_Cart{}

Hooks from the method
Return

true|false.

Usage

$WC_Cart = new WC_Cart();
$WC_Cart->needs_payment();

Code of WC_Cart::needs_payment() WC 5.7.1

public function needs_payment() {
	return apply_filters( 'woocommerce_cart_needs_payment', 0 < $this->get_total( 'edit' ), $this );
}