merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit 85694e21a8e2600acb2fb20abe173ca899fd01e7
parent a52e391ed089e022be7d4bf3d9c459a84c595851
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  2 Feb 2025 15:49:10 +0100

remove dependency on bc

Diffstat:
Msrc/testing/test_merchant_order_creation.sh | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/testing/test_merchant_order_creation.sh b/src/testing/test_merchant_order_creation.sh @@ -267,7 +267,7 @@ echo "Ok" echo -n "Creating subscription token family..." VALID_AFTER="{\"t_s\": $(date +%s)}" # now VALID_BEFORE="{\"t_s\": $(date +%s -d "+30 days")}" # 30 days from now -DURATION="{\"d_us\": $(echo '30 * 24 * 60 * 60 * 1000000' | bc)}" # 30 days +DURATION="{\"d_us\": $(expr 30 \* 24 \* 60 \* 60 \* 1000000)}" # 30 days STATUS=$(curl 'http://localhost:9966/private/tokenfamilies' \ -d "{\"kind\": \"subscription\", \"slug\":\"test-subscription\", \"name\": \"Test subscription\", \"description\": \"Money per month\", \"description_i18n\": {\"en\": \"Money $$$ per month\", \"es\": \"Dinero $$$ al mes\"}, \"valid_after\": $VALID_AFTER, \"valid_before\": $VALID_BEFORE, \"duration\": $DURATION, \"validity_granularity\": $DURATION}" \ -w "%{http_code}" -s -o /dev/null)