Flutter plugin to display VGS card info using TextView or View

VGS Card Info

Flutter plugin to display VGS Card info using TextView or View

Installation

Add the dependency in your pubspec.yaml

vgscardinfo:
    git:
      url: git://github.com/djamoapp/flutter-vgs-cardinfo-plugin.git

Widgets Usage

VgsTextView

This widget displays only one VGS card data using the token.

VgsTextView(
  key: Key("<token_key>"),
  id: "<token_key>",
  token: "<pan_token>",
  vaultId: VAULT_ID, // Refers to a constant declaration
  path: DJAMO_VGS_PATH, // Refers to a constant declaration
))

This widget comes with the copyContent method that copy the content of a VgsTextView rendered

VgsTextView.copyContent(id: "<token_key>");

VgscardInfoView

This widget displays all VGS card data in one view

VgsCardInfoConfig _vgsCardInfoConfig = VgsCardInfoConfig(
    cvvToken: "<cvvToken>",
    expiryDateToken: "<expiryDateToken>",
    nameToken: "<nameToken>",
    panToken: "<panToken>",
    vgsPath: DJAMO_VGS_PATH, // Refers to a constant declaration
    vgsVaultId: VAULT_ID, // Refers to a constant declaration
  );
  
VgscardInfoView(
  vgsCardInfoConfig: _vgsCardInfoConfig,
),

Support

This project is a starting point for a Flutter
plug-in package,
a specialized package that includes platform-specific implementation code for
Android and/or iOS.

For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.

GitHub

View Github