Skip to content
A JavaScript library that helps you display QR-codes or "Pay with mCASH" buttons correctly depending on browser platform.
JavaScript CSS HTML
Find file
Failed to load latest commit information.
dest Increased timeout for app store redirect
src Increased timeout for app store redirect
tests PDR-1178 Added unittestcases of translation and respect of navigator.…
.gitignore Generate QR code from JS. Use any prefix, not just /s/
.jshintrc
Gruntfile.js change port numbers for test and build
LICENSE Generate QR code from JS. Use any prefix, not just /s/
README.md change port numbers for test and build
bower.json 0.5.4
circle.yml Generate QR code from JS. Use any prefix, not just /s/
example.html rename to mcash.shortlink.min.js
package.json Increased timeout for app store redirect

README.md

mcash.shortlink.js

A standalone JavaScript library that helps you display QR-codes or "Pay with mCASH" buttons correctly depending on browser platform. On a phone a button will be shown, that when pressed opens the mCASH app and makes a call to mCASH. If the phone does not have mCASH installed the user will be redirected to GooglePlay or AppStore.

Building the library

You need npm from node.js to build this library.

npm install
npm run build

Deploying the library

After building the code deploy the content of dest folder. Pick either mcash.shortlink.js or the minified mcash.shortlink.min.js and the assets folder as is.

Example and customization

press here You can open this link in on your phone to see how it changes from QR code to button (or fake your user agent and view on your laptop). Shows examples of customization with alternate look and language variants.

Try the example

Start a local example server npm run example and open http://localhost:7080/example.html in your browser.

Test suit

npm test
Something went wrong with that request. Please try again.