Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders

AmazonPay::is_account_connectedpublicWC 1.0

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

Метод класса: AmazonPay{}

Хуков нет.

Возвращает

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.

Использование

$AmazonPay = new AmazonPay();
$AmazonPay->is_account_connected( $payment_gateway ): bool;
$payment_gateway(WC_Payment_Gateway) (обязательный)
The payment gateway object.

Код AmazonPay::is_account_connected() WC 11.0.1

public function is_account_connected( WC_Payment_Gateway $payment_gateway ): bool {
	return $this->is_amazon_pay_onboarded( $payment_gateway ) ?? parent::is_account_connected( $payment_gateway );
}