Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders

Paymob::is_account_connectedpublicWC 1.0

Check if the payment gateway has a payments processor account connected.

Method of the class: Paymob{}

No Hooks.

Returns

true|false. True if the payment gateway account is connected, false otherwise. If the payment gateway does not provide the information, it will return true.

Usage

$Paymob = new Paymob();
$Paymob->is_account_connected( $payment_gateway ): bool;
$payment_gateway(WC_Payment_Gateway) (required)
The payment gateway object.

Paymob::is_account_connected() code WC 10.8.1

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 );
}