# Launch into production

## Before you begin

Under the **Production** tab, you can launch the application into the production environment. Before this, ensure that you have conducted the sandbox acceptance testing.

## Step 1: Get the Client ID

On the **Production** > **Settings** page, you can find that each application is assigned a unique **Client ID**, which is used to specify the _Client-Id_ parameter in the API request header. For more information, see the [Request header](../api_mpp/api_overview#3mLq0) section in _API Reference_.

> **Note**: The value here is different from the one for the sandbox.

![image](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1736763957928-e5c8986b-6c42-441b-93fe-fec64de508ed.png)

## Step 2: Configure the production environment

To configure the production environment on the **Production** > **Settings** page, complete the following task.

### 1\. Set a production public key

To make your integration safer, Alipay+ uses asymmetric keys for API signature. Your key pair and the Alipay+ public key are required in your local code. You need to generate your key pair and upload your public key to get the Alipay+ public key.

In the **Public Key** panel of the **Production > Settings** page, complete the following steps.

1.  Click **Set Your Public Key**.

![image](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1673848250163-285bf279-eace-4c7e-8c1d-99b53a0a6591.png)

2.  On the **Set Your Public Key** page, click the respective link to download the RSA2 signature tool that is provided by Alipay+.

![image](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1673848434197-5af30559-df89-44eb-ad9c-cdb6838d4682.png)

3.  Open the zipped folder and run the **Run.bat** file.

![image](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1680243756336-f03b8927-d285-4658-bea1-3c7b4e18eb8f.png)

4.  Click **New** to generate a key pair. Keep the private key locally.

![image](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1644487874573-3a053fed-d5e4-4880-b93d-5ae19312b483.png)

5.  Copy the public key and enter it on the **Set Your Public Key** page.

![image](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1673848519249-3b5af4a8-558b-42af-a266-3d47ca61c265.png)

6.  Click **Submit** to upload your public key.

After submission, the Alipay+ public key is generated automatically. You can click the respective button to view or copy the Alipay+ public key.

![image](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1673848594696-709a937a-aa6a-4d51-9f08-65f0a32a8532.png)

Your public key is updatable. Click **Edit Your Public Key** to update it. Please remember to update your key pair in your local code.

### 2\. Provide integration information for Alipay+

Contact the Alipay+ Solution Architect Team to complete the following two tasks:

-   Provide the integration information for Alipay+, which includes:

-   The MPP name and logo to be displayed on the merchant cashier page
-   An outgoing IP address for Alipay+ API calls
-   API endpoints where Alipay+ calls APIs
-   An outgoing IP address for the Alipay+ SFTP server

-   Obtain the integration information from Alipay+, which includes:

-   An SFTP account and password to download clearing and settlement reports

## Step 3: Launch your application

On the **Production** > **Launch** page, launch your application by following the steps below.

### 1\. Check task status

To go live, ensure that all the following tasks in Alipay+ Developer Center are completed:

-   **Contract Signing**: Ensure that you have signed the contract and that the task status is **Completed**. If not, contact the Alipay+ Business Development to sign the contract.
-   **Production Settings**: Ensure that you have configured the production environment correctly and that the task status is **Completed**. If not, click **Go to Production Settings** to check.
-   **Go-live Checklist**: Ensure that you have completed all the tasks listed in the checklist and tick the box.

![image](https://idocs-assets.marmot-cloud.com/storage/idocs87c36dc8dac653c1/1736763958003-92c7a8c8-e9ef-4086-81f5-bc939d874970.png)

### 2\. Go live

Click **Launch** in the top-right corner of the page to launch your application, after which the application and the Production Client ID become valid.

> **Note**: After the application is launched, if you need to modify configuration details such as the public key or notification URL, email verification is needed.

After you launch the application, contact the Alipay+ Solution Architect to conduct production acceptance testing.