{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["json-schema"]},"type":"markdown"},"seo":{"title":"TyroEnv Classes","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":"tyroenv-classes","__idx":0},"children":["TyroEnv Classes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Required to create an instance of ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["TyroTapToPaySdk"]},"."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"see-for-parameter-info","__idx":1},"children":["See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/in-person-payments/tap-to-pay/android/sdk/connection-provider"},"children":["ConnectionProvider"]}," for parameter info."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tyroenvdev","__idx":2},"children":["TyroEnvDev"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is used to test the development environment."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"kotlin","header":{"controls":{"copy":{}}},"source":"class TyroEnvDev(\n    connectionProvider: ConnectionProvider\n) : TyroEnv()\n","lang":"kotlin"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters","__idx":3},"children":["Parameters"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"type":"object","properties":{"connectionProvider":{"type":"ConnectionProvider","description":"Your class that implements the Connection Provider interface which makes a call to your server to fetch the `connectionSecret`."}},"required":["connectionProvider"]},"options":{"schemaExpansionLevel":3},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"type":"object","properties":{"connectionProvider":{"type":"ConnectionProvider","description":"Your class that implements the Connection Provider interface which makes a call to your server to fetch the `connectionSecret`."}},"required":["connectionProvider"]}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tyroenvprod","__idx":4},"children":["TyroEnvProd"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is used for production."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"kotlin","header":{"controls":{"copy":{}}},"source":"class TyroEnvProd(\n    connectionProvider: ConnectionProvider\n) : TyroEnv()\n","lang":"kotlin"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters-1","__idx":5},"children":["Parameters"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"type":"object","properties":{"connectionProvider":{"type":"ConnectionProvider","description":"Your class that implements the Connection Provider interface which makes a call to your server to fetch the `connectionSecret`."}},"required":["connectionProvider"]},"options":{"schemaExpansionLevel":1},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"type":"object","properties":{"connectionProvider":{"type":"ConnectionProvider","description":"Your class that implements the Connection Provider interface which makes a call to your server to fetch the `connectionSecret`."}},"required":["connectionProvider"]}}}},"schemaResolvedErrors":[]},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"tyroenvstub","__idx":6},"children":["TyroEnvStub"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["This is used when you just want to test the app without hitting the real environment. Responses and delays can be set in the constructor."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"kotlin","header":{"controls":{"copy":{}}},"source":"class TyroEnvStub(\n    val initStatus: InitStatus = INIT_SUCCESS,\n    val transactionStatus: TransactionStatus = TXN_SUCCESS,\n    val initDelayMillis: Long = 3000,\n    val transactionDelayMillis: Long = 5000\n) : TyroEnv()\n","lang":"kotlin"},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"parameters-2","__idx":7},"children":["Parameters"]},{"$$mdtype":"Tag","name":"JsonSchema","attributes":{"schema":{"type":"object","properties":{"initStatus":{"type":"InitStatus","description":"The stubbed status that will returned after initialisation","enum":["INIT_SUCCESS","INIT_CONNECTION_ERROR","INIT_AUTH_ERROR","INIT_NFC_UNAVAILABLE_ERROR","INIT_REQUEST_PERMISSIONS_ERROR","INIT_ATTESTATION_FAILED_ERROR","INIT_ATTESTATION_ERROR","INIT_SDK_ERROR","INIT_ERROR"]},"transactionStatus":{"type":"TransactionStatus","description":"The stubbed status that will be returned after transactions are executed.","enum":["TXN_SUCCESS","TXN_DECLINED","TXN_FAILED","TXN_NO_APP_ERROR","TXN_FAILED_ALLOW_FALLBACK","TXN_CARD_EXPIRED","TXN_ONLINE_ERROR","TXN_CANCELLED","TXN_TIMEOUT","TXN_CARD_ERROR","TXN_REQUIRE_CDCVM","TXN_PERMISSIONS_ERROR","TXN_VERIFY_CONNECTION_SERVER_ERROR","TXN_VERIFY_CONNECTION_TYRO_ERROR","TXN_VERIFY_CONNECTION_REJECTED","TXN_UNKNOWN_ERROR"]},"initDelayMillis":{"type":"Long","description":"The amount of delay before initialisation completes."},"transactionDelayMillis":{"type":"Long","description":"The amount of delay before a transaction completes."}},"required":["tyroEnv"]},"options":{"schemaExpansionLevel":1},"schemaResolved":{"openapi":"3.1.0","components":{"schemas":{"__root":{"type":"object","properties":{"initStatus":{"type":"InitStatus","description":"The stubbed status that will returned after initialisation","enum":["INIT_SUCCESS","INIT_CONNECTION_ERROR","INIT_AUTH_ERROR","INIT_NFC_UNAVAILABLE_ERROR","INIT_REQUEST_PERMISSIONS_ERROR","INIT_ATTESTATION_FAILED_ERROR","INIT_ATTESTATION_ERROR","INIT_SDK_ERROR","INIT_ERROR"]},"transactionStatus":{"type":"TransactionStatus","description":"The stubbed status that will be returned after transactions are executed.","enum":["TXN_SUCCESS","TXN_DECLINED","TXN_FAILED","TXN_NO_APP_ERROR","TXN_FAILED_ALLOW_FALLBACK","TXN_CARD_EXPIRED","TXN_ONLINE_ERROR","TXN_CANCELLED","TXN_TIMEOUT","TXN_CARD_ERROR","TXN_REQUIRE_CDCVM","TXN_PERMISSIONS_ERROR","TXN_VERIFY_CONNECTION_SERVER_ERROR","TXN_VERIFY_CONNECTION_TYRO_ERROR","TXN_VERIFY_CONNECTION_REJECTED","TXN_UNKNOWN_ERROR"]},"initDelayMillis":{"type":"Long","description":"The amount of delay before initialisation completes."},"transactionDelayMillis":{"type":"Long","description":"The amount of delay before a transaction completes."}},"required":["tyroEnv"]}}}},"schemaResolvedErrors":[]},"children":[]}]},"headings":[{"value":"TyroEnv Classes","id":"tyroenv-classes","depth":1},{"value":"See for parameter info.","id":"see-for-parameter-info","depth":3},{"value":"TyroEnvDev","id":"tyroenvdev","depth":2},{"value":"Parameters","id":"parameters","depth":3},{"value":"TyroEnvProd","id":"tyroenvprod","depth":2},{"value":"Parameters","id":"parameters-1","depth":3},{"value":"TyroEnvStub","id":"tyroenvstub","depth":2},{"value":"Parameters","id":"parameters-2","depth":3}],"frontmatter":{"title":"TyroEnv Classes","seo":{"title":"TyroEnv Classes"}},"lastModified":"2026-09-02T01:02:13.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/in-person-payments/tap-to-pay/android/sdk/tyro-env","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}