Make static QRIS to dynamic QRIS
npm i qris-dinamis
// CommonJS
const qrisDinamis = require('qris-dinamis');
// ES Modules
import qrisDinamis from 'qris-dinamis'
const qris = '00020101021126570011ID........';
const result = qrisDinamis.makeString(qris, { nominal: '5000' });
const qris = '00020101021126570011ID........';
const result = qrisDinamis.makeFile(qris, { nominal: '5000' });
// or base64
const result = qrisDinamis.makeFile(qris, { nominal: '5000', base64: true });
// custom path
const result = qrisDinamis.makeFile(qris, { nominal: '5000', path: 'output/qris.jpg' });
Param | Required | Description |
---|---|---|
nominal |
true | The nominal amount that will be made into dynamic Qris. |
taxtype |
false | There are 2 types of taxtypes: r for rupiah and p for percent. |
fee |
false | The amount of fee tax to be included in nominal. If percent, it will be multiplied by the value percent. |
base64 |
false | Output a base64 string from a dynamic Qris image file. Only works in makeFile . |
path |
false | Custom output path resulting from dynamic Qris image generation. Only works in makeFile . |