The environment in which the SDK gets initialised with. It is required to create an instance of TyroTapToPay.
Also see ConnectionProvider.
This is used to test in a sandbox environment.
let tyroTapToPaySDK = try TyroTapToPay(environment: .sandbox, connectionProvider: connectionProvider)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.
This is used for production.
let tyroTapToPaySDK = try TyroTapToPay(environment: .prod, connectionProvider: connectionProvider)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.