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
@Interface AlipayPlusClient:NSObject
@property (nonatomic, strong) IAPConfiguration *configuration;
- (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 = IAPConfiguration.new;
configuration.envType = @"PROD";
configuration.acquirerId = @"xxx";
configuration.merchantId = @"yyy";
configuration.fromScheme = @"yourAppScheme"; // Required only for optimizing Alipay payment experience
configuration.language = @"zzz";
[[AlipayPlusClient shared] setConfiguration:configuration];