{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["json-schema"]},"type":"markdown"},"seo":{"title":"TyroEnvironment","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":["openapi"],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"tyroenvironment","__idx":0},"children":["TyroEnvironment"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The environment in which the SDK gets initialised with. It is required to create an instance of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TyroTapToPay"]},"."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Also see ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/in-person-payments/tap-to-pay/ios/sdk/connection-provider"},"children":["ConnectionProvider"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tyroenvironmentsandbox","__idx":1},"children":["TyroEnvironment.sandbox"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is used to test in a sandbox environment."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"let tyroTapToPaySDK = try TyroTapToPay(environment: .sandbox, connectionProvider: connectionProvider)\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters","__idx":2},"children":["Parameters"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"type":"object","properties":{"environment":{"type":"TyroEnvironment","description":"Environment the SDK will be running in."},"connectionProvider":{"type":"ConnectionProvider","description":"Your class that implements the Connection Provider interface which makes a call to your server to fetch the `connectionSecret`."}},"required":["environment","connectionProvider"]},"options":{"schemaExpansionLevel":1},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"type":"object","properties":{"environment":{"type":"TyroEnvironment","description":"Environment the SDK will be running in."},"connectionProvider":{"type":"ConnectionProvider","description":"Your class that implements the Connection Provider interface which makes a call to your server to fetch the `connectionSecret`."}},"required":["environment","connectionProvider"]}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tyroenvironmentprod","__idx":3},"children":["TyroEnvironment.prod"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is used for production."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"swift","header":{"controls":{"copy":{}}},"source":"let tyroTapToPaySDK = try TyroTapToPay(environment: .prod, connectionProvider: connectionProvider)\n","lang":"swift"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters-1","__idx":4},"children":["Parameters"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"type":"object","properties":{"environment":{"type":"TyroEnvironment","description":"Environment the SDK will be running in."},"connectionProvider":{"type":"ConnectionProvider","description":"Your class that implements the Connection Provider interface which makes a call to your server to fetch the `connectionSecret`."}},"required":["environment","connectionProvider"]},"options":{"schemaExpansionLevel":1},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"type":"object","properties":{"environment":{"type":"TyroEnvironment","description":"Environment the SDK will be running in."},"connectionProvider":{"type":"ConnectionProvider","description":"Your class that implements the Connection Provider interface which makes a call to your server to fetch the `connectionSecret`."}},"required":["environment","connectionProvider"]}}}},"schemaResolvedErrors":[]},"children":[]}]},"headings":[{"value":"TyroEnvironment","id":"tyroenvironment","depth":1},{"value":"TyroEnvironment.sandbox","id":"tyroenvironmentsandbox","depth":2},{"value":"Parameters","id":"parameters","depth":3},{"value":"TyroEnvironment.prod","id":"tyroenvironmentprod","depth":2},{"value":"Parameters","id":"parameters-1","depth":3}],"frontmatter":{"title":"TyroEnvironment","seo":{"title":"TyroEnvironment"}},"lastModified":"2026-09-02T01:02:13.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/in-person-payments/tap-to-pay/ios/sdk/tyro-environment","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}