Sandbox and production environments

Overview

Sandbox mode is a stand-alone environment that includes all features of the production environment (live mode) except for user authorization and the ability to make real payments.

In sandbox mode, you can make payments using any payment method available in the payment UI, except real bank cards. For testing, use the test bank cards from the list. When making payment in sandbox mode, no funds are deducted from real accounts. For testing with test bank cards and PayPal, you can follow available scenarios.

After making the payment, you receive a receipt identical to the one sent after completing real payments. The receipt is sent to the email passed in the token request. If you enabled webhooks in your project, you will also receive a webhook about a successful payment.

To see detailed information, including fees, about transactions made in sandbox mode:

  1. Open your Publisher Account.
  2. Go to Accounting > Transaction registry.
  3. Check the Show test transactions box.

Note
Refer to API reference for sandbox to find the list of webhooks and API calls provided for sandbox mode.
Notice
When experiencing issues with work in sandbox mode, contact Xsolla customer support.

Switching between environments

Note
Before you sign a contract with Xsolla, testing your payment process is only available in sandbox mode. In case of any errors, see their descriptions.

To access sandbox mode, pass the “settings.mode”: “sandbox” parameter in the request body for obtaining the token. To open the payment UI, use the following URL: https://sandbox-secure.xsolla.com/paystation4/?token=TOKEN, where TOKEN is the received token.

To switch to production environment:

  1. Sign the licensing agreement with Xsolla in Publisher Account in the Agreements & taxes > Agreements section.
  2. Remove the “settings.mode”: “sandbox” parameter from the request body when obtaining a token.
  3. Open the payment UI using the following link: https://secure.xsolla.com/paystation4/?token=TOKEN, where TOKEN is the received token.

Notice
After the first real payment is made, a strict sandbox payment policy takes effect. Payments made in sandbox mode are available only to users who are specified in Publisher Account in the Company settings > Users section.

Options for payment process testing

You can explore the main Pay Station features while testing the payment process via API or interaction with the payment UI. The following testing options are available:

Was this article helpful?
Thank you!
Is there anything we can improve? Message
We’re sorry to hear that
Please explain why this article wasn’t helpful to you. Message
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.
Last updated: April 23, 2024

Found a typo or other text error? Select the text and press Ctrl+Enter.

Report a problem
We always review our content. Your feedback helps us improve it.
Provide an email so we can follow up
Thank you for your feedback!