pooler_flutter

Creator: coderz1093

Last updated:

0 purchases

pooler_flutter Image
pooler_flutter Images
Add to Cart

Description:

pooler flutter

Pooler Flutter #

Unofficial Pooler Flutter SDK

Introduction #
PoolerCheckoutView is a Flutter widget designed to facilitate the integration of Pooler payment services into your mobile applications. This widget streamlines the checkout process by providing a pre-built UI for payment transactions.
Installation #
To use PoolerCheckoutView in your Flutter project, add the following dependency to your pubspec.yaml file:
dependencies:
pooler_flutter: ^1.0.0 # Replace with the latest version
copied to clipboard
Then run:
flutter pub get
copied to clipboard
Usage #
Import the package in your Dart file:
import 'package:pooler_flutter/pooler_flutter.dart';
copied to clipboard
Example #
await PoolerCheckoutView(
config: PoolerConfig(
publicKey: "pb_test_40291a0c6bbc66f64875de067c8fb05b4c5c2c544cd3af9ee730ba947407df21",
amount: 400,
transactionReference: "73f03de5-1043-${Random().nextInt(100000000)}",
redirectLink: 'https://google.com',
email: '[email protected]',
),
showLogs: true,
onClosed: () {
print('closed');
Navigator.pop(context);
},
onSuccess: (v) {
print(v.toString());
Navigator.pop(context);
},
onError: print,
).show(context);
copied to clipboard
Parameters #


config (required): An instance of PoolerConfig containing the necessary information for the payment transaction.


showLogs (optional): A boolean flag indicating whether to show logs during the checkout process. Default is false.


onClosed (optional): A callback function that gets triggered when the checkout view is closed.


onSuccess (optional): A callback function that gets triggered when the payment transaction is successful. It receives a dynamic parameter representing the success response.


onError (optional): A callback function that gets triggered when an error occurs during the checkout process. It receives an error message as a parameter.


Conclusion #
With PoolerCheckoutView, you can easily integrate Pooler payments into your Flutter application, providing a seamless and secure payment experience for your users.
Make sure to replace the version number in the installation section with the latest version available. Additionally, always refer to the official documentation of the pooler_flutter package for any updates or changes.
Feel free to modify the formatting or content according to your specific needs.

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.