---
updatedAt: 2025-11-11T00:10:29.000Z
agentTools:
  projectIndex: https://docs.midtrans.com/llms.txt
---

# Switching to Production Mode

This document is designed to assist you in switching from *Sandbox* environment to *Production* environment, in order to start accepting real world payment for your business. This is also known as "Going Live".

# <b>1. Login to Your Midtrans Production Environment Dashboard</b>

<br />

To login to your Midtrans *Production* environment, follow the steps given below.

1. Login to your account at <https://dashboard.midtrans.com>.
   * refer to [Access Midtrans Administration Portal](https://docs.midtrans.com/docs/midtrans-account#accessing-midtrans-administration-portal) for more details.
2. Select **Production** Environment from top-left environment switcher dropdown.
   * refer to [Switching Environment](https://docs.midtrans.com/docs/midtrans-account#switching-environment) for more details.

<br />

***

<br />

# <b>2. Checking Your Production Account</b>

<br />

To make sure your production account is active, follow the steps given below.

1. On the home page, go to **SETTINGS > SNAP PREFERENCES**.
   * *SNAP Preferences* page is displayed.
2. Select **Payment Channels** tab.
   * A list of active payment methods is displayed.

<br />

***

<br />

# <b>3. Retrieving Server Key and Client Key</b>

<br />

Go to **SETTINGS > ACCESS KEYS**. Server Key and Client Key for *Production* environment and *Sandbox* environment are different. For more information, refer to [Retrieving API access keys](https://docs.midtrans.com/docs/midtrans-account#retrieving-api-access-keys).

<br />

***

<br />

# <b>4. Configuring the Integration</b>

<br />

Please select which one of integration method you are using:

<br />

## Language Libraries

<br />

If you are using Language Libraries provided by Midtrans (Midtrans PHP, Midtrans Ruby, Midtrans NodeJS, and so on), follow the steps given below.

<br />

### On Backend

<br />

1. Replace `isProduction` variable on Backend with value `true`.
2. Replace `ServerKey` variable value on the Backend with the *Server Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).

<br />

### On Frontend

<br />

<details>
<summary>If you are using <b>Snap</b></summary>
<article>

<br />

Find where you include snap.js script tag:

* From script url, remove the `.sandbox`  to `https://app.midtrans.com/snap/snap.js`.
* Replace `data-client-key` attribute value with your production *Client Key*.

<br />

```html
<script type="text/javascript"
    src="https://app.midtrans.com/snap/snap.js"
    data-client-key="<INSERT-CLIENT-KEY>"></script>
```

</article>
</details>

<details>
<summary>If you are using <b>Core API</b></summary>
<article>

<br />
Find where you include midtrans-new-3ds.min.js script tag:

\* Replace `data-environment` attribute value with `production`.

* Replace `data-client-key` attribute value with your production *Client Key*.

<br />

```html
<script id="midtrans-script" 
    src="https://api.midtrans.com/v2/assets/js/midtrans-new-3ds.min.js"
    data-environment="production" 
    data-client-key="<INSERT-CLIENT-KEY>" 
    type="text/javascript"></script>
```

</article>
</details>
<br />

## Manual API Request

<br />

If you are directly integrating by direct API call/request:

<br />

### On Backend

<br />

1. Replace API domain destination to Production API on Backend by removing `.sandbox` from the domain.
   * For example, change the API domain from `app.sandbox.midtrans.com/` to `app.midtrans.com/`.
2. Replace the `ServerKey` variable value used for API auth on the Backend with the *Server Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).

<br />

### On Frontend

<br />

<details>
<summary>If you are using <b>Snap</b></summary>
<article>

<br />

Find where you include snap.js script tag:

* From script url, remove the `.sandbox`  to `https://app.midtrans.com/snap/snap.js`.
* Replace `data-client-key` attribute value with your production *Client Key*.

<br />

```html
<script type="text/javascript"
    src="https://app.midtrans.com/snap/snap.js"
    data-client-key="<INSERT-CLIENT-KEY>"></script>
```

</article>
</details>

<details>
<summary>If you are using <b>Core API</b></summary>
<article>
<br />

Find where you include midtrans-new-3ds.min.js script tag:

* Replace `data-environment` attribute value with `production`.
* Replace `data-client-key` attribute value with your production *Client Key*.

<br />

```html
<script id="midtrans-script" 
    src="https://api.midtrans.com/v2/assets/js/midtrans-new-3ds.min.js"
    data-environment="production" 
    data-client-key="<INSERT-CLIENT-KEY>" 
    type="text/javascript"></script>
```

</article>
</details>
<br />

## WordPress WooCommerce

<br />

1. Login to your website as an administrator.
2. Go to Midtrans plugin configuration page.
3. Go to **Settings > Payment**.
4. Select **Production** from Environment drop-down list.
5. Enter the **Merchant Key**.
6. Enter **Client Key** with the *Client Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
7. Enter **Server Key** with the *Server Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).

