Alipay+Alipay+

setConfiguration

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

Method signature

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

Request parameters

Item

Type

Description

Required

configuration

Configuration

Basic configuration that needs to be set up before starting a business.

M

Response parameters

N/A

Sample

copy
Configuration configuration = new Configuration();
configuration.envType = "PROD";
configuration.clientId = "XXX";
AlipayPlusClient.getInstance().setConfiguration(configuration);