Automattic\WooCommerce\Admin\Features\OnboardingTasks\Tasks

WooCommercePayments::is_complete()publicWC 1.0

Task completion.

Method of the class: WooCommercePayments{}

No Hooks.

Return

true|false.

Usage

$WooCommercePayments = new WooCommercePayments();
$WooCommercePayments->is_complete();

WooCommercePayments::is_complete() code WC 9.7.1

public function is_complete() {
	if ( null === $this->is_complete_result ) {
		// This task is complete if there are other ecommerce gateways enabled (offline payment methods are excluded),
		// or if WooPayments is active and has a connected, fully onboarded account.
		$this->is_complete_result = self::has_other_ecommerce_gateways() || ( self::is_connected() && ! self::is_account_partially_onboarded() );
	}

	return $this->is_complete_result;
}