The project is in a healthy, maintained state
Process to generate and read data EMV QRCode
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
 Project Readme

EMV QR Code Processor

Gem Version Build Status Dependabot

EMV QR Code Processor is a gem that makes it easy to encode and decode EMV QR Code data.

Installation

gem 'emv_qr_code_processor'

Example

   qr_code_string = "00020101021252044131153137210116372101160123456789ABCDE6016Banteay Meanchey5913Kuntheas Shop5802KH540510.005303840621201081234567863041FF2"
   data = EmvQrCodeProcessor::Decoder.new(qr_code_string).decode
   payload = {
      payload_format_indicator: "01",
      point_of_initiation_method: "12",
      merchant_category_code: "4131",
      "merchant_account_information.union_pay": "37210116372101160123456789ABCDE",
      merchant_city: "Banteay Meanchey",
      merchant_name: "Kuntheas Shop",
      country_code: "KH",
      transaction_amount: "10.00",
      transaction_currency: "840",
      additional_data_field: {
        bill_number: "12345678"
      }
    }

    qr_code_string = Encoder.new(payload).encode
    // 000201010212153137210116372101160123456789ABCDE520441315303840540510.005802KH5913Kuntheas Shop6016Banteay Meanchey62120108123456786304A7A8

And run bundle install. After this, check out the guide related to the framework you're using.

License

MIT License.