Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Paymob::is_account_connected
Check if the payment gateway has a payments processor account connected.
Метод класса: Paymob{}
Хуков нет.
Возвращает
bool. True if the payment gateway account is connected, false otherwise. If the payment gateway does not provide the information, it will return true.
Использование
$Paymob = new Paymob(); $Paymob->is_account_connected( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (обязательный)
- The payment gateway object.
Код Paymob::is_account_connected() Paymob::is account connected WC 11.2.2
public function is_account_connected( WC_Payment_Gateway $payment_gateway ): bool {
// The Paymob gateway ties needs_setup only to the API keys, so if they are set, we consider the account connected.
return ! $this->needs_setup( $payment_gateway );
}