Giter Club home page Giter Club logo

incento's Introduction

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

Usage

Sample code to integrate can be found in example/lib/main.dart.

Import package

import 'package:incento/incento.dart';

Create Incento SDK instance

incentoSDK = IncentoSDK();

Setup options

var options = {
   "company_name": "API_KEY",
    "coupon_code": "###-###-####",
"category": "YOUR_PRODUCT_CATEGORY",
"uid": "UNIQUE_UID"
  };

Features

  1. Easy and seamless integration of coupon codes
  2. Simple UI to display all available coupons
  3. 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:

  1. Using the provided built-in widget Coupons to access list of available coupons as per your API_KEY
  2. 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

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!

incento's People

Contributors

ojaskarmarkar avatar

Watchers

 avatar

Forkers

mayurkomar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.