You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).