Alipay+ DocsAlipay+ Docs

setConfiguration

Call the setConfiguration API to initialize the SDK's overall configuration. You must call this method before calling any other APIs. If you call this API multiple times, only the most recent call takes effect.

Method signature

copy
public static func setConfiguration(config: IAPAPConfiguration)

Request parameters

Parameter

Type

Required

Description

config

IAPAPConfiguration

Yes

The configuration used to initialize the SDK.

IAPAPConfiguration

Field

Type

Required

Description

appGroupName

String

Yes

The iOS app group identifier used to enable secure data sharing between this component and your main app or extensions.

isLoggingEnabled

Bool

No

Whether the log function is enabled.
Valid values:

  • true: enabled
  • false: disabled

Response parameters

N/A

Sample

copy
let config = IAPAPConfiguration()
config.appGroupName = "mpp.group"
IAPApplePaySDK.setConfiguration(config)