You can find our SDK here:
In order to create a widget instance through the FlexitiSDK, you should use the following:
var FlexitiSdk = new FlexitiSdk({ clientId: {{your_client_id}}, accessToken : {{access_token}}, iframeContainer: {{container_id}}, env:"training", // use 'mi' for Merchant Integration, use 'prod' for Production failureCallback: handleCallbackFailure, cancelCallback: handleCallbackCancel, successCallback: handleCallbackSuccess, }); function handleCallbackSuccess (data) { console.log("successCallback:", data); alert('Success'); } function handleCallbackFailure (data) { console.log("failureCallback:", data); alert('Failure'); } function handleCallbackCancel (data) { console.log("cancelCallback:", data); alert('Cancel'); } |
Parameter | Required | Details | |
---|---|---|---|
clientId | Yes |
| |
accessToken | Yes |
| |
iframeContainer | Yes |
| |
env | Yes |
| |
failureCallback | Yes |
| |
cancelCallback | Yes |
| |
successCallback | Yes |
|
Access Token Notes: In order to control the data flow Flexiti takes the access_token as a referential value of the entire flow. Usually there are several steps before and after reaching this widget implementation so:
|