Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders\WooPayments
WooPaymentsService::has_account
Determine if WooPayments has an account set up.
Method of the class: WooPaymentsService{}
No Hooks.
Returns
true|false. Whether WooPayments has an account set up.
Usage
// private - for code of main (parent) class only $result = $this->has_account(): bool;
WooPaymentsService::has_account() WooPaymentsService::has account code WC 10.8.1
private function has_account(): bool {
return $this->provider->is_account_connected( $this->get_payment_gateway() );
}