You can find our SDK here:
httphttps://flexiti-widget.flexiti.fiposapi.s3.amazonaws.com/flexiti-pos-api-js-sdk-v2.esm.jshttp
To be used with frameworks that require ESM modules
https://flexiti-widget.flexiti.fiposapi.s3.amazonaws.com/flexiti-pos-api-js-sdk-v2.jshttp
https://flexiti-widget.flexiti.fiposapi.s3.amazonaws.com/flexiti-pos-api-js-sdk-v2.zip
In order to create a widget instance through the FlexitiSDK, you should use the following:
Code Block | ||
---|---|---|
| ||
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');
}
|
...