Overview

TerraCore v0

Overview#

TerraLoyaltyConsumer is dedicated for apps which target end-users. It includes following features:

  • Display member information, ranking and loyalty point
  • Allow select points for spending
  • Register an user to become loyalty user
  • Built-in screens for consumer:
    • Display QR that users can use to store/spend point when buying at offline merchants
    • Check loyalty transaction history
    • FAQ

Prerequisite#

Before using features of TerraLoyaltyConsumer make sure:

  • Your app uses TerraAuth, and uses built-in login methods or has finished integrating your own auth system
  • Your user's profile contains phone number as Loyalty needs it to identify users
  • Your app is configured to use Apollo - please refer here

Installation#

Firstly please refer to Teko repository access guide for instruction to setup the environment.

When the environment is ready, add the below code to import TerraLoyaltyConsumer:

Using Gradle

Add to your project's build.gradle.kts

implement("vn.teko.loyalty:terra-loyalty-consumer:$version")

Configuration#

Please contact Terra team for support.

Usage#

You can get instance of TerraLoyaltyConsumer through TerraApp

val loyaltyConsumer = TerraLoyaltyConsumer.getInstance(terraApp)