Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders

PayPal::is_onboarding_completed()publicWC 1.0

Check if the payment gateway has completed the onboarding process.

Метод класса: PayPal{}

Хуков нет.

Возвращает

true|false. True if the payment gateway has completed the onboarding process, false otherwise. If the payment gateway does not provide the information, it will infer it from having a connected account.

Использование

$PayPal = new PayPal();
$PayPal->is_onboarding_completed( $payment_gateway ): bool;
$payment_gateway(WC_Payment_Gateway) (обязательный)
The payment gateway object.

Код PayPal::is_onboarding_completed() WC 9.6.1

public function is_onboarding_completed( WC_Payment_Gateway $payment_gateway ): bool {
	$is_paypal_onboarded = $this->is_paypal_onboarded();
	if ( ! is_null( $is_paypal_onboarded ) ) {
		return $is_paypal_onboarded;
	}

	return parent::is_onboarding_completed( $payment_gateway );
}