Implement Fraud Detection Feature with Free API

Language
Fight fraud has never been an easy task. You may feel lucky of not being defrauded yet, but it never mean you will not encounter one in future. As long as you are in web business, regardless of whether you are a merchant or developer, precaution shall be necessarily to protect you from victimized by fraudster. Long story short, let’s dive into coding on how you can get yourself or perhaps your clients protected from fraudster. First of all, get yourself a free fraud detection API key from http://www.fraudlabspro.com. Secondly, download the source code. There are 3 files inside the source code zip, namely, FraudLabsPro.class.php (fraud detection class object), example.php (example of the usage) and readme.txt (some information). Before you run the example.php, make sure you add your license key into the code at line 13 (You should notice a API_KEY tag). You may now play around with example.php file. This example code provide you a basic example of how to detect a fraudulence case for a credit card payment with the billing and shipping information. The API is more versatile and powerful than that. For instance, in addition to credit card, you may use it to validate a Paypal payment by verifying the match of billing and shipping address, possible ship forwarded address and high risk country. The input elements are optional. The return of fraud score and status will be depended on the input parameters. You may free feel try out the output of the combinations. Lastly, this sample code didn’t provide you the insight of the FraudLabs Pro merchant custom rules. That’s another advance tools for you to customize the validations rules and the validation sequences. You may find out more at http://www.fraudlabspro.com Happy coding!

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Add new comment