Testing and going live
Sandbox
- Ask your CSM to enable the iOS SDK for your sandbox application.
- Create sessions from your server against the sandbox with
channel: "ios_sdk". - Show the Cashier with
environment: .sandbox.
Use the test cards and test data in Testing. The payment methods you can test depend on the gateways configured for your sandbox application.
What to test
| Scenario | Expected result |
|---|---|
| Approved card payment | .completed; Payment Notification received |
| Declined payment | .failed with declined, or the retry / recovery page when Praxis offers it |
| 3-D Secure challenge | The page opens inside the Cashier and closes on its own; the Cashier shows the result |
| Provider page that opens a bank app | The customer returns to your app through app_return_url; the Cashier reads the status |
| Customer closes a 3-D Secure or provider page before finishing | The page closes and the Cashier reads the status; usually .pending, final status from the Payment Notification |
| Every method with a provider page, on a real device | The provider page loads, completes and returns to the Cashier |
| Pending payment | .pending; final status from the Payment Notification |
| Partial approval | The accept / cancel screen |
| Saved card | CVV entry; removal of a saved card |
| Withdrawal | .pending with withdrawalStatus .requested, or .completed |
| Customer tries to close the Cashier during processing | The close button is hidden and swipe-down is refused until the result |
| Cashier still open 15 minutes after it first opened the session | .failed with session_expired (or .pending while a payment's result is unknown) |
| Web session token (channel missing) | .failed with configuration_error |
| No network while loading | Error screen; after close, .failed with the screen's code (for example network or session_unavailable) |
| Your own layout or slots | No layout_incomplete event with every method your account offers |
Implementation checklist
- The iOS SDK is enabled for your live application.
- Your server creates sessions with
channel: "ios_sdk"and a validapp_return_url, after authenticating the app user. - The release build uses
environment: .live, and your server creates live sessions. - Your app registers
app_return_url(URL scheme or Universal Link), tested on a real device with a bank app. - The Payment Notification handler verifies signatures, is idempotent, and is the only place balances change.
- Every
CashierErrorCodemaps to a message in your app, with adefaultbranch. - Every
switchover SDK status, closed-by, withdrawal status, step, intent, error code and error category values has adefaultbranch. - Your support flow logs
orderID,traceIDanderrorCode.rawValue.
Current limits
Not supported:
- Switching from the card method to open banking during a card payment.
- Keeping a decline recovery when the Cashier is opened again.
Good to know:
- Card brands. A card brand the session does not allow is refused when the card is submitted, and the error shows on the card number. There is no brand check while the customer types.
- Return from a bank app. If your app does not register
app_return_url, the customer switches back by hand. - Texts without wording. Some withdrawal, retry and recovery texts have no default wording yet, and the Cashier shows their text key. Set them with
CashierTextsuntil the defaults are available. [TBD: list of keys, or remove once wording ships.]
Support
For enablement and troubleshooting, contact your CSM. When you report an issue, include the orderID, transactionID, traceID and errorCode.rawValue of the CashierResult, the SDK version, the iOS version and the sequence of event names you received.
Updated 8 days ago
Did this page help you?