Install and prepare the POS SDK
Get started

Install and prepare the POS SDK

Install the merchant product and verify the original terminal association first. Order data, a usable payment key and a second device are required when you move on to payment/refund tests.

Before you begin

Required inputWhere it comes from
HTTPS API base URLWollette's target environment
SDK version and repository/package accessWollette's SDK release owner
Merchant access token and remaining lifetime in secondsYour merchant sign-in service
Merchant, branch and POS IDsYour merchant/terminal provisioning flow
Original terminal serial and device nameYour existing terminal identity
Full capability setYour app's actual hardware and payment configuration
Order ID, amount, currency and current location, for payment/refundYour checkout flow
Durable order/result storage, before financial initiationYour application

POS requests use the merchant Bearer token. The consumer DeveloperId and bundled developer signing key are not POS setup requirements. A consumer app connecting over Bluetooth still needs its own developer authentication.

Request POS development access

Use your Wollette partner contact; a public request/support route is still unconfirmed. Send the integration request template and ask for:

  • Exact supported POS SDK version and package/repository permissions.
  • Matching HTTPS API origin, merchant sign-in/renewal route and approved test account.
  • Merchant, branch and POS IDs, original terminal serial/name and full registered capabilities.
  • For payment tests: approved order, amount/currency/location, eligible refund data, physical device pair and outcome controls.

Keep merchant credentials separate from consumer sign-in and developer proof. On restart restore the same API/storage and terminal context, then reattach a current merchant session.

Association checkpoint: ensureDeviceAssociation() returns the expected original serial and capabilities. Existing capabilities are not overwritten. Stop setup and resolve a mismatch with provisioning; a replacement serial or storage namespace is not a fix.

Check the access pack before association

Confirm the SDK version/access, test API origin, merchant token/remaining lifetime and original merchant/branch/POS/serial/name/capabilities as one matching set. Ask the assigned contact to resolve missing or mismatched values. Consumer tokens, DeveloperId and consumer device serials are different inputs.

The minimal repository starter or smaller association component can establish the first API checkpoint without an order, payment key or second device. The complete payment starter also reads order/location configuration during setup. Choose the route for your current test.

Android

Use API 24 or later and Java 17. Set android.useAndroidX=true in the host project's gradle.properties, as in the repository examples. The reviewed SDK builds with compileSdk 35, Kotlin 2.0.21, AGP 8.8.2 and Gradle 8.10.2. Confirm compatibility with your host app.

Add the repository to your existing settings.gradle.kts:

Kotlin
dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        maven {
            url = uri("https://maven.pkg.github.com/wollette/wollette-sdk")
            credentials {
                username = providers.gradleProperty("gpr.user").orNull
                    ?: System.getenv("GITHUB_ACTOR")
                password = providers.gradleProperty("gpr.key").orNull
                    ?: System.getenv("GITHUB_TOKEN")
            }
        }
    }
}

Set wolletteVersion to the version supplied by Wollette. In your app module:

Kotlin
val wolletteVersion = providers.gradleProperty("wolletteVersion").get()
dependencies {
    implementation("com.wollette:wollette-sdk-pos:$wolletteVersion")
}

Shared types resolve transitively. Keep all Wollette artifacts on the same version. Keep download credentials in user-level Gradle properties or your CI secret store.

The POS manifest declares NFC and Bluetooth permissions and optional hardware features. Your app still requests applicable Bluetooth runtime permissions. The POS artifact contains no consumer HCE service.

Keep identity stable

Keep one SDK owner for each API URL and storageId. After restart, use those same values and restore the original terminal before recovery. Pass the original POS serial; the consumer SDK's device UUID is a different identity.

Different independently managed terminals may use distinct storage IDs. Do not change a storage ID to bypass an unresolved payment.