Skip to content

Getting Started

The Recognizer SDK enables you to easily scan digital and physical receipts.

Integration

  1. Add the following maven repository to your build.gradle or settings.gradle, depending on your implementation:
 repositories {
   maven { url = uri("https://maven.microblink.com") }
 }
 repositories {
   maven { url "https://maven.microblink.com" }
 }
  1. Add the following to your dependency section in your app build.gradle.
dependencies {
    implementation(platform("com.microblink.blinkreceipt:blinkreceipt-bom:1.8.7"))

    implementation("com.microblink.blinkreceipt:blinkreceipt-recognizer")
}
dependencies {
    implementation platform("com.microblink.blinkreceipt:blinkreceipt-bom:1.8.7")

    implementation "com.microblink.blinkreceipt:blinkreceipt-recognizer"
}

Setting your license keys

There are two ways you can set the license keys for the Account Linking SDK.

Android Manifest

In your AndroidManifest.xml file, create the following meta-data tags, and insert your keys under the android:value attribute:

<meta-data
    android:name="com.microblink.LicenseKey"
    android:value=""
/>

<meta-data
    android:name="com.microblink.ProductIntelligence"
    android:value=""
/>

Both the values for com.microblink.LicenseKey and com.microblink.ProductIntelligence can be obtained by emailing blinkreceipt@microblink.com.

Programmatically

If you want to set your keys programmatically, you can do so by setting them on the appropriate BlinkReceiptSdk fields in your application class in the onCreate method:

BlinkReceiptSdk.productIntelligenceKey("product_intelligence_license_key")

Initializing the SDK

Before you can use the SDK it needs to be initialized. The best way to do this is to call the following function in your application class in the onCreate method:

BlinkReceiptSdk.initialize(this, object : InitializeCallback {
    override fun onComplete() {}

        override fun onException(exception: Throwable) {}

    })

That’s it! You’re all set up to use the Recognizer SDK. Check out the next chapter for more information on how to use the SDK.