setEnvironment

The setEnvironment API allows the super app to customize the SDK environment name.

Note: Must call this API before initializing the SDK.

Method signature

copy
setEnvironment(environment:String?)

Parameters

Name

Type

Description

Required

environment

String

Indicates the SDK environment name.

Note: If this parameter is empty or null, the default "prod" is used, which indicates the production environment.

Yes

Samples

copy
IAPGriverConfig.getInstance().setEnvironment("prod")