Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders
MercadoPago::is_account_connected
Check if the payment gateway has a payments processor account connected.
Method of the class: MercadoPago{}
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
$MercadoPago = new MercadoPago(); $MercadoPago->is_account_connected( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (required)
- The payment gateway object.
MercadoPago::is_account_connected() MercadoPago::is account connected code WC 9.9.3
public function is_account_connected( WC_Payment_Gateway $payment_gateway ): bool { $is_onboarded = $this->is_mercado_pago_onboarded(); if ( ! is_null( $is_onboarded ) ) { return $is_onboarded; } return parent::is_account_connected( $payment_gateway ); }