Coder Social home page Coder Social logo

epc-qr-code.js's Introduction

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

npm i @dipser/epc-qr-code.js

Usage

Minimal example:

<script type="module">
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()
</script>

Complete example:

<script type="module">
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()
</script>

epc-qr-code.js's People

Contributors

bitfertigadmin avatar mashpie avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.