Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
PayPal::is_onboarding_completed
Check if the payment gateway has completed the onboarding process.
Method of the class: PayPal{}
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
$PayPal = new PayPal(); $PayPal->is_onboarding_completed( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (required)
- The payment gateway object.
PayPal::is_onboarding_completed() PayPal::is onboarding completed code WC 10.8.1
public function is_onboarding_completed( WC_Payment_Gateway $payment_gateway ): bool {
return $this->is_paypal_onboarded( $payment_gateway ) ?? parent::is_onboarding_completed( $payment_gateway );
}