swish-qr
Generate a Swish QR code
Install
$ npm install swish-qr
Usage
const swishQr = ; ;
API
swishQr(options)
Returns a Promise
resolving in to a base64
string.
swishQr.sync(options)
Returns a base64
string.
swishQr.generateString(options)
Returns a formatted string that's used to create the QR code.
options
Required
Type: Object
amount
Type: float
Default: 0
The amount of money to send.
lock
Type: Array
Default: []
Lock fields in the Swish application from user input.
message
Type: string
Default: ''
Define a message to send.
number
Type: string
Default: ''
The recipient.
Related
- swish-qr-cli - CLI for this module.
License
MIT © gillstrom