Test Web Shop in live mode

Test payment process on test payments

Once published, only real payments are available in Web Shop. To set up sandbox mode, add the Custom code block to the site, copy the following script, and click Publish.

Copy
Full screen
Small screen
<script>
  window.SB.subscribe((api) => {
    api.SetSandboxMode(true);
  });
</script>

To make test payment, follow these steps:

  1. Open the Web Shop site.
  2. Log in or sign up on the site.

  1. In the Store block, select a virtual item, virtual currency, or bundle and click Buy now.

  1. Choose the Credit/Debit cards group of payment methods.
  2. Enter the test 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.

Test payment process on real payments

Notice
Before checking the payment process on real payments, remove the script for working in sandbox mode from the Web Shop page and republish the site.

To make a real payment, follow these steps:

  1. Open the Web Shop site.
  2. Log in or sign up on the site.

  1. In the Store block, select a virtual item, virtual currency, or bundle and click Buy now.

  1. Choose the Credit/Debit cards group of payment methods.

Note
After the launch of the project, payment by any methods is available, but for testing, it is recommended to use Visa or MasterCard cards.

  1. Enter valid bank card details.

To make a refund, follow these steps:

  1. In Publisher Account, go to the Support > Transaction search section.
  2. Choose the test transaction and click the More (•••) menu button. Click Refund in the pop-up menu (transaction should have the Complete status).

Notice
After the first real payment is made, a strict sandbox payment policy takes effect. A payment in the sandbox mode is available only to users who are specified in Publisher Account in the Company settings > Users section.
Your progress
Thank you for your feedback!
Last updated: December 28, 2021

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!