Testing and going live

Sandbox

  1. Ask your CSM to enable the iOS SDK for your sandbox application.
  2. Create sessions from your server against the sandbox with channel: "ios_sdk".
  3. 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

ScenarioExpected 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 challengeThe page opens inside the Cashier and closes on its own; the Cashier shows the result
Provider page that opens a bank appThe customer returns to your app through app_return_url; the Cashier reads the status
Customer closes a 3-D Secure or provider page before finishingThe 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 deviceThe provider page loads, completes and returns to the Cashier
Pending payment.pending; final status from the Payment Notification
Partial approvalThe accept / cancel screen
Saved cardCVV entry; removal of a saved card
Withdrawal.pending with withdrawalStatus .requested, or .completed
Customer tries to close the Cashier during processingThe 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 loadingError screen; after close, .failed with the screen's code (for example network or session_unavailable)
Your own layout or slotsNo 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 valid app_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 CashierErrorCode maps to a message in your app, with a default branch.
  • Every switch over SDK status, closed-by, withdrawal status, step, intent, error code and error category values has a default branch.
  • Your support flow logs orderID, traceID and errorCode.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 CashierTexts until 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.


Did this page help you?