Track who your Agents are and what they do in your mobile app and customize the retail services to their specifications. Here is how to configure the ShopTopUp service for Android:

App Initialization for Android

  1. First, you'll need to get your ShopTopUp Android API key. You'll receive this on registering your Super Agent on the provided UI
  1. In android/app/src/main/java/com/YOUR_APP/app/MainApplication.java, add the following code in the respective sections of the file using your shopAgent Android API Key and ShopAgent Api Key
// ...other configuration here...

    import co.tradedepot.shop.sdk.checkout.Checkout;

    public class MainApplication extends Application {

        @Override
        public void onCreate() {
            super.onCreate();
            Checkout.initialize(this, "API_KEY");

            // ...other configuration here...

        }
    }
// ...other configuration here...

    import co.tradedepot.shop.sdk.checkout.Checkout;

    public class MainApplication extends Application {

        @Override
        public void onCreate() {
            super.onCreate();
            Checkout.initialize(this, "API_KEY");

            // ...other configuration here...

        }
    }

Configuration

  1. In android/build.gradle add maven { url "https://dl.bintray.com/tradedepot/agent-checkout-sdk-android" }
allprojects {
        repositories {

            //...other configuration here...

            maven { url  "https://dl.bintray.com/tradedepot/agent-checkout-sdk-android" }
        }
    }
allprojects {
        repositories {

            //...other configuration here...

            maven { url  "https://dl.bintray.com/tradedepot/agent-checkout-sdk-android" }
        }
    }
  1. Open android manifest set the allowbackup to true
allprojects {
        repositories {

            //...other configuration here...

            maven { url  "https://dl.bintray.com/tradedepot/agent-checkout-sdk-android" }
        }
    }
<application
    // ...other configuration here...
    android:allowBackup="true" ---> here
    >

What’s Next

Once this is done, you're ready to go!

Time to use your app