From 85de4f8a1ef46f61e57b4ec375186122c23a3212 Mon Sep 17 00:00:00 2001 From: zhengyuxuan <zhengyuxuan1995> Date: 星期四, 27 三月 2025 15:10:45 +0800 Subject: [PATCH] fix:新增支付宝查询 --- LifePayment/LifePayment.Domain/Ali/AliPayApi.cs | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/LifePayment/LifePayment.Domain/Ali/AliPayApi.cs b/LifePayment/LifePayment.Domain/Ali/AliPayApi.cs index 40ccd7c..4174021 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 @@ -28,10 +29,17 @@ return response; } - public AlipayTradeQueryResponse OrderInQuiry(OrderInQuiryInput input) + public async Task<AlipayTradeQueryResponse> OrderInQuiry(OrderInQuiryInput input) { 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