Payment(String apiKey, String url, [T? httpClient]) : _httpClient = httpClient ?? PaymentGateway(apiKey: apiKey, url: url) as T;