Integrate with React Native
Guides

Integrate with React Native

Call the native POS SDK through your host application's bridge. Keep payment keys, payer data, signing and financial recovery in the native layer.

Integration scope

The current SDK guide records the following host-source references. They describe source inspected by the repository author; they are not supported release or deployment evidence.

Host repositoryRecorded referenceScope/status in the SDK guide
wollette-possdk-pos-integration (historical branch); inspected source d235cbeNative bridge, terminal keys, payment/refund host flow and coordinator wiring
wollette-mobile007-wollette-mobile-integration at 2088bae8, rechecked in the SDK guide on 6 NovemberConsumer native bridge, recovery and foreground Bluetooth screen
wollette-mobilefeat/wip-wollette-mobile-integration at 650de3c0Historical reference recorded on 2 November; distinct from the 6 November integration ref
wollette-mobiledevelop at 9b24be78Does not contain that SDK bridge in the recorded inspection

Install com.wollette:wollette-sdk-pos on Android; the POS SDK has no iOS product. POS depends on shared, without consumer wallet or HCE implementation.

Keep responsibilities explicit

The native bridge exposes one POS module, correlated stages and typed errors. Your JavaScript application owns:

  • Merchant login/refresh and current terminal selection.
  • Permissions, location and screen lifecycle.
  • Durable order/refund flow identity.
  • Split allocation, authorised-method persistence and final order completion.
  • User decisions to retry, recover or replace a key.

Do not pass private keys or raw payer payloads into JavaScript for normal operation. Native configuration installs the trusted Bluetooth profile and session/encryption provider.

Preserve financial state

The documented host flow writes a durable marker before native initiation. It checks the returned request ID, amount and currency against its own flow, records the result/receipt, then acknowledges native state.

Use a distinct host flow ID for each intended partial refund, including equal amounts against the same original payment. Keep authorised methods when another split method or completion step fails. Retry only the unfinished host step.

Unknown results use explicit native operation recovery. A 401 can trigger host token renewal for the next explicit action; it must not automatically repeat the failed initiation.

Receipts and unresolved journals can outlive logout. Restoring the original basket/refund draft or reconciling externally remains a host responsibility. The native journal cannot reconstruct old JavaScript attempts that never persisted an exact request and UUID.

Use the existing host recovery flow

The repository's 6 November source review records src/services/wollettePayFlow.ts and __tests__/services/wollettePayFlow.test.ts at POS integration ref d235cbe. The flow persists a marker before initiation, validates request ID/amount/currency, saves a per-flow receipt and acknowledges native state. Receipts survive acknowledgement and logout; markers contain no payer, token or private-key material.

The isolated tests cover failed host saves/completion, corrupt/orphan records, exact replay and equal partial refunds. Use that implementation as the starting point rather than adding another financial journal in JavaScript. The SDK repository records this inspection; clean partner builds and backend/device acceptance remain required.

Migrate an existing terminal key

Read the existing trusted encrypted-storage record, preserve its original serial and capabilities, and import the key natively. Remove the old copy only after successful native write/readback.

The documented host can create a missing key or rotate a due/expired key before a new payment. That is host orchestration of explicit native methods. Uncertain key mutations require explicit recovery.

Configure Bluetooth natively

The documented host branches install the SDK v1 profile and concrete providers. Native configuration controls whether Bluetooth is available; a JavaScript option cannot install a trusted security adapter.

paymentCapabilities reports adapter configuration. It does not guarantee radio permission, hardware availability or a production-ready backend.

Stop stale work

On backgrounding, screen exit, account/terminal changes and logout, cancel the relevant attempt and reject late stages/results from older attempts. Native cancellation is not server-side cancellation after financial submission.

The consumer Bluetooth bridge reports transferred, not authorised. Your app still needs the confirmed final-outcome channel.

Physical transport, native storage durability and live payments/refunds remain part of integration testing.