Last updated:
0 purchases
incento
Incento Flutter #
Flutter plugin for Incento SDK.
This package can be easily integrated in any flutter application for generation and redeeming coupon codes for various e-commerce merchants and small scale businesses.
Installation #
This plugin is available on Pub: https://pub.dev/packages/incento
Add this to dependencies in your app's pubspec.yaml
incento: ^0.0.1
copied to clipboard
Usage #
Sample code to integrate can be found in example/lib/main.dart.
Import package
import 'package:incento/incento.dart';
copied to clipboard
Create Incento SDK instance
incentoSDK = IncentoSDK();
copied to clipboard
Setup options
var options = {
"company_name": "API_KEY",
"coupon_code": "###-###-####",
"category": "YOUR_PRODUCT_CATEGORY",
"uid": "UNIQUE_UID"
};
copied to clipboard
Features #
Easy and seamless integration of coupon codes
Simple UI to display all available coupons
Obtain API_KEY to get started.
Getting started #
Users can get the API_KEY after registration of their company on our portal . The same API_KEY can be used for further usage of this package.
Usage #
There are two ways to get started:
Using the provided built-in widget Coupons to access list of available coupons as per your API_KEY
Using a user-defined voucher code and calling in the (verify) and (redeem) methods along with your payment service
The handlers would be defined somewhere as
Future<Map<String, dynamic>> verify(Map<String, dynamic> options) async {
// To be called when coupon code needs to be verified
}
Future<Map<String, dynamic>> redeem(Map<String, dynamic> options) async {
// To be called when coupon code needs to be redeemed
}
MyCoupons() // To be called when list of available coupons need to be displayed
copied to clipboard
Additional information #
Issues and pull requests are always welcome 😄
If you find this package useful for you and liked it, give it a like ❤️ and star the repo ⭐️ it would mean a lot!
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.