paytm_routersdk 1.0.2 copy "paytm_routersdk: ^1.0.2" to clipboard
paytm_routersdk: ^1.0.2 copied to clipboard

Router SDK is an aggregator which connects with multiple payment aggregators to provide a single point of contact for routing payment traffic.

paytm_routersdk #

Use this package as a library #

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

dependencies:
  paytm_routersdk: ^1.0.2
  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_routersdk/paytm_routersdk.dart';
  1. Call transaction method
    try {
      var response = PaytmRouterSdk.startTransaction(
          mid, orderId, amount, txnToken, callbackUrl, isStaging);
      response.then((value) {
        print(value);
        setState(() {
          result = value.toString();
        });
      }).catchError((onError) {
        if (onError is PlatformException) {
          setState(() {
            result = onError.message + " \n  " + onError.details.toString();
          });
        } else {
          setState(() {
            result = onError.toString();
          });
        }
      });
    } catch (err) {
      result = err.message;
    }
1
likes
160
points
36
downloads

Publisher

unverified uploader

Weekly Downloads

Router SDK is an aggregator which connects with multiple payment aggregators to provide a single point of contact for routing payment traffic.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on paytm_routersdk