···3636 iban="${iban// /}"
3737 iban="${iban^^}"
38383939- # Extract country code (first 2 characters)
4040- local country="${iban:0:2}"
4141-4239 # For now, we'll use NOTPROVIDED as fallback
4343- # A real implementation would query a BIC database
4040+ # A real implementation would query a BIC database based on country code (${iban:0:2})
4441 echo "NOTPROVIDED"
4542}
4643···161158if [ -n "$AMOUNT" ]; then
162159 EPC_DATA+="EUR${AMOUNT}"$'\n' # Amount
163160else
164164- EPC_DATA+=$'\n' # Empty amount
161161+ EPC_DATA+="EUR0"$'\n' # Amount (0 when not specified)
165162fi
166163167164EPC_DATA+=$'\n' # Purpose (empty)