X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   MaxMind Fraud Detection - help with 20 FREE queries per day (https://forum.x-cart.com/showthread.php?t=10093)

Zaja 10-29-2004 10:40 AM

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.

Lingerieblowout 02-22-2005 07:57 PM

Need to add to MaxMind Mod
 
What a great free Fraud Mod. I only have two comments.

You need to add:

(1)
<option value="US"> United States

(2)
<td valign="top">IP Address</td>
<td><input name="i" type="text" value="{$order.extra.ip}"></td>

Change the above if you called your IP a different name. Using CartLab free IP mod. Then you would change this code to:

<td valign="top">IP Address</td>
<td><input name="i" type="text" value="{$order.ip}"></td>

Michael

bluecat 07-24-2005 06:00 AM

Just stumbled on this; wow, thank you very much! Works perfect in 4.0.14

bluecat 09-19-2005 03:35 AM

Just curious if anyone knows if this is checking automatically? Reason, everytime we try to use it now, it tells us "Query limit reached" on any order we check now. :(

Zaja 09-19-2005 03:46 AM

Do you have MaxMind Free Trial account?

http://www.maxmind.com/app/ccv2r_signup

Lingerieblowout 09-19-2005 04:48 AM

I also got the limit reached. This is nothing automatic about it. I hust signed up for the free trial, but I think I will have to reformat this Mod to work.

Zaja 09-19-2005 04:54 AM

20 FREE queries per IP address per day is changed to 1,000 query limit.

Lingerieblowout 09-19-2005 05:04 AM

All three dedicated IPs stop working on the same day. I think there is a little more then 20 per IP address. I think what you might of meant is 20 a day from the IP address from the physical PC that is being used.

It's still early here so forgive my brain.

How do I incorporate the trial with the keys that I have to post the same info ?

Zaja 09-19-2005 05:16 AM

Do you have any trial keys?
You can include hidden input with your keys:
Code:

<input name="license_key" type="hidden" value="your_trial_key_code" />

Lingerieblowout 09-19-2005 05:25 AM

Thanks ....

I will work on that tonight and post the changes !


All times are GMT -8. The time now is 11:32 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.