A flutter plugin for decode and genrate emv-mpm qrcode

Related tags

Templates emvqrcode
Overview

a flutter plugin for decode and genrate emv-mpm qrcode


Usage

Decode func

${emvdecode.toJson()}");">
    final emvdecode = EMVMPM.decode(emvqr);
    debugPrint("emv decode ------> ${emvdecode.toJson()}");

Generate func

${emv.value.toJson()}"); final emvEncode = EMVMPM.encode(emv); debugPrint("emv encode -------> ${emvEncode.toJson()}");">
    final emv = EMVQR();

    emv.setPayloadFormatIndicator("00");
    emv.setPointOfInitiationMethod("12");

    /// merchant account information
    final mcAccountInfo = MerchantAccountInformation();
    mcAccountInfo.setGloballyUniqueIdentifier("IT");
    mcAccountInfo.addPaymentNetworkSpecific(id: "01", value: "abc");
    mcAccountInfo.addPaymentNetworkSpecific(id: "02", value: "def");
    emv.addMerchantAccountInformation(id: "03", value: mcAccountInfo);

    final additionalData = AdditionalDataFieldTemplate();
    additionalData.setBillNumber("aaaa");
    additionalData.setMerchantTaxID("111");
    additionalData.setMerchantChannel("cha");
    additionalData.addRfuForEMVCo(id: "12", value: "00");
    additionalData.addPaymentSystemSpecific(id: "50", value: "123");
    additionalData.addPaymentSystemSpecific(id: "51", value: "123");
    emv.setAdditionalDataFieldTemplate(additionalData);

   
    final mcInfoLang = MerchantInformationLanguageTemplate();
    mcInfoLang.setLanguagePreferencer("LA");
    mcInfoLang.setMerchantCity("Vientaine");
    mcInfoLang.setMerchantName("MW");
    mcInfoLang.addRfuForEMVCo(id: "03", value: "asfg");
    mcInfoLang.addRfuForEMVCo(id: "04", value: "asfg");
    emv.setMerchantInformationLanguageTemplate(mcInfoLang);

    emv.addRfuForEMVCo(id: "66", value: "bbb");

    final unreserved = UnreservedTemplate();
    unreserved.setGloballyUniqueIdentifier("abs");
    unreserved.addContextSpecificData(id: "01", value: "qw12");
    emv.addUnreservedTemplate(id: "89", value: unreserved);

    debugPrint("emv body ----------> ${emv.value.toJson()}");

    final emvEncode = EMVMPM.encode(emv);
    debugPrint("emv encode -------> ${emvEncode.toJson()}");

add Merchant Account Information function

    final mcAccountInfo = MerchantAccountInformation();

add Additional Data Field Template function

    final additionalData = AdditionalDataFieldTemplate();

add Merchant Information Language Template function

    final mcInfoLang = MerchantInformationLanguageTemplate();

add Unreserved Template function

    final unreserved = UnreservedTemplate();

