NOTE: this value is only read during client creation, so creating a client and _then_ calling this method won't affect your client's behavior. * * @param int $maxNetworkRetries maximum number of request retries */ public static function setMaxNetworkRetries($maxNetworkRetries) { self::$maxNetworkRetries = $maxNetworkRetries; } /** * @return float Maximum delay between retries, in seconds */ public static function getMaxNetworkRetryDelay() { return self::$maxNetworkRetryDelay; } /** * @return float Maximum delay between retries, in seconds, that will be respected from the Stripe API */ public static function getMaxRetryAfter() { return self::$maxRetryAfter; } /** * @return float Initial delay between retries, in seconds */ public static function getInitialNetworkRetryDelay() { return self::$initialNetworkRetryDelay; } /** * @return bool Whether client telemetry is enabled */ public static function getEnableTelemetry() { return self::$enableTelemetry; } /** * @param bool $enableTelemetry Enables client telemetry. * * Client telemetry enables timing and request metrics to be sent back to Stripe as an HTTP Header * with the current request. This enables Stripe to do latency and metrics analysis without adding extra * overhead (such as extra network calls) on the client. */ public static function setEnableTelemetry($enableTelemetry) { self::$enableTelemetry = $enableTelemetry; } }