node-pix-payload
Version:
This library that aims to build the payload of pix payment, with this payload the developer can generate the qr code payable or pay informed the same in the bank's app.
19 lines (18 loc) • 551 B
TypeScript
import { QrCode as QrCodeInteface } from '../interfaces/index.inteface';
declare class QrCode {
/**
* generate payload qrcode
*/
generateQrCode(text: string): Promise<string>;
/**
* this function is responsible for generate image qrcode saving in a path,
* possible output formats are: png, svg and utf8. format default is png.
* @param path
* @param text
* @param format
* @return void
*/
outPutImage(data: QrCodeInteface): void;
}
declare const _default: QrCode;
export default _default;