From ecc217f694e03e660ef54bbada24fcb4ee59a728 Mon Sep 17 00:00:00 2001
From: zhengyuxuan <zhengyuxuan1995>
Date: 星期五, 21 三月 2025 09:33:12 +0800
Subject: [PATCH] 回单下载

---
 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