Diget Pay Config
data class DigetPayConfig(val apiKey: String, val environment: Environment = Environment.SANDBOX, val enableLogging: Boolean = false)
Configuration the host app provides once via com.digetpay.sdk.DigetPay.initialize.
Parameters
api Key
the merchant API key issued by DigetPay (sent as the x-api-key header).
environment
which backend to target. Defaults to Environment.SANDBOX.
enable Logging
when true, HTTP requests/responses are logged (debug builds only).
Constructors
Link copied to clipboard
constructor(apiKey: String, environment: Environment = Environment.SANDBOX, enableLogging: Boolean = false)