-
-
Save imryan/a1eacf70614144048906bbb3c45d62d2 to your computer and use it in GitHub Desktop.
Generate a QR code using Google Charts API (for Paybear transactions)
This file contains 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
// Type | |
let cht = "qr" | |
// Size | |
let chs = "180x180" | |
// Transaction message | |
let chl = "ethereum:\(walletAddress)?amount=\(amount)&message=\(message)" // URL-encode | |
// Final URL | |
let url = "https://chart.googleapis.com/chart?cht=\(cht)&chs=\(chs)&chl=\(chl)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment