From 950faab6ce4fc1f9d699fb3356442681e6dad68c Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Fri, 15 Nov 2024 17:26:09 +0100 Subject: [PATCH] PayPal: Only the frist refund was accepted by PayPal (cherry picked from commit 7f6905c51f393f4ae8df85b352b595c629efaa2c) --- .../Smartstore.PayPal/Client/PayPalHttpClient.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Smartstore.Modules/Smartstore.PayPal/Client/PayPalHttpClient.cs b/src/Smartstore.Modules/Smartstore.PayPal/Client/PayPalHttpClient.cs index 10ff680d0b..c7ffb166c8 100644 --- a/src/Smartstore.Modules/Smartstore.PayPal/Client/PayPalHttpClient.cs +++ b/src/Smartstore.Modules/Smartstore.PayPal/Client/PayPalHttpClient.cs @@ -343,8 +343,7 @@ public virtual async Task RefundPaymentAsync(RefundPaymentReques } var refundRequest = new CapturesRefundRequest(request.Order.CaptureTransactionId) - .WithBody(message) - .WithRequestId(request.Order.Id.ToString()); + .WithBody(message); var response = await ExecuteRequestAsync(refundRequest, request.Order.StoreId, cancelToken);