Credits

  • https://github.com/dongri/emv-qrcode
  • You might also like...

    Flutter blue plus - Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android and iOS

    Flutter blue plus - Flutter plugin for connecting and communicationg with Bluetooth Low Energy devices, on Android and iOS

    Introduction FlutterBluePlus is a bluetooth plugin for Flutter, a new app SDK to

    Dec 22, 2022

    Flutter plugin for selecting images from the Android and iOS image library, taking new pictures with the camera, and edit them before using such as rotation, cropping, adding sticker/text/filters.

    Flutter plugin for selecting images from the Android and iOS image library, taking new pictures with the camera, and edit them before using such as rotation, cropping, adding sticker/text/filters.

    advance_image_picker Flutter plugin for selecting multiple images from the Android and iOS image library, taking new pictures with the camera, and edi

    Dec 19, 2022

    The Flutter plugin that help you can choose dates and years with rounded calendars and customizable themes.

    The Flutter plugin that help you can choose dates and years with rounded calendars and customizable themes.

    Flutter Rounded Date Picker The Flutter plugin that help you can choose dates and years with rounded calendars and customizable themes. Installing Add

    Dec 22, 2022

    A Flutter Plugin for Volume Control and Monitoring, support iOS and Android

    A Flutter Plugin for Volume Control and Monitoring, support iOS and Android

    flutter_volume A flutter plugin for volume control and monitoring, support iOS and Android 手把手带你写 Flutter 系统音量插件 https://www.yuque.com/befovy/share/fl

    Dec 9, 2022

    Flutter Downloader - A plugin for creating and managing download tasks. Supports iOS and Android.

    Flutter Downloader - A plugin for creating and managing download tasks. Supports iOS and Android.

    Flutter Downloader A plugin for creating and managing download tasks. Supports iOS and Android. This plugin is based on WorkManager in Android and NSU

    Jan 3, 2023

    A flutter plugin for improved row and column widgets with added spacing and optional interleaved dividers

    flutter_series A flutter plugin for improved row and column widgets with added s

    Nov 1, 2021

    A Video Player For Vimeo Videos in Flutter. This plugin allows us to play video from Vimeo and it supports Android and iOS platforms.

    A Video Player For Vimeo Videos in Flutter. This plugin allows us to play video from Vimeo and it supports Android and iOS platforms.

    vimeo_video_player A Video Player For Vimeo Videos in Flutter. This plugin allow us to play video from vimeo and it's supports Android and iOS platfor

    Dec 8, 2022

    A Flutter sensor plugin which provide easy access to the Pitch and Roll on Android and iOS devices.

    A Flutter sensor plugin which provide easy access to the Pitch and Roll on Android and iOS devices.

    Flutter Aeyrium Sensor Plugin Aeyrium Sensor Plugin A Flutter sensor plugin which provide easy access to the Pitch and Roll on Android and iOS devices

    Nov 3, 2022

    Resource monitor - A flutter plugin for Android and IOS to monitor CPU and RAM usage of device.

    resource_monitor A flutter plugin for Android and IOS to monitor CPU and RAM usage of device. TODO Return overall system cpu/memory usage. Implement A

    Nov 11, 2022
    Owner
    null
    QRCode Generator and QR Scanner

    QRCode Scanner Flutter App Functionality : Generate QR code from text Share QR Code Scan QR Code using camera and get text result This project is a st

    null 2 Sep 27, 2022
    Flutter qrcode reader

    QRCode Reader plugin for Flutter A Flutter plugin for reading QR Codes with the camera. Example import 'package:qrcode_reader/qrcode_reader.dart'; Fut

    BC Ko 226 Nov 22, 2022
    Permission plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check permissions.

    Flutter permission_handler plugin The Flutter permission_handler plugin is build following the federated plugin architecture. A detailed explanation o

    Baseflow 1.7k Dec 31, 2022
    Unloc customizations of the Permission plugin for Flutter. This plugin provides an API to request and check permissions.

    Flutter Permission handler Plugin A permissions plugin for Flutter. This plugin provides a cross-platform (iOS, Android) API to request and check perm

    Unloc 1 Nov 26, 2020
    Klutter plugin makes it possible to write a Flutter plugin for both Android and iOS using Kotlin only.

    The Klutter Framework makes it possible to write a Flutter plugin for both Android and iOS using Kotlin Multiplatform. Instead of writing platform spe

    Gillian 33 Dec 18, 2022
    A Flutter step_tracker plugin is collect information from user and display progress through a sequence of steps. this plugin also have privilege for fully customization from user side. like flipkart, amazon, myntra, meesho.

    step_tracker plugin A Flutter step_tracker plugin is collect information from user and display progress through a sequence of steps. this plugin also

    Roshan nahak 5 Oct 21, 2022
    This is just the simplyfied Flutter Plugin use for one of the popular flutter plugin for social media login.

    social_media_logins Flutter Plugin to login via Social Media Accounts. Available Social Media Logins: Facebook Google Apple Getting Started To use thi

    Reymark Esponilla 3 Aug 24, 2022
    Flutterbodydetection - A flutter plugin that uses MLKit on iOS/Android platforms to enable body pose and mask detection using Pose Detection and Selfie Segmentation APIs for both static images and live camera stream.

    body_detection A flutter plugin that uses MLKit on iOS/Android platforms to enable body pose and mask detection using Pose Detection and Selfie Segmen

    null 18 Dec 5, 2022
    Flutter simple image crop - A simple and easy to use flutter plugin to crop image on iOS and Android

    Image Zoom and Cropping plugin for Flutter A simple and easy used flutter plugin to crop image on iOS and Android. Installation Add simple_image_crop

    null 97 Dec 14, 2021