From fedc3ae6cde6e94eac723d91488ca8e8ab0e5cf1 Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期二, 25 三月 2025 14:44:50 +0800
Subject: [PATCH] fix:退款订单号bug修复

---
 LifePayment/LifePayment.Domain/Ali/AliPayApi.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/LifePayment/LifePayment.Domain/Ali/AliPayApi.cs b/LifePayment/LifePayment.Domain/Ali/AliPayApi.cs
index 40ccd7c..daf94ef 100644
--- a/LifePayment/LifePayment.Domain/Ali/AliPayApi.cs
+++ b/LifePayment/LifePayment.Domain/Ali/AliPayApi.cs
@@ -4,6 +4,7 @@
 using Alipay.EasySDK.Payment.FaceToFace.Models;
 using LifePayment.Domain.Shared;
 using Microsoft.Extensions.Options;
+using Nest;
 using System.Threading.Tasks;
 
 namespace LifePayment.Domain
@@ -33,5 +34,12 @@
             AlipayTradeQueryResponse response = Factory.Payment.Common().Query(input.OutTradeNo);
             return response;
         }
+
+        public async Task<AlipayTradeRefundResponse> TradeRefund(AlipayTradeRefundRequest input)
+        {
+            AlipayTradeRefundResponse response = Factory.Payment.Common().Refund(input.OutTradeNo,input.RefundAmount);
+            return response;
+        }
+
     }
 }
\ No newline at end of file

--
Gitblit v1.9.1