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