Widget Callbacks

Handle your Okra Widget data in real-time

Handle callbacks beyond just onSuccess in order to gracefully handle errors and build analytics around your Okra Widget.

Available Callbacks

Callback

Description

Example

onSuccess

Called after the successful linking of an account to your Okra Widget

 console.log('handle success', json)
}```

onError

Called after and error occurs while linking an account to your Okra Widget

 console.log('handle error', error)
}```

onClose

Called when the Okra Widget is closed.

 console.log('handle close', json)
}```

What's Next

View data returned on the success of the widget

Did this page help you?