View Single Post
  #1  
Old 10-29-2004, 10:40 AM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default MaxMind Fraud Detection - help with 20 FREE queries per day

Simple and dirty hack for easily use MaxMind 20 FREE queries per IP address per day.
////////////////////////////////////

Save this code as /xcart/skin/maxmind.tpl:

Code:
<form method="post" action="https://www.maxmind.com/app/ccv2r_html" target="_blank"> <table cellpadding="5" cellspacing="0" style="background-color:#ECE9D8; border:1px solid #CAC393"> <tr> <td colspan="2" bgcolor=#D8D2AF>MaxMind Credit Card Fraud Detection</td> </tr> <tr> <td valign="top">IP Address</td> <td><input name="i" type="text" value="{$order.extra.ip}"></td> </tr> <tr> <td valign="top">Domain of E-mail address</td> <td><input name="domain" type="text" value="{$customer.email}"></td> </tr> <tr> <td valign="top">Credit Card Billing City</td> <td><input name="city" type="text" value="{$customer.s_city}"></td> </tr> <tr> <td valign="top">Credit Card Billing Region</td> <td><input name="region" type="text" value="{$customer.s_statename}"></td> </tr> <tr> <td valign="top">Credit Card Billing Postal Code</td> <td><input name="postal" type="text" value="{$customer.s_zipcode}"></td> </tr> <tr> <td valign="top">Select Credit Card Billing Country</td> <td><input name="country" type="text" value="{$customer.s_country}"></td> </tr> <tr> <td valign="top">Customer Phone</td> <td><input name="custPhone" type="text" value="{$customer.phone}" maxlength="255"></td> </tr> <tr> <td colspan="2"><input value="Test via MaxMind" type="submit"></td> </tr> </table> </form> <HR>

Open /xcart/skin/main/order_info.tpl and place this code at the end of the file:

Code:
{if $usertype ne "C"} {include file="maxmind.tpl"} {/if}

Thats all..

Go to Admin Panel >> Orders >> Order details.....and press "Test via MaxMind" button.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote