Socket
Socket
Sign inDemoInstall

@bbitgmbh/bbit.swiss-qr-bill

Package Overview
Dependencies
167
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @bbitgmbh/bbit.swiss-qr-bill

![Main](https://github.com/bbitgmbh/bbit.swiss-qr-bill/workflows/Main/badge.svg)


Version published
Weekly downloads
147
increased by36.11%
Maintainers
2
Install size
207 MB
Created
Weekly downloads
 

Readme

Source

Swiss QR bill for Node.js and browsers

Main

Installation

yarn

yarn add @bbitgmbh/bbit.swiss-qr-bill

npm

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

Usage

import { BbitQRBillGenerator, IBbitQRBill, BbitQRBillLanguage, BbitQRBillAddressType } from '@bbitgmbh/bbit.swiss-qr-bill';

const defaultData: IBbitQRBill = {
  account: 'CH2830000011623852950',
  amount: 1234.55,
  currency: 'CHF',
  creditor: {
    type: QRBillAddressType.UNSTRUCTURED,
    name: 'bbit gmbh',
    address: 'Rainweg 10',
    postalCode: '3612',
    locality: 'Steffisburg',
    country: 'CH',
  },
  reference: '000000000000000012312312316',
  debtor: {
    type: QRBillAddressType.UNSTRUCTURED,
    name: 'Test AG',
    address: 'Musterstrasse 1',
    postalCode: '3600',
    locality: 'Thun',
    country: 'CH',
  },
  unstructuredMessage: '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 BbitQRBillGenerator();
const bufferOrBlob = await qr.generate(defaultData);

Specification

Swiss Payment Standards 2019

Bill information structure

Validation

FAQs

Last updated on 14 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc