Alipay+ DocsAlipay+ Docs

setConfiguration

The setConfiguration API is used to set up the SDK with the required configurations before other APIs are used. The configuration is stored in the RAM and may be used in the internal logic of the other APIs.

Method signature

copy
public static void setConfiguration(IAPConfiguration configuration);

Request parameters

Name

Type

Length

Description

Required

configuration

IAPConfiguration

/

An object that includes the parameters for setting up the SDK.

M

Response parameters

N/A

Sample

copy
IAPConfiguration configuration = new IAPConfiguration();
configuration.envType = "SANDBOX";
configuration.acquirerId = "XXX";
configuraiton.merchantId = "YYY";
configuration.language = "ZZZ";
AlipayPlusClient.setConfiguration(configuration);