.openCardOnFileSwitcher
is replaced with a more flexible .open
.Product
enum values .card_switcher | .transaction_link
.open
action now requires a KnotConfiguration
which is now Knot.open(knotConfiguration)
.onEvent
type now provides the environment and product the event originanted from.KnotError
type provides improved error descriptions and product type.KnotSuccess
type now provides a product type and a metaData map.Event Name Prior to 1.0 | 1.0 Event Name |
---|---|
refresh session request | REFRESH_SESSION_REQUEST |
merchant clicked | MERCHANT_CLICKED |
login started | LOGIN_STARTED |
authenticated | AUTHENTICATED |
otp required | OTP_REQUIRED |
security questions required | SECURITY_QUESTIONS_REQUIRED |
approval required | APPROVAL_REQUIRED |
KnotError
enum.errorDescription
) and a unique error code (errorCode
).Error Case | Description |
---|---|
.invalidSession | The session is invalid. |
.expiredSession | The session has expired. |
.invalidClientId | The client ID is invalid. |
.internalError | An internal error occurred. |
.merchantIdNotFound | The merchant ID is required when product type = transaction_link. |
close
method, as it is infrequently applicable to the integration with the Knot SDK._knotapiFlutterPlugin.close()
as opposed to _knotapiFlutterPlugin.closeKnotSDK()
.