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.
The lifecycle
Follow these stages for a new consumer. Returning consumers resume from their current session and activation state.
- ConfigureCreate the SDK with your API base URL and implement an
ApiContextProviderthat signs a fresh nonce for every request. - 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.
- Sign inCall
loginto use Wollette's hosted login, orapplySessionto hand the SDK a session your backend already holds. - Associate the device when neededCall
setRegistrationTokenwith the Firebase token before push or payment-device features. A basic wallet read does not need this step. - 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.
- Use the walletRead the wallet, linked accounts and transactions. Top up, pay out, manage profile and balance controls.
- Present payment dataAndroid arms NFC with
payments.pay. iOS usesAppleBlePaymentClient.exchange. Stop the relevant client on screen exit and wait for the confirmed financial outcome. - 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
| Step | Your app calls | SDK does | Wollette returns |
|---|---|---|---|
| Register | onboarding.requestOtp, verifyOtp, createUser | Registration requests with developer headers | Consumer id, fullyRegistered |
| Sign in | login or applySession | Hosted login exchange, or session validation and storage | Session stored in the SDK |
| Associate, for push/payment-device features | setRegistrationToken | Reads, then creates or updates the device association | — |
| Activate | walletOnboarding.start | Reads status, opens the form for the current step, re-reads status after the callback, creates the BaaS account before PIS | Complete, or the step still needed |
| Use | wollette.retrieve, linkedAccounts, transactions.list | Wallet and consent reads | Wallet, accounts, pages |
| Present payment | Android payments.pay; iOS Bluetooth exchange | Arms HCE or transfers encrypted payer data | Financial outcome is separate |
| Sign out | clear | Local 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
| Checkpoint | What it confirms | Continue with |
|---|---|---|
| App compiles | Your selected SDK product and helper code resolve | Configure signing and the approved callback |
| Hosted login returns | The consumer session is stored | Read the activated test wallet |
| Wallet model returned | Session, developer proof, environment and test account work together | Display the wallet; add another feature |
| New consumer created | Registration returned a consumer ID | Sign 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.