Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders

KustomCheckout::needs_setup │ public │ WC 1.0

Check if the payment gateway needs setup.

Method of the class: KustomCheckout{}

No Hooks.

Returns

bool. True if the payment gateway needs setup, false otherwise.

Usage

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

KustomCheckout::needs_setup() code WC 11.3.0

public function needs_setup( WC_Payment_Gateway $payment_gateway ): bool {
	return ! empty( get_option( 'kco_credentials_error' ) );
}