Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Stripe::is_onboarding_started
Check if the payment gateway has started the onboarding process.
Метод класса: Stripe{}
Хуков нет.
Возвращает
bool. True if the payment gateway has started the onboarding process, false otherwise. If the payment gateway does not provide the information, it will infer it from having a connected account.
Использование
$Stripe = new Stripe(); $Stripe->is_onboarding_started( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (обязательный)
- The payment gateway object.
Код Stripe::is_onboarding_started() Stripe::is onboarding started WC 11.1.1
public function is_onboarding_started( WC_Payment_Gateway $payment_gateway ): bool {
// Fall back to inferring this from having a connected account.
return $this->is_account_connected( $payment_gateway );
}