Rutter Link Config

Rutter Link JavaScript and React bindings take in a configuration object with the following format:

FieldTypeNotes
publicKeystringYour Rutter-issued public token which you can find in the Rutter Dashboard.
onSuccessfunction of following type: (err?: ErrorEnum) => any;See definition for ErrorEnum below
onExitfunction of following type: (err?: ErrorEnum) => any;See definition for ErrorEnum below

📘

A Note on Callbacks

Only one callback will be called - either onSuccess or onExit, but not both.

Error Enum

ValueConditions to Trigger
"MERCHANT_CLOSED"The popup window has been closed prematurely (usually by the user) - i.e. authentication is incomplete but window is closed.
"UNKNOWN_ERROR"The window has passed an event to the link bindings which cannot be handled.