Configuration
Reference

Configuration

This is the consumer WolletteConfig reference. Merchant apps use WollettePosConfig in the POS API reference.

Pass WolletteConfig when creating the SDK. Invalid API-origin or timeout settings throw VALIDATION. Obtain environment URLs from Wollette; the example URLs below are placeholders.

FieldTypeDefaultNotes
apiBaseUrlStringrequiredHTTPS origin. The SDK appends /api/v1
requestTimeoutMillisInt60000Must be positive
loginBaseUrlString?noneHTTPS origin of the hosted login service. Required for login and refresh
redirectUriString?noneApp callback URI for hosted login, for example myapp://wollette-callback. Android: intent filter on LoginRedirectActivity. iOS: scheme in CFBundleURLTypes
registrationTokenString?noneFirebase token the SDK uses for device association once a session exists. Required for push/payment-device features, not a basic wallet read. Passing it here does not associate the device by itself; call setRegistrationToken after sign-in before those features and on token rotation. On Android, pay also uses it
appTypeWolletteAppTypeTHIRD_PARTY / .thirdPartyControls only whether createUser requires an address

WolletteAppType

ValueRule
THIRD_PARTY / .thirdPartyDefault. createUser requires an address
NATIVE_WOLLETTE / .nativeWollettecreateUser may omit an address. This is not a credential or authorisation grant

Constructors

val sdk = WolletteSdk(
    context = applicationContext,
    config = WolletteConfig(
        apiBaseUrl = "https://api.example.com",
        loginBaseUrl = "https://login.example.com",   // omit for applySession
        redirectUri = "myapp://wollette-callback",     // omit for applySession
        registrationToken = fcmToken,
    ),
)

Android requires a Context so the SDK can persist a local device id; only the application context is retained.

Environments

Use separate API/login configurations and developer key pairs for development and production. In the reviewed source, both platforms fix wallet forms to https://devsdk.wollette.com. WolletteConfig has no form-origin option. Changing apiBaseUrl or loginBaseUrl does not switch the hosted forms.

Configuration and service ownership

InputSourcePersistence rule
API originMatched access pack, HTTPS without /api/v1Keep the environment consistent with stored state
Hosted login origin/callbackWollette login service and approved app URIMatch SDK, app declarations and server registration
Developer identity and alias/tagEnrolment plus the chosen provisioner/importerKeep the installed key identifier consistent with the signer
Request timeoutApp policy; default 60 secondsA timeout does not establish a financial outcome
FCM tokenYour Firebase integrationUpdate on rotation; not required for basic wallet reading
POS storage/terminalYour stable namespace and original provisioning recordRestore before inspecting retained operations
Token lifetimeYour authentication serviceSupply actual remaining seconds; POS token is memory-only

The minimal repository apps, original complete starters and copyable components have separate READMEs. Use one retained SDK owner; a wrapper that constructs its own SDK replaces that direct service. Host order/receipt state must survive native acknowledgement and restart.

Backend contracts

These task pages cover the existing backend services:

These are source contracts and implementation records. Obtain the deployed origins, permissions and approved inputs from the matching access pack.