Skip to main content

Testing & Sandbox - iOS

This section provides various snippets and examples of how to configure the sandbox environment to be able to make test payments, make logging more verbose, and so on.

Enabling sandbox mode

SKPaymentSettings* settings = ...;

settings.useSandbox = YES;
warning

Remember to turn the sandbox mode OFF before going LIVE.

Enabling additional logging

SKPaymentSettings* settings = ...;

settings.logLevel = SKLogLevelDebug;
warning

Make sure the debug logging is OFF before going LIVE.

Test cards

For a list of cards to simulate payments in sandbox mode, see here ↗ (https://developers.xsolla.com/doc/pay-station/testing/test-cards).

important

The test cards won't work outside the sandbox mode.