Exemplo n.º 1
0
        public async Task WeChatPaymentNotify(WeChatPaymentNotifyMessageDTO model)
        {
            using (var client = new HttpClient())
            {
                client.DefaultRequestHeaders.Add("gooiosapikey", "896960bff18111e799160126c7e9f007");

                var reqUrl = $"http://paymentservice.gooios.com/api/wechatpaymentnotify/v1";

                var data    = JsonConvert.SerializeObject(model);
                var content = new StringContent(data, Encoding.UTF8, "application/json");

                var res = await client.PostAsync(reqUrl, content);
            }
        }
Exemplo n.º 2
0
        public void Post([FromBody] WeChatPaymentNotifyMessageDTO model)
        {
            var logTask = LogProvider.Trace(new Log
            {
                ApplicationKey       = "968960bff18111e799160126c7e9f008",
                AppServiceName       = "PartnerGateway",
                BizData              = JsonConvert.SerializeObject(model),
                CallerApplicationKey = "wechat",
                Exception            = "",
                Level       = LogLevel.INFO,
                LogTime     = DateTime.Now,
                Operation   = "paymentnotify",
                ReturnValue = ""
            });

            _notifyMessageAppService.AddWeChatPaymentNotifyMessage(model);
        }
 public void Post([FromBody] WeChatPaymentNotifyMessageDTO model)
 {
     _notifyMessageAppService.AddWeChatPaymentNotifyMessage(model);
 }
Exemplo n.º 4
0
 public async Task WeChatPaymentNotify(WeChatPaymentNotifyMessageDTO model)
 {
     await _paymentServiceProxy.WeChatPaymentNotify(model);
 }