Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
AmazonPay::is_onboarding_completed
Check if the payment gateway has completed the onboarding process.
Метод класса: AmazonPay{}
Хуков нет.
Возвращает
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.
Использование
$AmazonPay = new AmazonPay(); $AmazonPay->is_onboarding_completed( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (обязательный)
- The payment gateway object.
Код AmazonPay::is_onboarding_completed() AmazonPay::is onboarding completed WC 10.1.0
public function is_onboarding_completed( WC_Payment_Gateway $payment_gateway ): bool {
return $this->is_amazon_pay_onboarded( $payment_gateway ) ?? parent::is_onboarding_completed( $payment_gateway );
}