This package has been deprecated

Author message:

Please use @bbitgmbh/bbit.swiss-qr-bill. See https://github.com/bbitgmbh/bbit.swiss-qr-bill for more information.

@bbit/swiss-qr-bill
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Actions Status codecov

Swiss QR bill for Node.js and browsers

Installation

yarn add @bbit/swiss-qr-bill

or

npm install @bbit/swiss-qr-bill --save

Usage

import { QRBillGenerator, IQRBill, QRBillLanguage } from '@bbit/swiss-qr-bill';

const defaultData: IQRBill = {
  account: 'CH2830000011623852950',
  amount: 1234.55,
  currency: 'CHF',
  creditor: {
    name: 'bbit gmbh',
    address: 'Rainweg 10',
    postalCode: '3612',
    locality: 'Steffisburg',
    country: 'CH',
  },
  reference: '000000000000000012312312316',
  debtor: {
    name: 'Test AG',
    address: 'Musterstrasse 1',
    postalCode: '3600',
    locality: 'Thun',
    country: 'CH',
  },
  unstructeredMessage: 'Test message',
  billInformation: 'Test billing information',
  language: QRBillLanguage.DE,
};

// create pdf
// returns a Buffer in Node.js or a Blob in browsers
const qr = new QRBill();
const bufferOrBlob = await qr.generate(params);

Specification

Swiss Payment Standards 2019

Validation

Readme

Keywords

none

Package Sidebar

Install

npm i @bbit/swiss-qr-bill

Weekly Downloads

1

Version

0.1.2

License

MIT

Unpacked Size

4.64 MB

Total Files

24

Last publish

Collaborators

  • icecream46
  • jaggr2
  • thegnuu