Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

sepa-payment-code

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sepa-payment-code

Generates SEPA payment codes for embedding in QR codes

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

SEPA Payment Code

styled with prettier Travis Coveralls Dev Dependencies Donate

Do you want to make it easier for your clients to pay your invoices? This library generates a payment code for embedding in a QR code. The QR code will be scannable by many mobile banking apps (SEPA/Europe). It's based on the European Payments Council's standard.

What are the advantages of using this package?

Usage

npm install sepa-payment-code --save
# or
yarn add sepa-payment-code --save
Using qrcode.react (npm install qrcode.react --save)
import { PaymentCode } from "sepa-payment-code";

const YourComponent = () => {
  const paymentCode = new PaymentCode("Your name", "BE71096123456769", 10.1);
  
  return <QRCode value={paymentCode.getPayload()} />;
};
Using qrcode (npm install qrcode --save)
import { PaymentCode } from "sepa-payment-code";

const paymentCode = new PaymentCode("Your name", "BE71096123456769", 10.1);
QRCode.toCanvas(canvas, paymentCode.getPayload());
Add structured text (reference)
new PaymentCode("Your name", "BE71096123456769", 10.1, "123456789");
Add unstructured text
new PaymentCode("Your name", "BE71096123456769", 10.1, undefined, "Invoice 2018001");

What does a payload look like?

const paymentCode = new PaymentCode("Name", "BE71096123456769", 10.1, undefined, "Invoice 2018001");
console.log(paymentCode.getPayload());
BCD
002
1
SCT

Name
BE71096123456769
EUR10.1


Invoice 2018001

You can copy this into an QR code generator then try scanning it with your banking app.

Keywords

FAQs

Package last updated on 21 Dec 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc