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 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,

Copy
Copied
For example:
sdk.setConfig({
  env: "stg",
  appVersion: "3.51.0",
  token: "myToken",
  appId: "my-app-id"
});
2025 Copyright © Tyro Health and Tyro Payments 2025. All right reserved.