Skip to content
Last updated

TyroEnvironment

The environment in which the SDK gets initialised with. It is required to create an instance of TyroTapToPay.

Also see ConnectionProvider.

TyroEnvironment.sandbox

This is used to test in a sandbox environment.

let tyroTapToPaySDK = try TyroTapToPay(environment: .sandbox, connectionProvider: connectionProvider)

Parameters

environmentTyroEnvironmentrequired

Environment the SDK will be running in.

connectionProviderConnectionProviderrequired

Your class that implements the Connection Provider interface which makes a call to your server to fetch the connectionSecret.

TyroEnvironment.prod

This is used for production.

let tyroTapToPaySDK = try TyroTapToPay(environment: .prod, connectionProvider: connectionProvider)

Parameters

environmentTyroEnvironmentrequired

Environment the SDK will be running in.

connectionProviderConnectionProviderrequired

Your class that implements the Connection Provider interface which makes a call to your server to fetch the connectionSecret.