iOS SDK
Accept deposits and withdrawals in your iOS app with the native Cashier.
1. Introduction
The Praxis iOS SDK brings the Praxis Cashier into your iOS app as a native, ready-to-use payment experience. Your customers choose the amount, the currency and the payment method, pay, and see the result without ever leaving your app, in a Cashier that looks and feels like the rest of it.
One integration gives you the payment methods configured for your application at Praxis, for deposits and withdrawals alike, and keeps card data fully out of your app.
The SDK gives you:
- Fast integration. One view shows the complete Cashier. Your server creates the session with the Cashier Payment Request you may already use for the Hosted Payment Page.
- Server-driven payment methods. The Cashier shows the methods, fields, limits, fees, bonuses and texts configured for your application at Praxis. A method added at Praxis works in your app without an app update.
- Secure card handling. Card details are entered in sealed fields, encrypted on the device and sent only to Praxis. Card data never reaches your app, which keeps it out of your PCI DSS card data scope.
- Deposits and withdrawals. Withdrawal sessions, sessions with Deposit and Withdraw tabs, payout accounts and pending withdrawals are built in.
- Complete payment journeys. Every step from the first tap to the result screen is handled for you, including partial approval, decline recovery and retries.
- Your look and layout. Use the predefined template as it is, add your branding with a theme, texts and slots, or arrange the blocks in your own layout.
2. Supported features
- New card payments, with 3-D Secure
- Saved cards (CVV re-entry, removal)
- Methods with their own fields, including server-loaded options
- Methods that open a provider page, including bank apps
- Manual bank wire
- Deposits (
payment), authorizations (authorization), withdrawals (withdrawal) - Sessions with more than one intent (Deposit and Withdraw tabs)
- Bonuses, promotion codes, fees, terms acceptance
- Partial approval
- Decline recovery: retry with a lower amount, or another method
- Currency change
3. Requirements
| Requirement | Minimum |
|---|---|
| iOS deployment target | iOS 18 |
| Xcode | 27.2 or later |
| Swift | 6 toolchain |
| Package manager | Swift Package Manager |
You also need:
- a Praxis merchant account with the iOS SDK enabled for your application (ask your CSM);
- the PCI card form enabled for your application (ask your CSM);
- a server that signs Praxis API requests (see Authentication);
- a
notification_urlendpoint for the Payment Notification webhook.
4. How it works
From an implementation perspective, the SDK works with these parts:
- Server-side: your server creates a cashier session for the iOS SDK with the Cashier Payment Request (
channel: "ios_sdk") and sends the session token to your app. - Client-side: your app shows the Cashier with the token. The SDK talks to Praxis directly with that token. It holds no merchant key or secret.
- Client-side: your app gets one result when the Cashier closes.
- Webhooks: your server gets the final status of every payment from the Payment Notification.
sequenceDiagram
autonumber
participant A as Your app + Praxis SDK
participant S as Your server
participant PX as Praxis
participant PSP as Payment Service Provider
A->>S: The customer taps Deposit
S->>PX: POST /cashier/cashier (channel = ios_sdk, app_return_url)
PX-->>S: session.auth_token
S-->>A: token
A->>A: CashierView(token:environment:)
A->>PX: Payment, authenticated with the token
PX->>PSP: Process the payment
PSP-->>PX: Payment answer
opt Redirection, e.g. 3-D Secure
PX-->>A: Redirect to the PSP or issuer page
A->>PSP: Opens the page inside the Cashier
PSP-->>A: Returns to the Cashier (app_return_url)
A->>PX: Reads the payment status
end
PX-->>A: Payment status
A-->>A: onResult(CashierResult)
PX-)S: Payment Notification (notification_url)
The payment flow:
- The customer starts a deposit or withdrawal in your app.
- Your server creates a cashier session and returns its token to the app.
- Your app shows the Cashier with the token.
- The customer enters the amount, picks a method, enters the details and pays. Praxis processes the payment with the Payment Service Provider (PSP).
- Optional: when the PSP or the card issuer asks for it, for example for 3-D Secure, the Cashier opens their page inside the Cashier and returns to the payment when the customer completes it. See 3-D Secure and provider pages.
- The Cashier shows the result, and your app gets it when the Cashier closes.
- Your server receives the Payment Notification and updates the customer's balance.
Trust the webhook, not the deviceCredit or debit the customer's balance only after your server has received and verified the Payment Notification. The result in the app tells the customer what happened on screen.
5. Integration options
| Option | Effort | You control | Start here |
|---|---|---|---|
| Predefined template | Lowest: one view | Nothing in the layout; your configuration and the payment methods set at Praxis apply | Quick Start |
| Template with configuration | Low | Plus features, behavior, theme and texts | Configuration |
| Template with slots | Low | Plus your header and footer, hidden blocks, your views between blocks | Customization |
| Your own layout | Medium | Plus the order of blocks, one page or several pages | Layouts & Examples |
| Your own controls | Higher | Plus your own views over the Cashier state, such as your own method list, and blocks drawn in your own design | Layouts & Examples, Blocks Catalog |
Every option keeps card and customer data inside the SDK.
6. Security, PCI DSS and logs
6.1 PCI DSS scope
The SDK keeps card data and customer data out of your app, which minimizes your PCI DSS scope. Confirm the self-assessment questionnaire (SAQ) that applies to your integration with your assessor. See PCI DSS.
- Sealed card fields. The card number and CVV are entered in sealed fields inside the SDK. They never leave the SDK unencrypted: they are encrypted on the device and sent only to Praxis.
- No card data in your code. Events, hooks, the snapshot, the payment handler and the result never contain card numbers, CVVs, card tokens or any part of a card number. The result and events carry only the card brand name.
- No customer data in your code. Names, emails, phone numbers, addresses and field values stay inside the SDK.
- No error text from the server. The SDK reports codes, never server messages.
6.2 No secrets in the app
The app holds only the session token. It never holds your merchant_id, application_key, merchant secret or any signing key, and it never signs a request. The token works only for that session and expires 15 minutes after the Cashier first opens it.
6.3 Network
- The SDK talks only to the Praxis services of the environment you choose (
.sandboxor.live), over HTTPS. Their addresses are built into the SDK. - Method logos and bank icons load over HTTPS.
6.4 Operational logs
The Cashier sends operational logs to Praxis, as the web Cashier does, so Praxis support can follow a session. Praxis turns logging on or off for your application. When it is off, the Cashier sends nothing. You do not configure anything for logs.
What logs hold: operational information only, such as the Cashier events, timings, the SDK and iOS versions, the device model and language, the payment method, the transaction status, error codes and the trace ID.
What logs never hold: card data, the session token or any other secret, or personal data such as names, email addresses, phone numbers, postal addresses or IP addresses.
Logs never slow the Cashier down or change what it does, they are not stored on the device, and your app does not see them.
6.5 Do not
- Do not log, store or send the session token anywhere other than to the SDK.
- Do not record the Cashier screens: exclude them from session-replay, screen-recording and screenshot tools in your app, because the card and contact fields show what the customer types.
- Do not put card data, customer data or server text into
CashierTexts, theme values or slot content. - Do not create sessions in the app or ship Praxis credentials in the app bundle.
- Do not credit or debit a balance from the result in the app.
6.6 Your responsibilities
- Create sessions only on your server, after you have authenticated your app user. Take
cid, amount, currency and intent from your own records. - Verify the
gt-authenticationsignature of every Payment Notification and process notifications idempotently. - Use HTTPS for
notification_urland your session endpoint.
What's next
- Quick Start: a working Cashier in your app, with code to copy
- Integration Guide
- Configuration & Customization
- Layouts
- Blocks Catalog: every block, what it shows by default and how to customize it
- Styled Examples with Cashier.Pages: four cashiers drawn by the app, with their code
- Results, Errors & Troubleshooting
- SDK Reference
Updated about 18 hours ago