From 95d5b5815069a4c4b3c04a085765c0147a22fbc8 Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期一, 24 三月 2025 18:03:17 +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