Skip to content

Commit 38b5127

Browse files
Removed redundant balance check
1 parent 5f16430 commit 38b5127

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Services/XummOrderService.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,6 @@ public async Task<string> GetRefundRedirectUrlAsync(Guid orderGuid, decimal amou
223223
throw new NopException($"{XummDefaults.SystemName} Can't parse amount {balanceReceived.Value} of order with GUID {order.OrderGuid}.");
224224
}
225225

226-
if (amountToRefund > amount)
227-
{
228-
throw new NopException($"{XummDefaults.SystemName} Requested refund is higher than received amount for order with GUID {order.OrderGuid}.");
229-
}
230-
231226
if (string.IsNullOrEmpty(balanceReceived.CounterParty))
232227
{
233228
refundTransaction.SetSendMaxAmount(amountToRefund);

0 commit comments

Comments
 (0)