Installation
Add the SteadPay Android SDK via a local composite build or published artifact:Quick start
Wrap the authenticated portion of your app inSteadpayGate:
- Active —
YourApprenders normally - Warning — dismissable banner above content
- Lockout — full-screen overlay until card is updated
Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
tenantSlug | String | ✓ | — |
customerId | String | ✓ | — |
publishableKey | String | ✓ | — |
apiBase | String | ✓ | — |
pollIntervalMs | Long | 600_000 | |
forcedStatus | SteadpayStatus? | null | |
callbacks | SteadpayCallbacks? | null | |
lockoutScreen | @Composable (...) | built-in | |
warningBanner | @Composable (...) | built-in | |
content | @Composable () -> Unit | ✓ | — |
Callbacks
Custom enforcement UI
Testing
Force a state
forcedStatus is set. Remove before shipping.
Interactive sandbox
DEV badge appears in the bottom-right corner. Tap to open a bottom sheet with state pills and a callback log. Remove before shipping to production.
Direct controller usage
For custom state management outside Compose:controller.dispose() in onDestroy or when the controller is no longer needed.