How it works
Overview

How it works

Your wallet app calls the consumer SDK to sign in, activate the wallet and use Wollette APIs. Your provider creates developer signatures; the SDK attaches them to API requests. Hosted wallet forms receive the current consumer session through WebView injection.

Your appUI, developer key, push token, optional own sign-in
→
Wollette SDKSessions, request signing headers, WebView, API calls, NFC (Android), Bluetooth (iOS)
→
Wollette APIsRegistration, consents, registrations, wallet, payments
Hosted wallet formsAIS, Griffin and PIS pages opened by the SDK in a WebView. They receive the current session by injection, never in the URL.

The lifecycle

Follow these stages for a new consumer. Returning consumers resume from their current session and activation state.

  1. ConfigureCreate the SDK with your API base URL and implement an ApiContextProvider that signs a fresh nonce for every request.
  2. Register (new consumers only)Check phone availability, request and verify an OTP, then create the user from your own screens. Registration returns a consumer id. It does not sign the user in.
  3. Sign inCall login to use Wollette's hosted login, or applySession to hand the SDK a session your backend already holds.
  4. Associate the device when neededCall setRegistrationToken with the Firebase token before push or payment-device features. A basic wallet read does not need this step.
  5. Activate the walletStart wallet onboarding. The SDK opens hosted forms for AIS, Griffin and PIS, and confirms progress with the API. It creates the BaaS account through an API call after Griffin acceptance and before PIS.
  6. Use the walletRead the wallet, linked accounts and transactions. Top up, pay out, manage profile and balance controls.
  7. Present payment dataAndroid arms NFC with payments.pay. iOS uses AppleBlePaymentClient.exchange. Stop the relevant client on screen exit and wait for the confirmed financial outcome.
  8. Sign outCall clear. On successful cleanup, the SDK deletes its session, saved recovery record and WebView storage; Both platforms clear their native consumer payment keys; Android also disarms NFC. Stop the separate iOS Bluetooth client before cleanup.

Authentication, activation and device readiness

Consumer Wollette API requests carry a developer proof. Before each HTTP attempt, including a retry after a token refresh, the SDK asks your ApiContextProvider for a new signed nonce and sends it in three headers. Hosted login exchange and token refresh do not need the proof. Local-only calls such as clear never ask for one. See Developer authentication.

The SDK confirms every activation step with Wollette. After a hosted form reports it has finished, the SDK reads the activation status from the API and only moves on when the server confirms the change. The form callback alone does not confirm that the step succeeded. The SDK also saves a small recovery record before PIS: consumer ID, AIS consent ID and operation type. After a restart it uses that record to recover the intended operation, then confirms status with the server. See Wallet activation model.

Check readiness for the feature you need. A session and developer proof allow an existing wallet read without Firebase/device association. Associate the device for push or payment-device features; check activation status for activation-dependent work. Device association and wallet activation are separate steps, each confirmed by Wollette and retried on its own. A successful clear removes the local session, recovery record and native consumer payment keys. It does not undo the device association or the activation, which live on the server.

Sequence of a full integration

StepYour app callsSDK doesWollette returns
Registeronboarding.requestOtp, verifyOtp, createUserRegistration requests with developer headersConsumer id, fullyRegistered
Sign inlogin or applySessionHosted login exchange, or session validation and storageSession stored in the SDK
Associate, for push/payment-device featuressetRegistrationTokenReads, then creates or updates the device association—
ActivatewalletOnboarding.startReads status, opens the form for the current step, re-reads status after the callback, creates the BaaS account before PISComplete, or the step still needed
Usewollette.retrieve, linkedAccounts, transactions.listWallet and consent readsWallet, accounts, pages
Present paymentAndroid payments.pay; iOS Bluetooth exchangeArms HCE or transfers encrypted payer dataFinancial outcome is separate
Sign outclearLocal deletion only—

Merchant acceptance

The POS SDK uses a merchant session and terminal key. It accepts payment data, initiates a payment/refund and retains the operation for recovery. Your merchant app records the result and completes the order. Consumer developer-proof and hosted-login instructions do not apply to native POS methods.

First-run checkpoints

CheckpointWhat it confirmsContinue with
App compilesYour selected SDK product and helper code resolveConfigure signing and the approved callback
Hosted login returnsThe consumer session is storedRead the activated test wallet
Wallet model returnedSession, developer proof, environment and test account work togetherDisplay the wallet; add another feature
New consumer createdRegistration returned a consumer IDSign in, then activate; registration alone is not a session

For merchant acceptance, the first live result is terminal association. Payment-key readiness, two-device exchange, financial authorisation and order completion are later checkpoints.