Your website is now integrated with Midtrans. For more information, refer to [Configuring WooCommerce Plugin Notification](https://docs.midtrans.com/docs/ecommerce-platform).

<br />

## Magento

<br />

1. Login to your website as an administrator.
2. Go to Midtrans plugin configuration page.
3. Go to **Sales > Payment Method**.
4. Select **Production** from Environment drop-down list.
5. Enter **Sandbox Client Key**.
6. Enter **Sandbox Server Key.**
7. Enter **Production Server Key** with the *Server Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
8. Enter **Production Client Key** with the *Client Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).

Your website is now integrated with Midtrans. For more information, refer to [Configuring Magento CMS Notification](https://docs.midtrans.com/docs/ecommerce-platform).

<br />

## PrestaShop

<br />

1. Login to your website as an administrator.
2. Go to the Midtrans plugin configuration page.
3. Select **Production** from Environment drop-down list.
4. Enter the **Merchant ID**.
5. Enter **Client Key** with the *Client Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
6. Enter **Server Key** with the *Server Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).

Your website is now integrated with Midtrans. For more information, refer to [Configuring PrestaShop CMS Notification](https://docs.midtrans.com/docs/ecommerce-platform).

<br />

## OpenCart

<br />

1. Login to your website as an administrator.
2. Go to the Midtrans plugin configuration page.
3. Enter the **Merchant Id**.
4. Select **Production** from Environment drop-down list.
5. Enter **Client Key** with the *Client Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
6. Enter **Server Key** with the *Server Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).

Your website is now integrated with Midtrans. For more information, refer to [Configuring OpenCart CMS Notification](https://docs.midtrans.com/docs/ecommerce-platform).

<br />

## WordPress Easy Digital Download

<br />

1. Login to your website as an administrator.
2. Go to the Midtrans plugin configuration page.
3. Go to **Settings > Payment Gateway > General**.
4. Enter the **Merchant ID**.
5. Enter **Production Server Key** with the *Server Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
6. Enter **Production Client Key** with the *Client Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
7. Enter **Sandbox Server Key.**
8. Enter **Sandbox Client Key**.

Your website is now integrated with Midtrans. For more information, refer to [Configuring WordPress Easy Digital Download CMS Notification](https://docs.midtrans.com/docs/ecommerce-platform).

<br />

## WHMCS

<br />

1. Login to your website as an administrator.
2. Go to the Midtrans plugin configuration page.
3. Enter **Midtrans Client Key** with the *Client Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
4. Enter **Midtrans Server Key** with the *Server Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
5. Select **Production Mode** checkbox.
6. Click **Save Changes**.

Your website is now integrated with Midtrans. For more information, refer to [Configuring WHMCS CMS Notification](https://docs.midtrans.com/docs/ecommerce-platform).

<br />

## Drupal

<br />

1. Login to your website as an administrator.
2. Go to the **Commerce > Configuration > Payment > Payment Gateways**.
3. Enter **name** this text appears on the button displayed to the customer.
4. Click **Midtrans** *Plugin* option button.
5. Click **Production** *Mode* option button.
6. Enter **Server key** with the *Server Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
7. Enter **Client key** with the *Client Key* retrieved from [Step 3 above](#_3-retrieving-server-key-and-client-key).
8. Click **Save**.

Your website is now integrated with Midtrans. For more information, refer to [Configuring Drupal CMS Notification](https://docs.midtrans.com/docs/ecommerce-platform).

<br />

***

<br />

# 5. <b>Configuring HTTP Notification Webhooks URL</b>

* For more information on how to configure HTTP notification URL, refer to [Configuring HTTP Notifications On MAP](https://docs.midtrans.com/docs/https-notification-webhooks).

* For **Snap Integration** you can opt to configure redirect URL. For more information, refer to [Configuring Redirect URL](https://docs.midtrans.com/docs/snap-advanced-feature#configuring-redirect-url).

<br />

***

<br />

# <b>6. Done! Ready for Production Mode</b>

Now you are ready to accept real world payments in Production mode! You can test it yourself.

<br />

> 📘
>
> If further assistance is required, please contact your Midtrans Business PIC or write to us at <support@midtrans.com>.