Пример #1
0
        public string ValidKey(O2OPayInput input)
        {
            var paramDic = BuildBasicParam(input);
            var result   = HttpRequestUtil.PostAsync($"{_apiGateWay}", paramDic).Result;

            return(result);
        }
Пример #2
0
        public O2OPayResponse CustomPay(O2OPayInput input)
        {
            var paramDic = BuildBasicParam(input);

            try
            {
                var result   = HttpRequestUtil.PostAsync($"{_apiGateWay}", paramDic).Result;
                var response = JsonConvert.DeserializeObject <O2OPayResponse>(result);
                return(response);
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }