Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders

AmazonPay::is_onboarding_completedpublicWC 1.0

Check if the payment gateway has completed the onboarding process.

Method of the class: AmazonPay{}

No Hooks.

Returns

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.

Usage

$AmazonPay = new AmazonPay();
$AmazonPay->is_onboarding_completed( $payment_gateway ): bool;
$payment_gateway(WC_Payment_Gateway) (required)
The payment gateway object.

AmazonPay::is_onboarding_completed() code WC 9.9.4

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

	return parent::is_onboarding_completed( $payment_gateway );
}