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