https://github.com/bitfertig/epc-qr-code.js
https://github.com/bitfertig/epc-qr-code.js
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitfertig/epc-qr-code.js
- Owner: Bitfertig
- License: mit
- Created: 2020-09-28T09:14:24.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-14T17:28:53.000Z (about 2 years ago)
- Last Synced: 2025-06-25T02:07:18.271Z (about 1 year ago)
- Language: JavaScript
- Homepage: http://tools.bitfertig.de/epc-qr-code.js/
- Size: 41 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EPC-QR-Code
An [EPC-QR-Code] is a data set standardized by the **European Payments Council** that contains all the data for a SEPA transfer and is machine-readable using **QR coding**.
## Demo
[Demo]
## Install
NPM package: [@dipser/epc-qr-code.js]
```bash
npm i @dipser/epc-qr-code.js
```
## Usage
Minimal example:
```html
import { girocode } from "@dipser/epc-qr-code.js";
var g = girocode({
'iban': 'DE02100100100006820101',
'bic': 'PBNKDEFF',
'name': 'Max Muster',
'amount': '10.00',
'reason': 'Invoice X',
});
g.svg()
// g.svg_data_url()
```
Complete example:
```html
import { girocode } from "@dipser/epc-qr-code.js";
var g = girocode({
'service': 'BCD', // Service Tag
'version': '001', // Version: 001, 002
'encoding': '2', // Character set: 1 = UTF-8, 2 = ISO 8859-1
'transfer': 'SCT', // Identification: SCT = SEPA credit transfer
'bic': 'PBNKDEFF', // BIC
'name': 'Max Muster', // Name of the beneficiary
'iban': 'DE02100100100006820101', // IBAN
'currency': 'EUR',
'amount': '10.00', // Amount (Format „#.##“)
'char': '', // Zweck (vierstelliger Buchstabencode, optional)
'ref': '', // Reference (strukturierter 35-Zeichen-Code gem. ISO 11649 RF Creditor Reference)
'reason': '', // Verwendungszweck (max of 140 characters)
'hint': '', // Optional hint to user
});
g.svg() // or g.svg_data_url()
```
[EPC-QR-Code]: https://de.wikipedia.org/wiki/EPC-QR-Code
[Demo]: http://tools.bitfertig.de/epc-qr-code.js/
[@dipser/epc-qr-code.js]: https://www.npmjs.com/package/@dipser/epc-qr-code.js