diff options
author | MS <ms@taler.net> | 2023-01-07 14:03:31 +0100 |
---|---|---|
committer | MS <ms@taler.net> | 2023-01-07 14:03:31 +0100 |
commit | 65e3e08d705ef2a8b82e6b6f3d1da09a24ff75b7 (patch) | |
tree | 014da3315bb9500e357c4b2fac499067fe9926da /sandbox | |
parent | 7dfef458b8e5feb726117b8b3105bb524c84b5e2 (diff) | |
download | libeufin-65e3e08d705ef2a8b82e6b6f3d1da09a24ff75b7.tar.gz libeufin-65e3e08d705ef2a8b82e6b6f3d1da09a24ff75b7.tar.bz2 libeufin-65e3e08d705ef2a8b82e6b6f3d1da09a24ff75b7.zip |
comment
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/src/main/kotlin/tech/libeufin/sandbox/EbicsProtocolBackend.kt | 5 |
1 files 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 index c2e235c5..d820f44f 100644 --- 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}" |