gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 01/04: Fixing mock payment initiator.


From: gnunet
Subject: [libeufin] 01/04: Fixing mock payment initiator.
Date: Wed, 01 Nov 2023 16:29:51 +0100

This is an automated email from the git hooks/post-receive script.

ms pushed a commit to branch master
in repository libeufin.

commit 0fd1c7e4c8e048ea2e2db666ce66d32cb41297e7
Author: MS <ms@taler.net>
AuthorDate: Wed Nov 1 16:19:13 2023 +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.
---
 contrib/payment_initiation_debug.sh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/contrib/payment_initiation_debug.sh 
b/contrib/payment_initiation_debug.sh
index 8eb64496..0a18ae55 100755
--- 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.

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]