Alipay+ DocsAlipay+ Docs

setRemoteConfigProxy

Call the setRemoteConfigProxy API to set up a proxy for managing SDK configurations remotely. This proxy is mandatory.

Method signature

copy
public static func setRemoteConfigProxy(_ proxy: IAPAPRemoteConfigProxy)

Request parameters

Parameter

Type

Required

Description

proxy

IAPAPRemoteConfigProxy

Yes

The implementation of a remote configuration managing proxy.

IAPAPRemoteConfigProxy

copy
public protocol IAPAPRemoteConfigProxy {
    func config(for key: String, defaultValue: @autoclosure () -> String?) -> String?
}

Response parameters

N/A

Sample

copy
IAPApplePay.setRemoteConfigProxy(RemoteConfigProxy())