TESTING
Testing & Sandbox - Android
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​
final var configCommon = Config.Common.getDefault()
// ...other settings
.withSandboxEnabled(true);
Enabling additional logging​
final var configCommon = Config.Common.getDefault()
// ...other settings
.withLogLevel(LogLevel.DEBUG)
// Forces even more internal data to be logged (e.g. profiling stats, etc).
.withDebugEnabled(true);
Before going live, turn sandbox mode and debug logging OFF.
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.