summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-08-12 00:10:36 +0200
committerChristian Grothoff <christian@grothoff.org>2022-08-12 00:10:36 +0200
commitb58bdc74afa5a28ed7f3bba54d04af50b29d6efd (patch)
tree18d671b090224c97e4816da835917d5c4d2cdc24 /src
parenta2968b43ee450839dc918ba3f74088193f1b9112 (diff)
downloadmerchant-b58bdc74afa5a28ed7f3bba54d04af50b29d6efd.tar.gz
merchant-b58bdc74afa5a28ed7f3bba54d04af50b29d6efd.tar.bz2
merchant-b58bdc74afa5a28ed7f3bba54d04af50b29d6efd.zip
add FIXME-MS
Diffstat (limited to 'src')
-rwxr-xr-xsrc/testing/test_merchant_order_creation.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/testing/test_merchant_order_creation.sh b/src/testing/test_merchant_order_creation.sh
index ee6d0b01..9a353907 100755
--- a/src/testing/test_merchant_order_creation.sh
+++ b/src/testing/test_merchant_order_creation.sh
@@ -56,10 +56,16 @@ then
fi
# remove one account address
+
+# FIXME-MS: here we already need to get the TARGET_PAYTO, but this
+# is impossible: libeufin-cli sandbox bankaccount list gives me some HTML (!?)
+# and I have no other good way to get the (random) IBAN!
+# TARGET_PAYTO="payto://iban/SANDBOXX/$IBAN?receiver-name=Forty+Three"
+
STATUS=$(curl -H "Content-Type: application/json" -X PATCH \
-H 'Authorization: Bearer secret-token:super_secret' \
http://localhost:9966/instances/default/private/ \
- -d '{"auth":{"method":"external"},"payto_uris":["payto://x-taler-bank/localhost:8082/43"],"id":"default","name":"default","address":{},"jurisdiction":{},"default_max_wire_fee":"TESTKUDOS:1", "default_max_deposit_fee":"TESTKUDOS:1","default_wire_fee_amortization":1,"default_wire_transfer_delay":{"d_us" : 50000000000},"default_pay_delay":{"d_us": 60000000000}}' \
+ -d '{"auth":{"method":"external"},"payto_uris":["'$TARGET_PAYTO'"],"id":"default","name":"default","address":{},"jurisdiction":{},"default_max_wire_fee":"TESTKUDOS:1", "default_max_deposit_fee":"TESTKUDOS:1","default_wire_fee_amortization":1,"default_wire_transfer_delay":{"d_us" : 50000000000},"default_pay_delay":{"d_us": 60000000000}}' \
-w "%{http_code}" -s -o /dev/null)
if [ "$STATUS" != "204" ]