This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

tools.payment-qr: fix iban handling, set to EUR0

+2 -5
+2 -5
tools/payment-qr/payment-qr.sh
··· 36 36 iban="${iban// /}" 37 37 iban="${iban^^}" 38 38 39 - # Extract country code (first 2 characters) 40 - local country="${iban:0:2}" 41 - 42 39 # For now, we'll use NOTPROVIDED as fallback 43 - # A real implementation would query a BIC database 40 + # A real implementation would query a BIC database based on country code (${iban:0:2}) 44 41 echo "NOTPROVIDED" 45 42 } 46 43 ··· 161 158 if [ -n "$AMOUNT" ]; then 162 159 EPC_DATA+="EUR${AMOUNT}"$'\n' # Amount 163 160 else 164 - EPC_DATA+=$'\n' # Empty amount 161 + EPC_DATA+="EUR0"$'\n' # Amount (0 when not specified) 165 162 fi 166 163 167 164 EPC_DATA+=$'\n' # Purpose (empty)