card91_transaction 0.0.3 copy "card91_transaction: ^0.0.3" to clipboard
card91_transaction: ^0.0.3 copied to clipboard

outdated

Card91 Transaction Plugin

Card91 Transaction List plugin #

This package is used to list the transaction of the card associated with card91 card holders. This package directly communicates to Card91 SDK.

Features #

Package directly communicate with the SDK (secured platform) to check the transaction the card.

Getting started #

Add the widget package on your pubspec version $ flutter pub add card91_transaction

Use this package as a library #

Depend on it Run this command: With Flutter: $ flutter pub add card91_transaction

This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get): dependencies:card91_transaction: (updated version)

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

Import it Now in your Dart code, you can use: import 'package:card91_transaction/card91_transaction.dart';

Usage #

Open the widget by passing the required parameter to use it. Check out the below code snippet for the same. Sample code below

import 'package:card91_transaction/card91_transaction.dart';

Get.to(
    () => Card91Transaction(
    cardId: "##@^#^#@^@^",
    token: "@%%@Y@FYFHFH@GFHH@GH",
    template:"xollt",
    env: "PROD",
    onDataResponse:(String response){
    setState(() => print("Response from plugin transaction =$response"));
    }
));

Input parameter for CardViewItemWidget #

Name Type Required Description
cardId string true cardId which has been received form login token service (Card91 API)
token string true Auth Token received from the Card91 APIs
template string true default value would be "xoltt"
env string true based on env base url for webview will change eg. PROD, PROD_SANDBOX
onDataResponse Function true Add a call back function to receive the error & success event

Basic call back event type #

Event Name Description
c91_TXN_SCREEN_SUCCESS Called when the server-side APIs load successfully. At this time, Transaction list is successfully .
C91_TXN_AUTHENTICATION_FAILURE Call back event type when client is passing incorrect or expired auth token.
C91_TXN_MISSING_PARAMETER Call back event type when client is not passing any required/blank parameter .
C91_TXN_SERVER_FAILURE Call back event type when there is server service exception with error code 500 to 599
C91_TXN_SCREEN_INITIALISED Called when the server-side ATM pin changes OTP screen loads successfully.
C91_TXN_API_FAILURE Called when the server-side api failed.
2
likes
0
pub points
2%
popularity

Publisher

verified publishercard91.io

Card91 Transaction Plugin

Homepage

License

unknown (license)

Dependencies

flutter

More

Packages that depend on card91_transaction