# 3)Record Transaction Outcome When a transaction is successful, the SDK will pass through the transaction details to the first parameter of the onSuccess hook. Please refer to the [Transaction object response on Success](/developer-portal/medicare/response) for a response payload attribute transaction example. ### SDK versioning The content in the SDK modal will display the latest version of Tyro Health Online. Partners can also pass through the version of their application to the SDK via the sdk.setConfig function, ```js For example: sdk.setConfig({ env: "stg", appVersion: "3.51.0", token: "myToken", appId: "my-app-id" }); ```