We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I believe the API library is written for Node.js? Can it also be used on the front end? Thank you!
The text was updated successfully, but these errors were encountered:
OK, I got it working using Browserify:
then in html file add
<canvas id="qrcode"></canvas> <script src="front.js"></script> <script src="qrcode.js"></script> (in node-qrcode's build/ folder) <script> var output = promptpayqr('123',{amount:12}); QRCode.toCanvas(document.getElementById('qrcode'), output, function (error) { if (error){ console.error(error) }else{ console.log('success!'); } }) </script>
Sorry, something went wrong.
Thanks for sharing!
Yes it can be used on frontend but it needs to be compiled, e.g. using browserify/rollup/webpack. 😄
No branches or pull requests
I believe the API library is written for Node.js? Can it also be used on the front end? Thank you!
The text was updated successfully, but these errors were encountered: