Rutter Link

Rutter Link Configuration

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
debugbooleanWhether to enable debug mode, which log the steps of the Rutter Link flow to the console. Defaults to false.

A Note on Callbacks

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

ErrorEnum

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.