Testing

This page includes test data and other information to make sure your integration works as planned. It can be used to trigger different flows in your integration and ensure they are handled accordingly.

Test accounts and magic numbers

PHI test accounts

  • Fund : isoft test fund
  • healthFundCode : ISF
  • Member number : any 8 digit number
  • Patient ID : any number between 01 - 09
  • Card issue : any number between 01 - 09

Simulated claim responses

The health fund claiming engine is stubbed in non-production environments. To Stub for create/approve/reverse set the following in the invoiceReference.

Sub Text Expected Response
STUB_OK Defaults to 60% benefit. You can set item.chargeAmount between $11 and $12 to fail in individual item with an error code matching the 'cents'.
STUB_NO_GAP All items get 100% benefit.
STUB_ALL_GAP All items get 0 benefit.
STUB_HP_CLAIM_ERROR HP XML response with error at the claim level (no items in response).
STUB_HP_ERROR HP XML error response
STUB_400 400 error from Switch
STUB_500 500 error from Switch
STUB_HP_APPROVE_ERROR Like STUB_OK but the approve step fails with HP XML error response.
STUB_APPROVE_400 Like STUB_OK but the approve step fails with 400 error from Switch.
STUB_APPROVE_500 Like STUB_OK but the approve step fails with 500 error from Switch.
STUB_HP_CANCEL_ERROR Like STUB_OK but the cancel step fails with HP XML error response.
STUB_CANCEL_400 Like STUB_OK but the cancel step fails with 400 error from Switch.
STUB_CANCEL_500 Like STUB_OK but the cancel step fails with 500 error from Switch.

Stub text(s) are applied in the invoiceReference field

2024 Copyright © Tyro Health and Tyro Payments 2024. All right reserved.