Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders
PayPal::is_account_connected()
Check if the payment gateway has a payments processor account connected.
Метод класса: PayPal{}
Хуков нет.
Возвращает
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.
Использование
$PayPal = new PayPal(); $PayPal->is_account_connected( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (обязательный)
- The payment gateway object.
Код PayPal::is_account_connected() PayPal::is account connected WC 9.6.1
public function is_account_connected( WC_Payment_Gateway $payment_gateway ): bool { $is_paypal_onboarded = $this->is_paypal_onboarded(); if ( ! is_null( $is_paypal_onboarded ) ) { return $is_paypal_onboarded; } return parent::is_account_connected( $payment_gateway ); }