Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
NexiCheckout::is_in_test_mode_onboarding
Try to determine if the payment gateway is in test mode onboarding (aka sandbox or test-drive).
Method of the class: NexiCheckout{}
No Hooks.
Returns
true|false. True if the payment gateway is in test mode onboarding, false otherwise.
Usage
$NexiCheckout = new NexiCheckout(); $NexiCheckout->is_in_test_mode_onboarding( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (required)
- The payment gateway object.
NexiCheckout::is_in_test_mode_onboarding() NexiCheckout::is in test mode onboarding code WC 10.8.1
public function is_in_test_mode_onboarding( WC_Payment_Gateway $payment_gateway ): bool {
return $this->is_nexi_in_sandbox_mode( $payment_gateway ) ?? parent::is_in_test_mode_onboarding( $payment_gateway );
}