Exemplo n.º 1
0
        public async Task <IActionResult> ReceiveMoney()
        {
            try
            {
                var notify = await _client.ExecuteAsync <LianLianPayReceiveMoneyNotify>(Request, _optionsAccessor.Value);

                Console.WriteLine("NoOrder: " + notify.NoOrder);
                return(LianLianPayNotifyResult.Success);
            }
            catch
            {
                return(NoContent());
            }
        }
Exemplo n.º 2
0
        public async Task <IActionResult> QuickPayReturn()
        {
            try
            {
                var notify = await _notifyClient.ExecuteAsync <LianLianPayReceiveMoneyReturnResponse>(Request, _optionsAccessor.Value);

                ViewData["response"] = "支付成功";
                return(View());
            }
            catch
            {
                ViewData["response"] = "出现错误";
                return(View());
            }
        }