libeufin

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

commit a929485254f69d7028478b0ad232227e36dc076d
parent 4b8314699995083a48515b578ebed5da828c477f
Author: MS <ms@taler.net>
Date:   Wed,  5 Apr 2023 12:32:41 +0200

deleting cashouts with failed TAN

Diffstat:
Msandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt b/sandbox/src/main/kotlin/tech/libeufin/sandbox/CircuitApi.kt @@ -582,9 +582,12 @@ fun circuitApi(circuitRoute: Route) { " The command threw this exception: ${e.message}" ) } - if (!isSuccessful) + if (!isSuccessful) { + logger.error("Cashout ${op.uuid} failed, deleting it.") + transaction { op.delete() } throw internalServerError( "SMS TAN command failed for ${customer.phone}.") + } } SupportedTanChannels.FILE.name -> { try {