Skip to content

1.0.20

Latest

Choose a tag to compare

@OhBehive OhBehive released this 04 Jul 16:44

[1.0.20] - 2026-07-03

Behavior changes for integrators

  • linkAccountAsync() now throws when linking fails or is declined (previously it never threw). Wrap the call in try/catch and handle the failure — e.g. keep showing your "link account" prompt.
  • prepare() can now throw the new KoardMerchantSDKError.readerTokenInvalid. Handle it in your catch; a retry typically recovers.
  • Changing the API key resets the session — after reconfiguring the SDK with a different key, log in again before making requests.

Fixed

  • Reconfiguring the SDK with a different API key now starts a fresh session instead of reusing the previous one.
  • The card reader no longer briefly shows "ready" after logout, or when switching merchant or location.
  • An unlinked device no longer flashes "preparing" before reporting that the account isn't linked.
  • Account-linking failures are now reported to the caller instead of being silently ignored.

Added

  • KoardMerchantSDKError.readerTokenInvalid — reported when the reader token is rejected (for example, a token used against the wrong environment).

Changed

  • Card-reader preparation is faster.