paytm_routersdk

Last updated:

0 purchases

paytm_routersdk Image
paytm_routersdk Images
Add to Cart

Description:

paytm routersdk

paytm_routersdk #
Use this package as a library #

Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
paytm_routersdk: ^1.0.2
copied to clipboard

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.
copied to clipboard

Import it

Now in your Dart code, you can use:

import 'package:paytm_routersdk/paytm_routersdk.dart';
copied to clipboard

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;
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.