Empello FraudStop - Traffic Insight
This section details how you can add additional parameters to your Checkout or Hosted Button Integration to enrich your traffic analysis within Empello Fraudstop.
You can add up to four parameters for your analysis, these parameters are:
Name | Description | Type | Usage |
---|---|---|---|
sla_param1 | The first string parameter you can add for your data analysis | string | optional |
sla_param2 | The second string parameter you can add for your data analysis | string | optional |
sla_param3 | The third string parameter you can add for your data analysis | string | optional |
sla_param4 | The fourth string parameter you can add for your data analysis | string | optional |
Note
Once you begin adding these parameters to your traffic, they'll appear on your dashboard within a few hours.
Checkout
To incorporate these parameters as part of your Checkout integration, include up to four of them as part of your query string when redirecting to checkout.
Example Request
http://checkout.sla-alacrity.com/purchase?merchant={merchant_uri}&service={service_uri}&redirect_url={url}&correlator={correlator}&sla_param1={sla_param1}&sla_param2={sla_param2}&sla_param3={sla_param3}&sla_param4={sla_param4}
or
For Zain operators http://msisdn.sla-alacrity.com/purchase?merchant={merchant_uri}&service={service_uri}&correlator={correlator}&redirect_url={url}&sla_param1={sla_param1}&sla_param2={sla_param2}&sla_param3={sla_param3}&sla_param4={sla_param4}
http://msisdn.sla-alacrity.com/purchase?
merchant=partner:4e3f654ed86dbb113bb472be07630b3cb6ad0859&
service=campaign:940d351138df895e8dedf51e5d7b90788cdc23d0
&correlator=123XYZ
&sla_param1=testparam1&sla_param2=testparam2&sla_param3=testparam3&sla_param4=testparam4
&redirect_url=http://test.com/api/callback/123?transaction_id=XXXXXXXX
Button Integration
To incorporate these parameters as part of your Hosted Button Integration , include up to four of them as part of your credentials parameters.
<script>
function slaCallback(e) {
if ( e.origin === 'http://checkout.sla-alacrity.com' ||
e.origin === 'https://checkout.sla-alacrity.com' ) {
var data = e.data;
if (data['status'] === 'error') {
//Add your custom error handling code
//data['message'] will contain the error reason
}
if (data['status'] === 'success') {
//data['token'] will contain the TOKEN that can be used with the subscription/create API
}
}
}
window.addEventListener('message', slaCallback, false);
(function() {
var credentials = {
merchant: '<your partner uri>',
service: '<your campaign uri>',
sla_param1: '<your first param for traffic analysis>',
sla_param2: '<your second param for traffic analysis>',
sla_param3: '<your third param for traffic analysis>',
sla_param4: '<your fourth param for traffic analysis>'
};
var custom = {
};
const sla = new Sla(credentials, custom);
sla.showButton();
})();
</script>
Updated almost 3 years ago