paytm_customuisdk 1.0.0 copy "paytm_customuisdk: ^1.0.0" to clipboard
paytm_customuisdk: ^1.0.0 copied to clipboard

Flutter plugin for Paytm custom ui sdk

paytm_customuisdk #

Use this package as a library #

  1. Depend on it
Add this to your package's pubspec.yaml file:

dependencies:
  paytm_routersdk: ^1.0.0
  1. Install it
You can install packages from the command line:

with Flutter:

$ flutter pub get
Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
  1. Import it
Now in your Dart code, you can use:

import 'package:paytm_customuisdk/paytm_customuisdk.dart';
  1. Call transaction method as sample below

    void getUpiIntentList() {
        PaytmCustomUiSDK().getUpiIntentList().then((value) {
        print(value);
        setState(() {
            upiAppList = UpiAppList.fromJson(value);
        });
        }).catchError((onError) {
        if (onError is PlatformException) {
            Utils.showMessage(context,
                "${onError.message.toString()} \n  ${onError.details.toString()}");
        } else {
            Utils.showMessage(context, onError.toString());
        }
        });
    }

    void goForUpiIntentTransaction(String appName) {
        PaytmCustomUiSDK().goForUpiIntentTransaction(appName, paymentFlow).then((value) {
        print(value);
        Utils.showMessage(context, value.toString(), true);
        }).catchError((onError) {
        if (onError is PlatformException) {
            Utils.showMessage(context,
                "${onError.message.toString()} \n  ${onError.details.toString()}");
        } else {
            Utils.showMessage(context, onError.toString());
        }
        });
    }
2
likes
150
points
2
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for Paytm custom ui sdk

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on paytm_customuisdk

Packages that implement paytm_customuisdk