Automattic\WooCommerce\Internal\Admin\Settings\PaymentProviders

MercadoPago::is_in_test_mode_onboardingpublicWC 1.0

Try to determine if the payment gateway is in test mode onboarding (aka sandbox or test-drive).

This is a best-effort attempt, as there is no standard way to determine this. Trust the true value, but don't consider a false value as definitive.

Method of the class: MercadoPago{}

No Hooks.

Returns

true|false. True if the payment gateway is in test mode onboarding, false otherwise.

Usage

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

MercadoPago::is_in_test_mode_onboarding() code WC 9.9.4

public function is_in_test_mode_onboarding( WC_Payment_Gateway $payment_gateway ): bool {
	$is_in_sandbox_mode = $this->is_mercado_pago_in_sandbox_mode();
	if ( ! is_null( $is_in_sandbox_mode ) ) {
		return $is_in_sandbox_mode;
	}

	return parent::is_in_test_mode( $payment_gateway );
}