Initialize the Benji Connect SDK
Importing and initializing the SDK to start connecting your users to their loyalty platforms.
Installing the SDK
The Benji Connect SDK can be added to your application by including the SDK script in your html headers.
Initializing the SDK
The SDK is initialized with the following parameters :
This is the token that you created using the Create Token API in the previous step
This is your callback function method, which will be triggered when a member has succesfully connected with a partner loyalty program
This is your callback function method, which will be triggered when a member has closed the Benji Connect Modal. Note that this function can be whether the onSuccess callback has been called or not.
This is your callback function method, which will be triggered when a member encountered an error while connecting with their account.
This is your callback function method, which will be triggered for various events throughout the user journey within the Benji Connect flow.