Test Web Shop in live mode
Test payment process on test payments
After publishing Web Shop, all payments are made in the live mode by default. Making a payment in the sandbox mode is only available for users specified in Publisher Account in the Company Settings > Users section. To test the functionality in the sandbox mode:
- Open your project in Publisher Account.
- Click Site Builder in the side menu.
- In the panel of your website, click Open Site Builder.
- In the top right corner of the builder, click Preview.
- On the tab that opens, click Log in in the upper right corner and authenticate with a user email from your project in Publisher Account or create a new user account in the game using the same email.
Note
To view the email added to Publisher Account, go to the Company settings > Users section.
You can change the email address registered in Web Shop or add it following the instructions.
You can change the email address registered in Web Shop or add it following the instructions.
- Choose a virtual item, virtual currency, bundle, or subscription, and click the purchase button.
- Choose the Card payment method group.
- Enter the test bank card details. In other fields, you can enter any data. You can also specify incorrect details (card number, expiration date, or CVV) to test if an error is generated.
- Click Pay.
Test cards list
See the list of test bank cards.
Edit Web Shop user profile
To add a new email address to Publisher Account:
- Open your project in Publisher Account.
- Click Login in the side menu.
- Select the project associated with your site and click Configure.
- In the User database section, go to the Users page.
- Find the necessary user and click the ••• icon to open the menu, then click View Profile.
- In the Contact Info field, specify the Primary email that will be used for testing the sandbox mode.
- Click Save changes.
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:
- Open the Web Shop site.
- Log in or sign up on the site.
- Select a virtual item, virtual currency, bundle, or subscription and click the buy button.
- 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.
- Enter valid bank card details.
To make a refund, follow these steps:
- In Publisher Account, go to the Support > Transaction search section.
- 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.
- Subscription search. In your Publisher Account, go to Support > Subscribers, find the subscription you want to cancel, and select Cancel and refund or Cancel without refund.
- Search by recent transactions. In your Publisher Account, go to Support > Transaction search, find the last transactions to be canceled, and click Refund in the More (•••) menu.
Note
If the subscription has been paid for several times, all payments must be canceled.
- Update Subscription API call: change the subscription status to
Canceled and receive the Canceled Subscription webhook.
Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Found a typo or other text error? Select the text and press Ctrl+Enter.