Automattic\WooCommerce\Internal\Admin\Settings\PaymentsProviders
Helcim::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.
Метод класса: Helcim{}
Хуков нет.
Возвращает
bool. True if the payment gateway is in test mode onboarding, false otherwise.
Использование
$Helcim = new Helcim(); $Helcim->is_in_test_mode_onboarding( $payment_gateway ): bool;
- $payment_gateway(WC_Payment_Gateway) (обязательный)
- The payment gateway object.
Код Helcim::is_in_test_mode_onboarding() Helcim::is in test mode onboarding WC 11.2.2
public function is_in_test_mode_onboarding( WC_Payment_Gateway $payment_gateway ): bool {
return $this->is_helcim_in_sandbox_mode( $payment_gateway ) ?? parent::is_in_test_mode_onboarding( $payment_gateway );
}