Set up a test environment with Revolut Sandbox
The Sandbox and Production accounts are not connected in any way, make sure you use the appropriate credentials and API keys for each.
When preparing to integrate your services with your Revolut Merchant account, it's crucial to conduct thorough testing before going live.
The Revolut Business Sandbox environment is designed specifically for this purpose, offering a safe, isolated space where you can simulate transactions and integrations without affecting your live operations.
Create a Sandbox account
The Sandbox environment operates independently of the Production environment. This means you cannot use your existing production credentials to log in or perform tests in sandbox environment. Instead, you'll need to create a dedicated Sandbox account.
We don't send confirmation emails or SMS in Sandbox environment.
Instead, the Sandbox environment offers helper buttons to let you proceed when approval or confirmation is needed.
Here's how to get started:
-
Register: Visit the Revolut Business Sandbox sign-up page and register a new account.
-
Provide details: Fill in the necessary details to create your account.
- If you're unsure about which option to choose as Legal business type, select Public Limited Company. Freelancer accounts are not supported in Revolut Business.
- When you see the pop-up about verification email, click the Skip email verification button in the top right corner.
- When asked for a confirmation code, click the Autofill code button above the input field.
-
Automatic approval: Unlike the Production environment, where account verification and approval might take some time, Sandbox account approvals are automatic. This lets you jump straight into testing without any delays.
-
Log in: Once the registration is complete, you can start using your account. These account credentials are unique to the Sandbox environment and cannot be used in the Production environment.
Get Sandbox API keys
To test payment methods and API calls in the Sandbox environment, you have to get the appropriate API keys linked to your Sandbox Merchant account.
We don't send confirmation emails or SMS in Sandbox environment.
Instead, the Sandbox environment offers helper buttons to let you proceed when approval or confirmation is needed.
Here's how to do it:
- Log in to your Revolut Sandbox account: Access the Revolut Business Sandbox log in page and enter your credentials.
- Confirm your login attempt: Click Skip email verification in the top right corner of the pop-up window.
- Navigate to Merchant API settings: Once logged in, access the Merchant API settings page by clicking your profile in the top right corner, then selecting Settings → APIs → Merchant API tab. Here you can access your Sandbox API keys (Public, Secret) specific to your Merchant account.
- Generate API keys: To generate your Sandbox API Secret key, click the Generate button.
- Save API keys: Use the button copy and paste your API keys where you want to use them.
If you encounter any issues during Sandbox registration, we advise you try to create another account.
Point your integration at Sandbox
Only test cards will work in the Sandbox environment. For full payment-flow test scenarios (Revolut Pay, Google Pay, and error cases), see Test payment flows.
Using the plugins
If you have installed one of our plugins, you can test payments by changing the mode of the plugin to Sandbox mode (or Test mode in some cases) and providing your Sandbox API Secret key in the configuration. To configure each of our plugins, see:
- Configuration of the WooCommerce plugin
- Configuration of the Prestashop plugin
- Configuration of the Adobe Commerce (Magento 2) plugin
- Configuration of the OpenCart plugin
- Configuration of the Shopify plugin
Using the API
Apple Pay is not available in the Sandbox environment.
If you are using your custom implementation or wish to test our APIs, just follow these 2 steps:
- Change the address of the endpoints that you want to test from
https://merchant.revolut.com/tohttps://sandbox-merchant.revolut.com/. - Set the
modeparameter tosandboxin the options of Token-based initialisation or Payments module.
Here is what it should look like:
type RevolutCheckout = (
token: string,
mode: 'sandbox'
) => Promise<Instance>;