Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Mastercard::is_in_test_mode_onboarding
Try to determine if the payment gateway is in test mode onboarding (aka sandbox).
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: Mastercard{}
No Hooks.
Returns
bool. True if the payment gateway is in test mode onboarding, false otherwise.
Usage
$Mastercard = new Mastercard(); $Mastercard->is_in_test_mode_onboarding( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (required)
- The payment gateway object.
Mastercard::is_in_test_mode_onboarding() Mastercard::is in test mode onboarding code WC 11.1.2
public function is_in_test_mode_onboarding( WC_Payment_Gateway $payment_gateway ): bool {
return $this->is_mastercard_in_sandbox_mode( $payment_gateway ) ?? parent::is_in_test_mode_onboarding( $payment_gateway );
}