[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] branch master updated: refund extra check
From: |
gnunet |
Subject: |
[libeufin] branch master updated: refund extra check |
Date: |
Thu, 04 Feb 2021 19:13:37 +0100 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
The following commit(s) were added to refs/heads/master by this push:
new 756578d refund extra check
756578d is described below
commit 756578d76e643edac693f932ad102d079e8d25dc
Author: MS <ms@taler.net>
AuthorDate: Thu Feb 4 19:13:06 2021 +0100
refund extra check
---
nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
index ad69951..fbb5882 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Taler.kt
@@ -448,10 +448,10 @@ fun prepareRefunds() {
}
// FIXME: investigate this amount!
val amount = paymentData.batches[0].batchTransactions[0].amount
- if (amount == null) {
- logger.error("Could not find the amount to refund for
transaction (AcctSvcrRef): ${paymentData.accountServicerRef}, aborting refund")
- throw NexusError(HttpStatusCode.InternalServerError, "Amount
to refund not found")
- }
+ NexusAssert(
+ it.payment.creditDebitIndicator == "CRDT",
+ "Cannot refund a _outgoing_ payment!"
+ )
// FIXME: the amount to refund should be reduced, according to the
refund fees.
addPaymentInitiation(
Pain001Data(
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libeufin] branch master updated: refund extra check,
gnunet <=