commit 0fd1c7e4c8e048ea2e2db666ce66d32cb41297e7
parent 551831843d5f8e6651020cdc7bada26c4d63d4cf
Author: MS <ms@taler.net>
Date: Wed, 1 Nov 2023 16:19:13 +0100
Fixing mock payment initiator.
It needed a well-formed receiver BIC and name and a timestamp
not older than 3 months. It's been observed however that the
bank test platform responded with EBICS_OK but did not show the
uploaded files in the Web UI.
Uploading the same content manually in the Web UI resulted instead
in a pain.002 report informing that the file was not valid.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/payment_initiation_debug.sh b/contrib/payment_initiation_debug.sh
@@ -30,7 +30,7 @@ echo database: $DB_NAME
# Optionally reading the user-provided request UID.
if test -n "${LIBEUFIN_SUBMIT_REQUEST_UID:-}"
then SUBMIT_REQUEST_UID="$LIBEUFIN_SUBMIT_REQUEST_UID"
- else SUBMIT_REQUEST_UID=$(uuidgen)
+ else SUBMIT_REQUEST_UID=$(uuidgen | cut -c -30)
fi
# Finally inserting the initiated payment into the database.
@@ -43,8 +43,8 @@ INSERT INTO libeufin_nexus.initiated_outgoing_transactions
request_uid)
VALUES ((1,0),
'${PAYMENT_SUBJECT}',
- 1,
- 'payto://iban/BIC/${IBAN_CREDITOR}',
+ $(($(date +%s) * 1000000)),
+ 'payto://iban/POFICHBE/${IBAN_CREDITOR}?receiver-name=Merchant',
'${SUBMIT_REQUEST_UID}')"
# Only logging errors.