# Environment

enum Environment : Enum<Environment>

The environment that SDK has been initialized in.

This value indicates the environment of the SDK based on the Square application ID used during SDK initialization - PRODUCTION for a production ID and SANDBOX for a sandbox ID.

## Entries

PRODUCTION
Link copied to clipboard
PRODUCTION
SANDBOX
Link copied to clipboard
SANDBOX

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<Environment>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): Environment

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values
Link copied to clipboard
fun values(): Array<Environment>

Returns an array containing the constants of this enum type, in the order they're declared.