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.

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

Parameters

environment
required
TyroEnvironment

Environment the SDK will be running in.

connectionProvider
required
ConnectionProvider

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.

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

Parameters

environment
required
TyroEnvironment

Environment the SDK will be running in.

connectionProvider
required
ConnectionProvider

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

Copyright © Tyro Payments 2019-2024. All right reserved.