{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"3)Record Transaction Outcome","description":"Tyro Health Docs","keywords":"redocly developer portal, api portal starter, api reference docs","lang":"en-US","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"_","__idx":0},"children":[{"$$mdtype":"Tag","name":"numberlabel","attributes":{"number":"3"},"children":["3)Record Transaction Outcome "]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["When a transaction is successful, the SDK will pass through the transaction details to the first parameter of the onSuccess hook."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Please  refer to the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"/developer-portal/medicare/response"},"children":["Transaction object response on Success"]}," for a response payload attribute transaction example."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"sdk-versioning","__idx":1},"children":["SDK versioning"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The content in the SDK modal will display the latest version of Tyro Health Online."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Partners can also pass through the version of their application to the SDK via the ",{"$$mdtype":"Tag","name":"highlight","attributes":{},"children":["sdk.setConfig"]}," function,"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"js","header":{"controls":{"copy":{}}},"source":"For example:\nsdk.setConfig({\n  env: \"stg\",\n  appVersion: \"3.51.0\",\n  token: \"myToken\",\n  appId: \"my-app-id\"\n});\n","lang":"js"},"children":[]}]},"headings":[{"value":"","id":"_","depth":1},{"value":"SDK versioning","id":"sdk-versioning","depth":3}],"frontmatter":{"title":"Record Transaction Outcome","seo":{"title":"3)Record Transaction Outcome"}},"lastModified":"2025-04-08T03:59:55.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/developer-portal/sdk/record-transaction-outcome","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}