Test the payment process

To test the payment process, you can:

  • Use the Sandbox
  • Make a real payment and then initiate a refund via Publisher Account

Xsolla Sandbox is a stand-alone environment that supports all features of the live environment, except real payments. You can access the Sandbox by sending "mode":"sandbox" when you get the token.

To test a bank card payment:
  1. Open the payment UI in sandbox mode.
  2. Choose the Credit/Debit cards group of payment methods.
  3. Enter the bank card details. Enter any values in the remaining fields. You can also specify incorrect details (card number, expiration date, or CVV) in order to generate an error.
Test cards list
See the list of test bank cards.
Note:
Sandbox bank card payments can be made in the following currencies: USD, EUR, RUB, GBP, AED, ALL, AMD, ARS, AUD, AZN, BGN, BRL, BYN, CAD, CHF, CLP, CNY, COP, CZK, DKK, DZD, EGP, GEL, HKD, HRK, HUF, IDR, ILS, INR, ISK, JPY, KES, KGS, KRW, KZT, MAD, MDL, MKD, MNT, MXN, MYR, NGN, PEN, PHP, PKR, PLN, RON, RSD, SAR, SEK, SGD, THB, TRY, TWD, UAH, UYU, UZS, VEF, VND, ZAR.
Notice:
To start receiving real payments, remove "mode":"sandbox" first.

To test the payment process by making real payments, it's also recommended to use a bank card:

  1. Open the payment UI.
  2. Choose the Credit/Debit cards group of payment methods.
  3. Enter valid bank card details.
  4. After the payment is made, go to the Transaction search section in Publisher Account.
  5. Select your test transaction and click Refund (the transaction must be in the Completed status).

Note:
It's recommended to use Visa and MasterCard cards to test the payment process.

Continue reading

Next steps

Go live →