Created
August 12, 2019 18:23
-
-
Save perillamint/39a69a28d907aca1a698be877a6a0f72 to your computer and use it in GitHub Desktop.
Toss QR code generator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BANK='한국은행' | |
ACCNO='0011337' | |
AMOUNT='1337' | |
urlencode() { | |
python3 -c "import urllib.parse; print (urllib.parse.quote('''$1'''))" | |
} | |
# Get qrc from https://github.com/fumiyas/qrc | |
qrc "supertoss://send?amount=$AMOUNT&bank=$(urlencode $BANK)&accountNo=$ACCNO&origin=qr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment