ezetap_sdk 0.1.0 copy "ezetap_sdk: ^0.1.0" to clipboard
ezetap_sdk: ^0.1.0 copied to clipboard

outdated

Integrating the SDK will allow you to access Ezetap services in your application

ezetap_sdk #

pub package pub points

Welcome to Ezetap Payments Flutter SDK integration! You can easily collect payments from your existing android applications by integrating the SDK.

How integration works #

  1. Include the SDK in your mobile application to collect payments.
  2. SDK interfaces with a Service App, this App will be installed during run-time.
  3. Service App interfaces with the Card Device and Ezetap Servers to finish payment processing and notifies the status to SDK.

Prerequisites #

Supported on Android API version 16(JellyBean) or above.

Use this package as a library #

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

dependencies:
  ezetap_sdk: ^0.1.0

Import it #

Now in your Dart code, you can use:

import 'package:ezetap_sdk/ezetap_sdk.dart';

Methods Available #

  EzetapSdk.initialize(json);

  EzetapSdk.prepareDevice();

  EzetapSdk.sendReceipt(json);

  EzetapSdk.serviceRequest(json);

  EzetapSdk.searchTransaction(json);

  EzetapSdk.getTransaction(json);

  EzetapSdk.checkForIncompleteTransaction(json);

  EzetapSdk.voidTransaction(String transactionID);

  EzetapSdk.attachSignature(json);

  EzetapSdk.pay(json);

  EzetapSdk.printReceipt(String transactionID);

  EzetapSdk.printBitmap(String? base64Image);

  EzetapSdk.logout();

  EzetapSdk.stopPayment(json);

  EzetapSdk.scanBarcode();

  EzetapSdk.refundTransaction(json);
  
  EzetapSdk.checkForUpdates();
  

Usage #

{
  "amount": "123",
  "options": {
    "serviceFee": 100,
    "paymentBy": "CREDIT OR DEBIT OR ANY (**To be used only if the service fee is being added.)",
    "paymentMode": "Card/Cash/Cheque/UPI/UPI_VOUCHER/RemotePay/BHARATQR/Brand_Offers/Brand_EMI/Normal_EMI/Wallet ",
    "providerName": "<NBFC> eg. ZestMoney. (**providerName and emiType are to be passed only if user wants to use ZestMoney. In this scenario, set \"paymentMode”:”EMI”)",
    "emiType": "NORMAL, BRAND, EMI",
    "references": {
      "reference1": "1234",
      "additionalReferences": [
        "addRef_xx1",
        "addRef_xx2"
      ]
    },
    "appData": {
      "walletAcquirer": "freecharge/ola_money/ etc.(**walletAcquirer are to be passed only if user sets \"paymentMode”:”Wallet”)"
    },
    "customer": {
      "name": "xyz",
      "mobileNo": "1234567890",
      "email": "[email protected]"
    }
  }
}
Future<void> onPaymentClicked(json) async {
  String? result = await EzetapSdk.pay(json);
  if (!mounted) return;
  setState(() {
    _result = result;
  });
}
Future<void> onBarcodePressed() async {
  String? result = await EzetapSdk.scanBarcode();
  if (!mounted) return;
  setState(() {
    _result = result;
  });
}

What you need #

  1. Flutter development environment
  2. Android phone that can connect to internet
  3. This documentation
  4. Ezetap app key or login credentials to Ezetap service
  5. Ezetap device to test card payments
4
likes
0
points
69
downloads

Publisher

unverified uploader

Weekly Downloads

Integrating the SDK will allow you to access Ezetap services in your application

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on ezetap_sdk

Packages that implement ezetap_sdk