diff options
Diffstat (limited to 'src/cli/test_iban.sh')
-rwxr-xr-x | src/cli/test_iban.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/cli/test_iban.sh b/src/cli/test_iban.sh index 135ab02..f4d9085 100755 --- a/src/cli/test_iban.sh +++ b/src/cli/test_iban.sh | |||
@@ -86,13 +86,16 @@ trap cleanup EXIT | |||
86 | # to pass through the Nexus+Ebics layer to issue the payment | 86 | # to pass through the Nexus+Ebics layer to issue the payment |
87 | # $1 = amount ($CURRENCY:X.Y), $2 = subject. | 87 | # $1 = amount ($CURRENCY:X.Y), $2 = subject. |
88 | function wire_transfer_to_anastasis() { | 88 | function wire_transfer_to_anastasis() { |
89 | echo -n "Initiating wire transfer ..." | ||
89 | libeufin-sandbox make-transaction \ | 90 | libeufin-sandbox make-transaction \ |
90 | --debit-account=sandbox-account-debit \ | 91 | --debit-account=sandbox-account-debit \ |
91 | --credit-account=sandbox-account-credit "$1" "$2" | 92 | --credit-account=sandbox-account-credit "$1" "$2" &> libeufin-transfer-initiate.out |
92 | # Sync nexus with sandbox | 93 | echo " OK" |
94 | echo -n "Syncing nexus with sandbox ..." | ||
93 | export LIBEUFIN_NEXUS_USERNAME=$CREDIT_USERNAME | 95 | export LIBEUFIN_NEXUS_USERNAME=$CREDIT_USERNAME |
94 | export LIBEUFIN_NEXUS_PASSWORD=$CREDIT_PASSWORD | 96 | export LIBEUFIN_NEXUS_PASSWORD=$CREDIT_PASSWORD |
95 | libeufin-cli accounts fetch-transactions nexus-bankaccount-credit > /dev/null | 97 | libeufin-cli accounts fetch-transactions nexus-bankaccount-credit &> libeufin-transfer-fetch.out |
98 | echo " OK" | ||
96 | } | 99 | } |
97 | 100 | ||
98 | # $1 = facade base URL. Merely a debug utility. | 101 | # $1 = facade base URL. Merely a debug utility. |
@@ -502,7 +505,7 @@ wire_transfer_to_anastasis "${AMOUNT}" "${SUBJECT}" | |||
502 | echo " OK" | 505 | echo " OK" |
503 | 506 | ||
504 | echo -n "Triggering inbound check ..." | 507 | echo -n "Triggering inbound check ..." |
505 | anastasis-helper-authorization-iban -c $CONF -t | 508 | anastasis-helper-authorization-iban -c $CONF -t -L INFO |
506 | echo " OK" | 509 | echo " OK" |
507 | 510 | ||
508 | # Now we should get the secret... | 511 | # Now we should get the secret... |