Procházet zdrojové kódy

删除"条码支付异步通知" 并无此项通知

Roc před 7 roky
rodič
revize
193601db68

+ 0 - 25
samples/WebApplicationSample/Controllers/NotifyController.cs

@@ -52,31 +52,6 @@ namespace WebApplicationSample.Controllers
             }
         }
 
-        /// <summary>
-        /// 条码支付异步通知
-        /// </summary>
-        /// <returns></returns>
-        [Route("pay")]
-        [HttpPost]
-        public async Task<IActionResult> Pay()
-        {
-            try
-            {
-                var notify = await _client.ExecuteAsync<AlipayTradePayNotifyResponse>(Request);
-                if ("TRADE_SUCCESS" == notify.TradeStatus)
-                {
-                    Console.WriteLine("OutTradeNo: " + notify.OutTradeNo);
-
-                    return AlipayNotifyResult.Success;
-                }
-                return NoContent();
-            }
-            catch
-            {
-                return NoContent();
-            }
-        }
-
         /// <summary>
         /// APP支付异步通知
         /// </summary>

+ 0 - 183
src/Essensoft.AspNetCore.Payment.Alipay/Notify/AlipayTradePayNotifyResponse.cs

@@ -1,183 +0,0 @@
-using Newtonsoft.Json;
-
-namespace Essensoft.AspNetCore.Payment.Alipay.Notify
-{
-    /// <summary>
-    /// 条码支付异步通知
-    /// 更新时间:2017/08/24 
-    /// </summary>
-    public class AlipayTradePayNotifyResponse : AlipayNotifyResponse
-    {
-        // 公共参数
-
-        /// <summary>
-        /// 通知时间
-        /// </summary>
-        [JsonProperty("notify_time")]
-        public string NotifyTime { get; set; }
-
-        /// <summary>
-        /// 通知类型
-        /// </summary>
-        [JsonProperty("notify_type")]
-        public string NotifyType { get; set; }
-
-        /// <summary>
-        /// 通知校验ID
-        /// </summary>
-        [JsonProperty("notify_id")]
-        public string NotifyId { get; set; }
-
-        /// <summary>
-        /// 签名类型
-        /// </summary>
-        [JsonProperty("sign_type")]
-        public string SignType { get; set; }
-
-        /// <summary>
-        /// 签名
-        /// </summary>
-        [JsonProperty("sign")]
-        public string Sign { get; set; }
-
-        // 业务参数
-
-        /// <summary>
-        /// 支付宝交易号
-        /// </summary>
-        [JsonProperty("trade_no")]
-        public string TradeNo { get; set; }
-
-        /// <summary>
-        /// 开发者的app_id
-        /// </summary>
-        [JsonProperty("app_id")]
-        public string AppId { get; set; }
-
-        /// <summary>
-        /// 商户订单号
-        /// </summary>
-        [JsonProperty("out_trade_no")]
-        public string OutTradeNo { get; set; }
-
-        /// <summary>
-        /// 商户业务号
-        /// </summary>
-        [JsonProperty("out_biz_no")]
-        public string OutBizNo { get; set; }
-
-        /// <summary>
-        /// 买家支付宝用户号
-        /// </summary>
-        [JsonProperty("buyer_id")]
-        public string BuyerId { get; set; }
-
-        /// <summary>
-        /// 买家支付宝账号
-        /// </summary>
-        [JsonProperty("buyer_logon_id")]
-        public string BuyerLogonId { get; set; }
-
-        /// <summary>
-        /// 卖家支付宝用户号
-        /// </summary>
-        [JsonProperty("seller_id")]
-        public string SellerId { get; set; }
-
-        /// <summary>
-        /// 卖家支付宝账号
-        /// </summary>
-        [JsonProperty("seller_email")]
-        public string SellerEmail { get; set; }
-
-        /// <summary>
-        /// 交易状态
-        /// </summary>
-        [JsonProperty("trade_status")]
-        public string TradeStatus { get; set; }
-
-        /// <summary>
-        /// 订单金额
-        /// </summary>
-        [JsonProperty("total_amount")]
-        public string TotalAmount { get; set; }
-
-        /// <summary>
-        /// 实收金额
-        /// </summary>
-        [JsonProperty("receipt_amount")]
-        public string ReceiptAmount { get; set; }
-
-        /// <summary>
-        /// 开票金额
-        /// </summary>
-        [JsonProperty("invoice_amount")]
-        public string InvoiceAmount { get; set; }
-
-        /// <summary>
-        /// 付款金额
-        /// </summary>
-        [JsonProperty("buyer_pay_amount")]
-        public string BuyerPayAmount { get; set; }
-
-        /// <summary>
-        /// 集分宝金额
-        /// </summary>
-        [JsonProperty("point_amount")]
-        public string PointAmount { get; set; }
-
-        /// <summary>
-        /// 总退款金额
-        /// </summary>
-        [JsonProperty("refund_fee")]
-        public string RefundFee { get; set; }
-
-        /// <summary>
-        /// 实际退款金额
-        /// </summary>
-        [JsonProperty("send_back_fee")]
-        public string SendBackFee { get; set; }
-
-        /// <summary>
-        /// 订单标题
-        /// </summary>
-        [JsonProperty("subject")]
-        public string Subject { get; set; }
-
-        /// <summary>
-        /// 商品描述
-        /// </summary>
-        [JsonProperty("body")]
-        public string Body { get; set; }
-
-        /// <summary>
-        /// 交易创建时间
-        /// </summary>
-        [JsonProperty("gmt_create")]
-        public string GmtCreate { get; set; }
-
-        /// <summary>
-        /// 交易付款时间
-        /// </summary>
-        [JsonProperty("gmt_payment")]
-        public string GmtPayment { get; set; }
-
-        /// <summary>
-        /// 交易退款时间
-        /// </summary>
-        [JsonProperty("gmt_refund")]
-        public string GmtRefund { get; set; }
-
-        /// <summary>
-        /// 交易结束时间
-        /// </summary>
-        [JsonProperty("gmt_close")]
-        public string GmtClose { get; set; }
-
-        /// <summary>
-        /// 支付金额信息
-        /// </summary>
-        [JsonProperty("fund_bill_list")]
-        public string FundBillList { get; set; }
-    }
-}