Integrate Real Commerce into your App

Easily connect your agents and customers to the value chain of leading FMCG suppliers in your territory. You'll find comprehensive guides and documentation to help you start working with the ShopTopUp CommerceAPI as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    

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
    >

Updated about a year ago


What's Next

Once this is done, you're ready to go! Time to use your app

Usage

Setup


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.