summaryrefslogtreecommitdiff
path: root/nexus/src
diff options
context:
space:
mode:
authorMS <ms@taler.net>2020-06-08 17:30:10 +0200
committerMS <ms@taler.net>2020-06-08 17:30:10 +0200
commitb39c7a19aab086279959b6c16a292d3111b532aa (patch)
treed5e8d37052b2e00e4c72cb732ff942517174bccf /nexus/src
parent1656ff8ac1ff4a70121b8ae67933a165b3dfa516 (diff)
downloadlibeufin-b39c7a19aab086279959b6c16a292d3111b532aa.tar.gz
libeufin-b39c7a19aab086279959b6c16a292d3111b532aa.tar.bz2
libeufin-b39c7a19aab086279959b6c16a292d3111b532aa.zip
enabling Taler ingestion task, and get it tested.
Diffstat (limited to 'nexus/src')
-rw-r--r--nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt2
-rw-r--r--nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt1
2 files changed, 2 insertions, 1 deletions
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
index 18c1bfa8..1f5e59b5 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/Main.kt
@@ -266,7 +266,7 @@ fun schedulePeriodicWork() {
logger.debug("Outer background job")
try {
downloadTalerFacadesTransactions()
- // ingestTalerTransactions()
+ ingestTalerTransactions()
submitPreparedPaymentsViaEbics()
} catch (e: Exception) {
val sw = StringWriter()
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
index 7b42ff02..bee7cbf6 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/taler.kt
@@ -467,6 +467,7 @@ fun ingestTalerTransactions() {
HttpStatusCode.InternalServerError,
"Payment '${it.unstructuredRemittanceInformation}' shows in history, but was never requested!"
)
+ logger.debug("Payment: ${it.unstructuredRemittanceInformation} was requested, and gets now marked as 'confirmed'")
talerRequested.rawConfirmed = it
}
lastId = it.id.value