libeufin

Integration and sandbox testing for FinTech APIs and data formats
Log | Files | Refs | Submodules | README | LICENSE

commit 65e3e08d705ef2a8b82e6b6f3d1da09a24ff75b7
parent 7dfef458b8e5feb726117b8b3105bb524c84b5e2
Author: MS <ms@taler.net>
Date:   Sat,  7 Jan 2023 14:03:31 +0100

comment

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt @@ -677,6 +677,11 @@ private fun parsePain001(paymentRequest: String): PainParseResult { } } + /** + * NOTE: this check breaks the compatibility with pain.001, + * because that allows up to 5 fractional digits. For Taler + * compatibility however, we enforce the max 2 fractional digits policy. + */ if (!validatePlainAmount(txDetails.amt.textContent)) { throw EbicsProcessingError( "Amount number malformed: ${txDetails.amt.textContent}"