From e36c27c0e032ed402c3b23a0de5175e3fe7ccbe0 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 2 Sep 2024 19:36:43 +0200 Subject: [PATCH] Added Decoupled response code of Sparkasse --- .../kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt index e83745a8..941d990f 100644 --- a/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt +++ b/fints4k/src/commonMain/kotlin/net/codinux/banking/fints/FinTsJobExecutor.kt @@ -452,7 +452,8 @@ open class FinTsJobExecutor( val tanFeedbacks = response.segmentFeedbacks.filter { it.referenceSegmentNumber == MessageBuilder.SignedMessagePayloadFirstSegmentNumber } if (tanFeedbacks.isNotEmpty()) { // new feedback code for Decoupled TAN: 0900 Sicherheitsfreigabe gültig - val isTanApproved = tanFeedbacks.any { it.feedbacks.any { it.responseCode == 900 } } + // Sparkasse responds for pushTan with: HIRMS:4:2:3+0020::Der Auftrag wurde ausgeführt.+0020::Die gebuchten Umsätze wurden übermittelt.' + val isTanApproved = tanFeedbacks.any { it.feedbacks.any { it.responseCode == 900 || it.responseCode == 20 } } if (isTanApproved) { return response }