You must be logged in to view the page.×

FraudLabs Pro - Agent Javascript Code

LiteCart Fan
From Australia
Member since dec. 2018

Firstly I would like to say this is a great extension, and thanks to Tim for rewriting it for Litecart 2.2

Secondly, I have a  question.  I have installed the extension as per the instructions and it works great.  But there are 2 features that don't work with the default installation:

  1. Device Information
    When I click on the "Device Information" tab in Fraudlabspro, it gives me the message: "This feature is unavailable. Please integrate the FraudLabs Pro Agent Javascript in your shopping cart."

When I goto the Agent Javascript integration page, I see these instructions: https://www.fraudlabspro.com/developer/javascript

I was thinking to try and add the code to “includes/templates/default.catalog/layouts/checkout.php", but then it mentions:
"If you were using the ready made module in an e-commerce platform, such as Magento, please visit the respective module page for the Agent Javascript installation instructions."

Has anyone done this?

2. Credit Card Validation
The extension doesn't seem to support the credit card validation (eg. BIN Found:  BIN Country Match:  Prepaid Card:) with the Stripe module.  My guess is that with the new Stripe module, that things are more secure and there is no way for the Fraudlabspro to see the credit card information. Is this right?  Or can the credit card number somehow be passed to the extension?

LiteCart Fan
From Malaysia
Member since mar. 2015

You will need to manually add the Javascript into your existing template in order to work in LiteCart.

LiteCart Fan
From Australia
Member since dec. 2018

Thanks. Into this template? includes/templates/default.catalog/layouts/checkout.php

LiteCart Fan
From Malaysia
Member since mar. 2015

Yes.

LiteCart Fan
From Australia
Member since dec. 2018

Thanks. I added the javascript code to the bottom of the checkout.php page before the </body> but it doesn't work. I still get the message "This feature is unavailable. Please integrate the FraudLabs Pro Agent Javascript in your shopping cart."

When I view the source of the checkout page, I can see code is there:
<script>
(function(){
function s() {
var e = document.createElement('script');
e.type = 'text/javascript';
e.async = true;
e.src = ('https:' === document.location.protocol ? 'https://' : 'http://') + 'cdn.fraudlabspro.com/s.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(e, s);
}  
(window.attachEvent) ? window.attachEvent('onload', s) : window.addEventListener('load', s, false);
})();
</script>
</body>
</html>

Any ideas?

LiteCart Fan
From Malaysia
Member since mar. 2015

It might be blocked by your adblock extension or settings.

Please contact us directly with your website at support[at]fraudlabspro.com.

You
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.