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