Zen Cart Logo
Forums / All Other Contributions/Addons / Credit Card Fraud Detection (MaxMind)

Credit Card Fraud Detection (MaxMind)

Views: 26,552

Results 61 to 80 of 102
27 Mar 2010, 3:57 PM
#61
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Credit Card Fraud Detection (MaxMind)

ok looks like we may have a problem here now after step 3 it loads a blank screen and doesn't actually send the payment for processing. I have the module installed but still waiting for the confirmation email could this be the problem? or is it the cc.php that is causing this problem??

28 Mar 2010, 3:38 AM
#62
xbox_memberships avatar

xbox_memberships

Zen Follower

Join Date:
Jan 2010
Posts:
157
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

please mate check your pm need this adaption doing but also i have a problem with the actual install. getting a blank page after step 3 of checkout and no payment info is actually reaching the payment gateway!!! :(

30 Mar 2010, 12:24 PM
#63
barrow_matt avatar

barrow_matt

New Zenner

Join Date:
Feb 2010
Posts:
18
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

I have just installed this module and when I first tried it the order confirmation would take me immediately back to the home page.

I restored the original order.php leaving the header_php.php file modified and it is working fine.

What I would like to know is the reasoning behind the following code, the order.php mod:

//MaxMind Start
    $_SERVER['REMOTE_ADDR'] = $server_remote_addr;
    if (zen_not_null($server_remote_addr)) { $server_remote_address = ' - ' . $server_remote_addr; }
    //MaxMind End

$server_remote_addr is never defined therefore a null value seemingly overwrites the server variable $_SERVER['REMOTE_ADDR'] which seems to be the cause of the checkout not completing successfully.

Could someone please confirm/explain this section of code?

Thanks.

22 May 2010, 10:25 AM
#64
roryg1 avatar

roryg1

New Zenner

Join Date:
Nov 2007
Posts:
34
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

I am using Authorize.net for credit card processing. How do I use bin look-up with this module?

22 May 2010, 7:49 PM
#65
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

barrow_matt:

I have just installed this module and when I first tried it the order confirmation would take me immediately back to the home page.

I restored the original order.php leaving the header_php.php file modified and it is working fine.

What I would like to know is the reasoning behind the following code, the order.php mod:

//MaxMind Start
$_SERVER['REMOTE_ADDR'] = $server_remote_addr;
if (zen_not_null($server_remote_addr)) { $server_remote_address = ' - ' . $server_remote_addr; }
//MaxMind End

> 
> $server_remote_addr is never defined therefore a null value seemingly overwrites the server variable $_SERVER['REMOTE_ADDR'] which seems to be the cause of the checkout not completing successfully.
> 
> Could someone please confirm/explain this section of code?
> 
> Thanks.

This code splits the ip addresses stored in the database so we can do something with it later. By default it records the users ip and I believe the forwarded-by ip but it does not use any kind of separator.
22 May 2010, 7:50 PM
#66
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

roryg1:

I am using Authorize.net for credit card processing. How do I use bin look-up with this module?

You can use the included credit card module to understand what needs to be captured and integrate that into an Authorize.net module. PM me if you need it to happen and can't code it on your own.

8 Mar 2011, 10:01 AM
#67
adem_i avatar

adem_i

New Zenner

Join Date:
Jul 2010
Location:
Sydney, Australia
Posts:
86
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

Hi, hear about Maxmind from a friend and looking forward to purchasing once I get it working. Just have a few questions;

Is the download for Maxmind in the free add on section, the same as the 'minFraud' you have advertised on your site?

I'd like to allow my customers to have the option of sending me money via bank transfer and paypal. Is it possible to use Maxmind with these bank transfers? Is this what Authorise.net is used for?

I was confused as to what kind of payments maxmind tracks when installed following the readme file - whether its accepting credit card information before entering those details in our own merchant account, bank transfers or paypal transactions.

With Zen Magic only one file needs to be replaced IF you want credit card orders to auto-process when the order is placed:
Are they processed through Maxmind and what exactly do you mean by auto-process? In comparison to what? how is the money delivered from consumer's card to my account once maxmind allows the transaction?

If you want to use the credit card issuer (BIN) name and phone number fraud scoring, or if you use the default credit card module and do not store credit card numbers on the server (you e-mail the middle numbers), you will need to replace:
What system would we need to enable on Zen Cart to accept Credit Cards through the site? How are the payments handled? Are there instructions anywhere to incorporate SSL Certificates into these sections of the site?

I followed the read me below "all other files are added and used with Zen Magic;"
I received the following error when I navigated to Modules > Payment.

ERROR: module not loaded due to missing language file:
/includes/languages/english/modules/payment/cc.php

[IMG]http://img52.imageshack.us/img52/1773/maxminderrorupdate.jpg[/IMG]

but the cc.php file in the readme says to paste it into '/includes/modules/payment/cc.php'?

9 Mar 2011, 10:33 AM
#68
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

adem.i:

Hi, hear about Maxmind from a friend and looking forward to purchasing once I get it working. Just have a few questions;
Is the download for Maxmind in the free add on section, the same as the 'minFraud' you have advertised on your site?
I'd like to allow my customers to have the option of sending me money via bank transfer and paypal. Is it possible to use Maxmind with these bank transfers? Is this what Authorise.net is used for?
I was confused as to what kind of payments maxmind tracks when installed following the readme file - whether its accepting credit card information before entering those details in our own merchant account, bank transfers or paypal transactions.
Are they processed through Maxmind and what exactly do you mean by auto-process? In comparison to what? how is the money delivered from consumer's card to my account once maxmind allows the transaction?
What system would we need to enable on Zen Cart to accept Credit Cards through the site? How are the payments handled? Are there instructions anywhere to incorporate SSL Certificates into these sections of the site?
I followed the read me below "all other files are added and used with Zen Magic;"
I received the following error when I navigated to Modules > Payment.
ERROR: module not loaded due to missing language file:
/includes/languages/english/modules/payment/cc.php
[IMG]http://img52.imageshack.us/img52/1773/maxminderrorupdate.jpg[/IMG]
but the cc.php file in the readme says to paste it into '/includes/modules/payment/cc.php'?

The MaxMind addon is a free ZenCart module, it is not supported by MaxMind.
The addon accesses the minfraud service.
You can use the addon with any payment module. Using the credit card payment module included allows the most functionality by checking the number hash, bin name, and bin phone. The cc payment module is also a starting point to port the functionality to a different payment module, such as authorize.net.
The addon in no way processes actual payments, it simply takes the details provided by the payment module and checks against the minfraud service.
I will have to update the addon with the full credit card module for 1.3.9h, ZenCart has removed the functionality. For a quick fix you could download an older version of 1.3 and grab a copy of the cc.php language file that is missing.

27 Mar 2012, 7:11 PM
#69
robophung avatar

robophung

New Zenner

Join Date:
Jan 2011
Posts:
66
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

Hi Ses707,

I have several questions. You stated that this addon module can be used with any payment module?? We recently just activated PayPal website payments pro, so that our website directly accepts credit card input from customers but PayPal does the backend cc processing and crediting our account with funds. I tried to install this addon module as a method of fraud filtering because I find PayPal's builtin fraud filters very lacking.

So basically, is it as simple as installing this module, patching my sql database and then I'm good to go? Or do I need to get into the php code of the PayPaldb.php module and code it to integrate with the minfraud module? Because that is far beyond my capabilities, and we would need to look into getting some outside professional help for that.

Currently, attempting to install this module, results in an internal server error when proceeding to check out from our shopping cart. I'm pretty certain the issue is from includes/classes/order.php because we also installed Fast and Easy checkout, which uses a heavily modified order.php file. I know that your order.php file has 4 key differences from the original vanilla version of order.php and I used winmerge to merge the code into the Fast and Easy checkout version of order.php, but I'm assuming, because the code in FEC's order.php is so different, that there are just incompatibilities even when properly merged...

I think I will consider removing the Fast and easy checkout module in favor of using minfraud, but I wanted to make sure that it's fully compatible with PayPal website payments pro module without any manual php coding... thanks in advance.

28 Mar 2012, 6:57 AM
#70
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

RoboPhung:

Hi Ses707,

I have several questions. You stated that this addon module can be used with any payment module?? We recently just activated PayPal website payments pro, so that our website directly accepts credit card input from customers but PayPal does the backend cc processing and crediting our account with funds. I tried to install this addon module as a method of fraud filtering because I find PayPal's builtin fraud filters very lacking.

So basically, is it as simple as installing this module, patching my sql database and then I'm good to go? Or do I need to get into the php code of the PayPaldb.php module and code it to integrate with the minfraud module? Because that is far beyond my capabilities, and we would need to look into getting some outside professional help for that.

Currently, attempting to install this module, results in an internal server error when proceeding to check out from our shopping cart. I'm pretty certain the issue is from includes/classes/order.php because we also installed Fast and Easy checkout, which uses a heavily modified order.php file. I know that your order.php file has 4 key differences from the original vanilla version of order.php and I used winmerge to merge the code into the Fast and Easy checkout version of order.php, but I'm assuming, because the code in FEC's order.php is so different, that there are just incompatibilities even when properly merged...

I think I will consider removing the Fast and easy checkout module in favor of using minfraud, but I wanted to make sure that it's fully compatible with PayPal website payments pro module without any manual php coding... thanks in advance.

The module can be used with any payment module, the included credit card module does two additional checks against the credit card name and telephone number entered by the customer at checkout (neither of which will drastically increase or decrease the fraud score). I have not re-written the paypal payment module for direct payments to request those from the customer, if you wanted those you would need to custom code them in, but are not required to get a very good fraud score profile.
I do not know the F&E addon you are talking about, you should still be able to integrate the fraud module inserting the code where necessary. What is the exact error you are receiving?

28 Mar 2012, 7:47 AM
#71
robophung avatar

robophung

New Zenner

Join Date:
Jan 2011
Posts:
66
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

Here is the error message, it's just a generic "catch-all" 500 error.

"HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request."

I will contact my host to get more details on the error.

The Fast and Easy Checkout module that I'm referring to is this: https://www.numinix.com/fast-and-easy-checkout-for-zen-cart?zenid=d07b6b1f785d43402ccd4714de3a168d

And finally, here is a copy of the order.php modified core with the maxmind code merged in. As you can see, I've tried both lines of code where it submits 6 vs 4 digits to maxmind (by commenting one of them out) and either way results in the internal 500 error. http://www.robophung.net/zencart/order.php.bak

And you can also see, that the order.php is drastically different than the original order.php for zc 1.3.9h... but I think I merged your code into the appropriate spots.

Thanks for responding, and I hope u can steer me in the right direction...

28 Mar 2012, 8:50 AM
#72
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

RoboPhung:

Here is the error message, it's just a generic "catch-all" 500 error.

"HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request."

I will contact my host to get more details on the error.

The Fast and Easy Checkout module that I'm referring to is this: https://www.numinix.com/fast-and-easy-checkout-for-zen-cart?zenid=d07b6b1f785d43402ccd4714de3a168d

And finally, here is a copy of the order.php modified core with the maxmind code merged in. As you can see, I've tried both lines of code where it submits 6 vs 4 digits to maxmind (by commenting one of them out) and either way results in the internal 500 error. http://www.robophung.net/zencart/order.php.bak

And you can also see, that the order.php is drastically different than the original order.php for zc 1.3.9h... but I think I merged your code into the appropriate spots.

Thanks for responding, and I hope u can steer me in the right direction...
500 doesn't help :(
Try running the defaultZC order.php, then try the MaxMind order.php ... does either one allow checkout? What made you point your finger at that file? The changes to that page are very minor.

28 Mar 2012, 8:57 AM
#73
robophung avatar

robophung

New Zenner

Join Date:
Jan 2011
Posts:
66
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

So like a previous poster said, using the original order.php does not seem to affect the function of this module in any way. I decided to use the original order.php and now this mod seems to be working great!

My understanding of code is pretty limited, but like the other poster mentioned, I am not sure why this code is necessary?

$_SERVER['REMOTE_ADDR'] = $server_remote_addr;
if (zen_not_null($server_remote_addr)) { $server_remote_address = ' - ' . $server_remote_addr; }

....

'ip_address' => $_SESSION['customers_ip_address'] . $server_remote_address

This conditional statement and reassignment of the 'ip_address' field in the array appears to lead to the same outcome as the original unmodified order.php. The only thing I can see these lines of code adding is to make sure that $_SERVER['REMOTE_ADDR'] does not return a null value before assigning it to the $server_remote_address variable...

Also, after sitting down and looking at this code and trying to understand it, it actually seems like there really is no reason why a simple extra conditional check would cause an internal server issue...

The only thing I can think of (and I think also seems to make sense given the structure of the conditional statement) is that the code should actually read like...

$server_remote_addr = $_SERVER['REMOTE_ADDR'];
if (zen_not_null($server_remote_addr)) { $server_remote_address = ' - ' . $server_remote_addr; }

Because isn't $server_remote_addr an undefined value that you are assigning the customer's IP by calling the $_SERVER['REMOTE_ADDR'] function?? And then using the newly defined $server_remote_addr in the conditional statement?

It doesn't seem to make sense to have it as... $_SERVER['REMOTE_ADDR'] = $server_remote_addr;

Because $_SERVER['REMOTE_ADDR'] isn't a variable, it's a function call, and having the code this way leaves $server_remote_addr with a null value...

Sorry, my understanding of php is limited, but this is how I see it... any clarification you can offer would be immensely helpful, thanks SES!!!

28 Mar 2012, 9:24 AM
#74
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

RoboPhung:

So like a previous poster said, using the original order.php does not seem to affect the function of this module in any way. I decided to use the original order.php and now this mod seems to be working great!

My understanding of code is pretty limited, but like the other poster mentioned, I am not sure why this code is necessary?

$_SERVER['REMOTE_ADDR'] = $server_remote_addr;
if (zen_not_null($server_remote_addr)) { $server_remote_address = ' - ' . $server_remote_addr; }

....

'ip_address' => $_SESSION['customers_ip_address'] . $server_remote_address

This conditional statement and reassignment of the 'ip_address' field in the array appears to lead to the same outcome as the original unmodified order.php. The only thing I can see these lines of code adding is to make sure that $_SERVER['REMOTE_ADDR'] does not return a null value before assigning it to the $server_remote_address variable...

Also, after sitting down and looking at this code and trying to understand it, it actually seems like there really is no reason why a simple extra conditional check would cause an internal server issue...

The only thing I can think of (and I think also seems to make sense given the structure of the conditional statement) is that the code should actually read like...

$server_remote_addr = $_SERVER['REMOTE_ADDR'];
if (zen_not_null($server_remote_addr)) { $server_remote_address = ' - ' . $server_remote_addr; }

Because isn't $server_remote_addr an undefined value that you are assigning the customer's IP by calling the $_SERVER['REMOTE_ADDR'] function?? And then using the newly defined $server_remote_addr in the conditional statement?

It doesn't seem to make sense to have it as... $_SERVER['REMOTE_ADDR'] = $server_remote_addr;

Because $_SERVER['REMOTE_ADDR'] isn't a variable, it's a function call, and having the code this way leaves $server_remote_addr with a null value...

Sorry, my understanding of php is limited, but this is how I see it... any clarification you can offer would be immensely helpful, thanks SES!!!

You are correct that it is written backwards, however if a variable equals a variable, then it's equal, PHP is smart! That was written to deal with an issue where Ajay modified the IP address field and it was returning an x-forwarded ip, so if a customer went to paypal then returned to complete the transaction it was recording paypals ip and not the customers. I'm not in front of a development workstation to go over in detail the changes and why it was written the way that it is. That code was developed more than five years ago! I'll be getting it ready for a 1.5 update shortly and I'll re-visit the order.php page. I should be able to just write an override to deal with the problem and not be touching core files.

28 Mar 2012, 9:35 AM
#75
robophung avatar

robophung

New Zenner

Join Date:
Jan 2011
Posts:
66
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

Ahh okay! Thanks for the explanation! But I still can't understand why a small conditional statement like that would cause a 500 error...since you are absolutely right and the changes to order.php are very minimal (and apparently not totally necessary to get this module working). But yes, I did revert back to my original order.php (the original modified version included with the Fast and Easy checkout module) and it is completely working... The only last thing I can think of is that I'm on PHP 5.3, and that conditional statement only works with PHP 5.2??

Either way, it works and I'm glad. Thanks again for your help and attention SES, and for this great mod!

28 Mar 2012, 9:38 AM
#76
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

RoboPhung:

Ahh okay! Thanks for the explanation! But I still can't understand why a small conditional statement like that would cause a 500 error...since you are absolutely right and the changes to order.php are very minimal (and apparently not totally necessary to get this module working). But yes, I did revert back to my original order.php (the original modified version included with the Fast and Easy checkout module) and it is completely working... The only last thing I can think of is that I'm on PHP 5.3, and that conditional statement only works with PHP 5.2??

Either way, it works and I'm glad. Thanks again for your help and attention SES, and for this great mod!
Out of curiosity, if you flip ```
$_SERVER['REMOTE_ADDR'] = $server_remote_addr;

28 Mar 2012, 9:57 AM
#77
robophung avatar

robophung

New Zenner

Join Date:
Jan 2011
Posts:
66
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

Already tried that...LOL

Still got the 500. I'll contact my host and have them send me logs of the error to really get to the bottom of it.

28 Mar 2012, 10:08 AM
#78
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

RoboPhung:

Already tried that...LOL

Still got the 500. I'll contact my host and have them send me logs of the error to really get to the bottom of it.

Too weird, perhaps that var is not able to be called? Try this in a blank doc:

<?php echo $_SERVER['REMOTE_ADDR']; ?>

The only other options are:

if (zen_not_null($server_remote_addr)) { $server_remote_address = ' - ' . $server_remote_addr; }

to

if (zen_not_null($server_remote_addr)) { $server_remote_address = ' - ' . $_SERVER['REMOTE_ADDR']; }

or

$server_remote_address = ' - ' . $server_remote_addr;

or

$server_remote_address = ' - ' . $_SERVER['REMOTE_ADDR'];
28 Mar 2012, 10:38 AM
#79
robophung avatar

robophung

New Zenner

Join Date:
Jan 2011
Posts:
66
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

yeah i got my ip displayed from an empty php doc with that line of code, <?php echo $_SERVER['REMOTE_ADDR']; ?>

..yeah I'll try to mess with it some more and get back to you if I find out what's causing the 500.

5 Apr 2012, 8:17 PM
#80
ses707 avatar

ses707

Zen Follower

Join Date:
Dec 2003
Location:
Astoria, Or
Posts:
342
Plugin Contributions:
0

Re: Credit Card Fraud Detection (MaxMind)

RoboPhung:

yeah i got my ip displayed from an empty php doc with that line of code, <?php echo $_SERVER['REMOTE_ADDR']; ?>

..yeah I'll try to mess with it some more and get back to you if I find out what's causing the 500.

Did you ever get a copy of the log report?