# setConfiguration

> The merchant app must use the setConfiguration API to set the initialization parameters before using other APIs.

The Mobile Payment Provider (MPP) app must use the **setConfiguration** API to set the initialization parameters before using other APIs.

## Method signature

```java
public class AlipayPlusClient {
    public void setConfiguration(Configuration configuration);
}
```

## Request parameters

| **Item** | **Type** | **Description** | **Required** |
| --- | --- | --- | --- |
| configuration | [Configuration](android_appendix#HoRJF) | Basic configuration that needs to be set up before starting a business. | M |

## Response parameters

N/A

## Sample

```java
Configuration configuration = new Configuration();
configuration.envType = "PROD";
configuration.clientId = "XXX";
configuration.siteName = "YYY";
AlipayPlusClient.getInstance().setConfiguration(configuration);
```