1. Overview and requirements
The Praxis Cashier iOS SDK is the Praxis Cashier of the web, built natively for iOS. Your app shows a ready-made cashier: the customer picks the amount, the currency and the payment method, fills in the method details and billing, pays and sees the result. Your server creates the cashier session and gives the app a token; the app shows the cashier and gets one result when it closes.
| Area | Covers | Details |
|---|---|---|
| Deposits | Cards, Apple Pay and other methods | New and saved cards, Apple Pay, manual bank wire, and methods with their own fields or a provider page. Bonuses, promotion codes, fees, terms, partial approval and removal of a saved card or account are included. |
| Withdrawals | Payout sessions | A withdrawal session, the Deposit and Withdraw tabs of a session with both, the balance check, payout methods and accounts, and the list of pending withdrawals with cancel. |
| After a decline | Retry and decline recovery | The cashier offers what the payment answer asks for: a retry with a lower amount, or other payment methods for the same amount. |
Requirements
| Item | Value |
|---|---|
| SDK version | 0.2.0 |
| Platform | iOS 17 or later (the package also builds for macOS 14) |
| Language and UI | Swift 6 language mode, SwiftUI. A UIKit view controller is included |
| Distribution | Swift package tech.praxis.cashier.sdk, library product PraxisCashier. No third-party dependency |
| What the app holds | Only the session token and the service addresses. No key, no secret, no merchant credentials |
| Card data scope | Card data and customer data never reach the app (PCI DSS SAQ-A) |
What you can change
- Show it full screen, as a sheet, or from UIKit (section 4).
- Turn parts of the cashier on or off: editable amount, limits, quick amounts, currency change, promotions, saved instruments, Apple Pay (section 5).
- Follow events, get live amount updates, filter the methods and add field rules (section 7).
- Run your own code when the customer pays (section 8).
- Replace the header or footer, hide a block, insert your own views (section 9); set the theme and the texts (section 10).
- Build your own layout from the same blocks, on several pages or one page (section 11).
NoteOne rule holds everywhere: card numbers, CVVs, card tokens, contact and billing values never reach your app. The card fields are sealed inside the SDK, and your app sees only an allowed state (the snapshot) and the final result. Section 14 lists what follows from this.
How the SDK is built
Seven modules in five rings. A module may use only modules in inner rings; your app imports only PraxisCashier.
| Ring | Module | Holds |
|---|---|---|
| L0 | PraxisCashierCore | Domain types, ports, the store runtime |
| L1 | PraxisCashierDesign | Theme, texts, controls, formatting |
| L2 | PraxisCashierFlow | The payment flow reducer |
| L2 | PraxisCashierCardCapture | The sealed card fields. Card digits live in a byte vault, are drawn as glyphs, and leave the module only RSA-encrypted, to the Praxis PCI service |
| L3 | PraxisCashierUI | The blocks |
| L3 | PraxisCashierData | API clients and transport |
| L4 | PraxisCashier | The public API your app uses |
Updated about 8 hours ago