Created
December 2, 2012 16:50
-
-
Save chadbrewbaker/4189748 to your computer and use it in GitHub Desktop.
Example QR code invoice in Dwolla
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
<html> | |
<head> | |
<title>Invoice Example</title> | |
</head> | |
<body> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> | |
<!-- Get these js libraries here: | |
https://github.com/jeromeetienne/jquery-qrcode/tree/master/src--> | |
<script type="text/javascript" src="https://raw.github.com/jeromeetienne/jquery-qrcode/master/src/jquery.qrcode.js"></script> | |
<script type="text/javascript" src="https://raw.github.com/jeromeetienne/jquery-qrcode/master/src/qrcode.js"></script> | |
<p>Table QR code</p> | |
<a href="https://www.dwolla.com/hub/812-714-1684?amount=1.00&memo=InvoiceHere&repeats=1&action=send"><div id="qrcodeTable"></div></a> | |
<p>HTML canvas QR code</p> | |
<a href="https://www.dwolla.com/hub/812-714-1684?amount=1.00&memo=InvoiceHere&repeats=1&action=send"><div id="qrcodeCanvas"></div></a> | |
<script> | |
//jQuery('#qrcode').qrcode("this plugin is great"); | |
jQuery('#qrcodeTable').qrcode({ | |
render : "table", | |
text : "https://www.dwolla.com/hub/812-714-1684?amount=1.00&memo=InvoiceHere&repeats=1&action=send" | |
}); | |
jQuery('#qrcodeCanvas').qrcode({ | |
text : "https://www.dwolla.com/hub/812-714-1684?amount=1.00&memo=InvoiceHere&repeats=1&action=send" | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can you explain this code with comments or a basic algorithm?