Skip to main content

TESTING

Testing & Sandbox

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​

var configuration = XsollaStoreClientConfiguration.Builder.Create()
// ...
.SetSandbox(true)
.Build();

Testing in Unity Editor​

Testing in the Unity Editor uses the current platform's implementation (e.g., Windows or macOS).

warning

Remember to turn the sandbox mode OFF before going LIVE.

Enabling additional logging​

var configuration = XsollaStoreClientConfiguration.Builder.Create()
// ...
.SetLogLevel(XsollaLogLevel.Debug)
.Build();
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.