Exemplo n.º 1
0
        public async Task <IActionResult> FrontConsume62Return()
        {
            try
            {
                var notify = await _notifyClient.ExecuteAsync <UnionPayForm_6_2_FrontConsumeReturnResponse>(Request);

                return(Content("ok", "text/plain"));
            }
            catch
            {
                return(Content("error", "text/plain"));
            }
        }
Exemplo n.º 2
0
        public async Task <IActionResult> FrontConsume62()
        {
            try
            {
                var notify = await _client.ExecuteAsync <UnionPayForm_6_2_FrontConsumeNotifyResponse>(Request);

                Console.WriteLine("OrderId: " + notify.OrderId + " respCode :" + notify.RespCode);
                return(UnionPayNotifyResult.Ok);
            }
            catch
            {
                return(NoContent());
            }
        }
Exemplo n.º 3
0
        public async Task <IActionResult> FrontConsume62Return()
        {
            try
            {
                var notify = await _notifyClient.ExecuteAsync <UnionPayForm_6_2_FrontConsumeReturnResponse>(Request);

                ViewData["response"] = "支付成功";
                return(View());
            }
            catch
            {
                ViewData["response"] = "出现错误";
                return(View());
            }
        }
Exemplo n.º 4
0
        public async Task <IActionResult> AppConsume()
        {
            try
            {
                var notify = await _client.ExecuteAsync <UnionPayForm05_6_2_AppConsumeNotifyResponse>(Request);

                Console.WriteLine("OrderId: " + notify.OrderId + " respCode :" + notify.RespCode);
                return(Content("ok", "text/plain"));
            }
            catch
            {
                return(NoContent());
            }
        }