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.

AreaCoversDetails
DepositsCards, Apple Pay and other methodsNew 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.
WithdrawalsPayout sessionsA 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 declineRetry and decline recoveryThe cashier offers what the payment answer asks for: a retry with a lower amount, or other payment methods for the same amount.

Requirements

ItemValue
SDK version0.2.0
PlatformiOS 17 or later (the package also builds for macOS 14)
Language and UISwift 6 language mode, SwiftUI. A UIKit view controller is included
DistributionSwift package tech.praxis.cashier.sdk, library product PraxisCashier. No third-party dependency
What the app holdsOnly the session token and the service addresses. No key, no secret, no merchant credentials
Card data scopeCard 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).
📘

Note

One 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.

RingModuleHolds
L0PraxisCashierCoreDomain types, ports, the store runtime
L1PraxisCashierDesignTheme, texts, controls, formatting
L2PraxisCashierFlowThe payment flow reducer
L2PraxisCashierCardCaptureThe 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
L3PraxisCashierUIThe blocks
L3PraxisCashierDataAPI clients and transport
L4PraxisCashierThe public API your app uses

Did this page help you?