paytm_allinonesdk 1.2.5 copy "paytm_allinonesdk: ^1.2.5" to clipboard
paytm_allinonesdk: ^1.2.5 copied to clipboard

Paytm All-in-One SDK provides a swift, secure, and seamless payment experience to your users by invoking the Paytm app (if installed on your user’s smartphone) to complete payment for your order. It e [...]

paytm_allinonesdk #

Use this package as a library #

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

dependencies:
  paytm_allinonesdk: ^1.2.5
  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_allinonesdk/paytm_allinonesdk.dart';
  1. Call transaction method
    try {
      var response = AllInOneSdk.startTransaction(
          mid, orderId, amount, txnToken, "", isStaging, restrictAppInvoke);
      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;
    }
44
likes
120
pub points
97%
popularity

Publisher

unverified uploader

Paytm All-in-One SDK provides a swift, secure, and seamless payment experience to your users by invoking the Paytm app (if installed on your user’s smartphone) to complete payment for your order. It enables you to accept payment via Paytm Wallet, Paytm Payments Bank, Saved Debit/Credit Cards, Net Banking, BHIM UPI, or EMI as available in your customer’s Paytm account. If the Paytm app is not installed on a customer's device, the transaction will be processed via web view within the All-in-One SDK.

Homepage

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on paytm_allinonesdk