Test Web Shop in live mode
Test payment process on test payments
Once published, only real payments are available in Web Shop. If needed to set up sandbox mode, add the Custom code block to the site, copy the following script, and click Publish.
Copy
- html
<script>
window.SB.subscribe((api) => {
api.setSandboxMode(true);
});
</script>
To make test 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.
- 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 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.
To cancel your subscription, use one of the options below:
- 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.Rate this page
Rate this page
Don’t want to answer
Thank you for your feedback!
Found a typo or other text error? Select the text and press Ctrl+Enter.