#!/bin/bash if test -z $TALER_ENV_NAME || test -z $TALER_CONFIG_CURRENCY; then echo "Please source ~/activate" exit 1 fi # %N is current nanoseconds. UUID=$(date +"uuid-%N") RESERVE=$(gnunet-ecc -p $( \ printf "%s%s" \ $(taler-config -s PATHS -o TALER_DEPLOYMENT_SHARED -f) \ /merchant/default-tip.priv)) taler-bank-transfer \ --amount="$TALER_CONFIG_CURRENCY:100.00" \ --bank="https://bank.$TALER_ENV_NAME.taler.net/" \ --credit=2 \ --debit=8 \ --log="INFO" \ --pass="x" \ --subject=$RESERVE \ --user="Survey" if ! test 0 = $?; then echo Wire transfering failed! exit 1 fi