package com.razorpay;


import okhttp3.OkHttpClient;
import okhttp3.logging.HttpLoggingInterceptor;

public class RazorpayClient {

    public PaymentClient Payment;
    public RefundClient Refund;
    public OrderClient Order;

    /**
     *
     * @param key Razorpay API key
     * @param secret Razorpay API secret
     */
    public RazorpayClient(String key, String secret){
        ApiUtils.setAuthCredentials(key, secret);
        HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
        logging.setLevel(HttpLoggingInterceptor.Level.BASIC);
        OkHttpClient client = new OkHttpClient.Builder()
                .addInterceptor(logging)
                .build();
        ApiUtils.setClient(client);
        Payment = new PaymentClient();
        Refund = new RefundClient();
        Order = new OrderClient();
    }

}

@@ -375,16 +375,134 @@
 ecret)%7B%0A
+        this(key, secret, false);%0A    %7D%0A%0A    public RazorpayClient(String key, String secret, boolean enableLogging)%7B%0A
         
@@ -610,24 +610,65 @@
 erceptor();%0A
+        if( enableLogging == true) %7B%0A    
         logg
@@ -717,16 +717,116 @@
 BASIC);%0A
+        %7D%0A        else %7B%0A            logging.setLevel(HttpLoggingInterceptor.Level.NONE);%0A        %7D%0A
         
@@ -1094,11 +1094,10 @@
 ;%0A    %7D%0A
-%0A
 %7D%0A

Add option to enable logging to RazorpayClient