示例#1
0
 protected RaveRequestBase(raveConfig config)
 {
     Config     = config;
     HttpClient = new HttpClient()
     {
         BaseAddress = Config.IsLive
             ? new Uri(Rave.config.Const.LiveUrl)
             : new Uri(Rave.config.Const.SanboxUrl)
     };
     HttpClient.DefaultRequestHeaders.Accept.Clear();
     HttpClient.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));
 }
示例#2
0
 public RaveCardCharge(raveConfig conf) : base(conf)
 {
 }
示例#3
0
 internal ChargeBase(raveConfig conf)
 {
     Config         = conf;
     RaveApiRequest = new RaveRequest <T1, T2>(conf);
     PayDataEncrypt = new DataEncryption();
 }