POS SDK overview
Accept WollettePay payments and issue refunds from an Android app. Your app signs merchants in and completes orders. The SDK reads payment data, signs requests and saves unresolved operations so you can recover them.
Start with terminal association
Install the POS product, attach a current merchant session, select the original terminal and verify its association. This first API checkpoint needs no second device and makes no payment. A matching association is separate from a usable signing key.
After that works, inspect retained financial state, prepare a key, then follow two-device setup. The quickstart offers a complete payment starter and a smaller existing-app association component.
Choose the right SDK
| Your app | Android package | Swift product |
|---|---|---|
| Customer wallet | com.wollette:wollette-sdk-app | WolletteApp |
| Merchant terminal | com.wollette:wollette-sdk-pos | Not available; POS is Android only |
Each product includes the shared module as a dependency. POS has its own entry point, session and storage. It does not depend on the consumer wallet module. If you are building the customer's payment screen, start with Consumer contactless payments.
What your app owns
| Your app | POS SDK |
|---|---|
| Merchant sign-in and token renewal | Validates the supplied session and selected terminal |
| Terminal IDs, original device serial and actual capabilities | Creates or reads the device association |
| Screens, device permissions and location | Foreground NFC/Bluetooth acquisition |
| Deciding when to create, rotate or recover a terminal key | Protected key storage and signatures |
| Order state, split payments and refund limits | Payment/refund initiation and typed results |
| Recording the result and completing the order | Retains the operation until you acknowledge it |
| Support and reconciliation for unresolved cases | Recovery of the saved request |
SoftPay, cloud payment routing and general card acceptance remain outside this API.
Follow the payment flow
- Attach a merchant session and select the terminal.
- Read or create its device association.
- Check for an outstanding operation before preparing a new payment.
- Make sure the terminal has a usable signing key.
- Call
payorrefundwith an NFC reader or an NFC/Bluetooth coordinator. - Record the returned result in your app's durable order state.
- Acknowledge a definitive result when your app can safely prevent duplicate initiation.
An outstanding operation takes the recovery path before a new payment or key mutation.
Supported platform roles
| Role | Android | iOS |
|---|---|---|
| Consumer presents payment data | NFC through HCE | Foreground Bluetooth LE client |
| POS reads payment data | NFC or configured Bluetooth LE | Not available; POS is Android only |
The code implements these roles. Device compatibility and live payment/refund behaviour still require testing in your target environment.