Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/inspireui/paytm_allinonesdk
https://github.com/inspireui/paytm_allinonesdk
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/inspireui/paytm_allinonesdk
- Owner: inspireui
- License: mit
- Created: 2023-12-11T10:06:26.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-12-11T10:13:01.000Z (about 1 year ago)
- Last Synced: 2024-09-17T07:40:57.858Z (4 months ago)
- Language: Objective-C
- Size: 252 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.1
```2. 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.
```3. Import it
```
Now in your Dart code, you can use:import 'package:paytm_allinonesdk/paytm_allinonesdk.dart';
```4. 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;
}
```