Socket
Socket
Sign inDemoInstall

emvco-merchant-parse

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    emvco-merchant-parse

It is a EMVCo Merchant Presented Parse


Version published
Weekly downloads
33
increased by135.71%
Maintainers
1
Install size
12.3 kB
Created
Weekly downloads
 

Readme

Source

EMVCo-parser

It is an npm package developed to allow you to parse EMVCo Merchant Presented QRCodes. If you want to learn more about EMVCo, take a look at here. The package was developed based on version 1.0 of the EMVCo documentation.

How to install

It is provided as an npm package:

npm install emvco-merchant-parse

How to import

You can import this package using CommonJs:

const { Parse } = require('emvco-merchant-parse');

Or using ES6:

import { Parse } from 'emvco-merchant-parse';

How to use

You can call the function Parse with a qrcode as a parameter:

const { Parse } = require('emvco-merchant-parse');

const qrcode = '00020101021226160012com.merchant52040123540518.765802BR5909Pet Store6012Porto Alegre610991530-0208008000212';

const parsedQrcode = Parse(qrcode);

The response will be provided as an object:

{
  '26': { 
    '00': 'com.merchant',
  },
  '52': '0123',
  '54': '18.76',
  '58': 'BR',
  '59': 'Pet Store',
  '60': 'Porto Alegre',
  '61': '91530-020',
  '80': {
    '00': '12',
  },
  '01': '12',
  '00': '01'
}

FAQs

Last updated on 22 Aug 2020

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