Wallet activation model
Check activation before enabling features that require completed activation. A basic read of an existing wallet does not require activation to be complete. The SDK confirms AIS, Griffin, the BaaS account and PIS from server state. A BaaS account can exist while PIS is still incomplete.
AIS → Griffin → BaaS account creation → PIS → complete| Step | What the consumer does | Server evidence the SDK requires |
|---|---|---|
| AIS | Links a bank account through open-banking consent, including a visit to the bank's authorisation page | At least one AIS consent with status CONSENT_COMPLETED |
| Griffin | Completes identity verification and registration with Wollette's banking partner | The latest registration has status ACCEPTED |
| Account creation | Nothing. The SDK creates the BaaS account from the accepted registration if none exists | A BaaS account exists for the consumer |
| PIS | Authorises payments from the linked account, including a visit to the bank | A CONSENT_COMPLETED PIS consent that refers to a completed AIS consent, plus the wallet |
The SDK decides the step
You never tell the SDK which form to open. start reads the consumer's current state from the API, opens the form for the first incomplete step, and continues until activation is complete or a step cannot progress. progress performs the same reads without opening anything. Before PIS, the SDK saves a recovery record containing the consumer ID, AIS consent ID and whether this is account linking. After a restart, check pendingProgress before general progress so an interrupted account-linking flow is not hidden by an already-active wallet.
The SDK confirms each step with Wollette
When a hosted form finishes its work it sends the SDK a finished message. The SDK treats this as a signal to re-read the API, not as success. It polls for about 30 seconds. If the server confirms the change, the SDK opens the next form in the same call. If the state is unchanged after the window, the call returns the step that is still needed so your app can offer to resume later.
Griffin states and modes
The Griffin step can take time and can be interrupted. The SDK maps the latest registration's raw status to a mode that tells the hosted form what to show:
| Latest registration status | Mode | Form behaviour |
|---|---|---|
| None, or missing id or status | start | Begin a new registration |
DRAFT | resume (or start immediately after AIS in the same call) | Load the saved draft; after AIS, show Griffin consent first |
PENDING_VERIFICATION_DOCUMENTS, PENDING_VERIFICATION_RESOURCES, PENDING_VERIFICATION_SUBMISSION | verify | Resume identity verification |
IN_PROGRESS, REFERRED, PRE_PSC_REGISTRATION, PRE_ONBOARDING_SUBMISSION | pending | Show the waiting state |
ERRORED, DECLINED | retry | Show the failure and let the user retry |
ACCEPTED | accepted (from registrationStatus) | SDK creates the BaaS account if needed and proceeds to PIS |
When several registrations exist, the SDK selects the latest by timestamp, then by numeric version when timestamps tie.
Results
General activation returns one of these results. Interpret Complete in the context of the operation you called:
| Result | Meaning | What to do |
|---|---|---|
Complete / .complete | General activation confirms AIS, Griffin, the BaaS account and PIS. Targeted recovery or account linking can return it for that operation alone | Show the wallet for general activation; after linking/recovery check the target and general progress separately |
Needs(step) / .needs(step) | AIS or PIS is still required and did not confirm within the window | Offer to continue later; check pendingProgress and choose the recovery method |
Griffin(state) / .griffin(state) | The Griffin step did not confirm within the window. state.mode is start, resume, verify, pending or retry; accepted appears only from registrationStatus | Show the state; use the recovery guide when the consumer returns |
Targeted recovery with no saved record returns Complete without starting a flow. Duplicate-account linking can also return Complete without confirming general activation. Use the recovery rules and refresh actual linked accounts.
Errors end the call instead of returning a result: CANCELLED when the consumer closes a form, ONBOARDING_FAILED when a form reports failure, and the usual API errors.
Add another bank account
Use addAccount (Android) or addWalletAccount (iOS) for a new linking attempt. The SDK requires a new completed AIS consent reported by the trusted form callback and checks PIS for that target. General activation can already be complete for a different account. See Read the wallet, linked accounts and transactions.
"Save and continue later"
The SDK-owned Griffin form can save a draft. The SDK closes the form, reads progress once and returns that current progress without polling or opening another form. A draft normally maps to Griffin with mode resume, but server state can produce another Griffin mode, Needs or Complete. Inspect the actual result and use resume guidance. The public custom-adapter interface does not expose the built-in draft-saved signal; see adapter limits.
Bank and identity-provider pages
AIS and PIS take the consumer to the bank's authorisation page inside the same WebView. Griffin may hand off to an external identity-verification page. The SDK recognises the return in both cases, restores the hosted form, and waits for the form to confirm the result. These waits happen before the finished message and are not limited by the 30-second confirmation window.
Details of the restoration mechanics are in Hosted form contract. The guides are Activate the wallet and Resume activation after a restart.