Dimaer Posted May 19, 2010 Share Posted May 19, 2010 Hi guys,Due to selling virtual goods.There is some risk of fraudlent payments (already experienced one). Is there any module or tool I can use to detect customer's IP when the purchase made?Appreciate your time and help.Thanks. Link to comment Share on other sites More sharing options...
Stаn Posted May 19, 2010 Share Posted May 19, 2010 I haven't seen such Module or Mod so far. If you tell me the exact requirements I could develop one for you. I also need to know what version of PS you have installed. Link to comment Share on other sites More sharing options...
tomerg3 Posted May 19, 2010 Share Posted May 19, 2010 The user's IP address is available everywhere, you don't need a module or to pay anyone to develop it for you. function getVisitorIP(){ $ip = $_SERVER["REMOTE_ADDR"]; $proxy = $_SERVER["HTTP_X_FORWARDED_FOR"]; if(ereg("^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$",$proxy)) $ip = $_SERVER["HTTP_X_FORWARDED_FOR"]; return $ip; } Or the simpler way $ip = $_SERVER["REMOTE_ADDR"]; Link to comment Share on other sites More sharing options...
Dimaer Posted May 19, 2010 Author Share Posted May 19, 2010 Thanks,They are probably nice tips. However I am not sure how I can implment them in order to detect IPs for made purchases.I have noticed some free module on PresoChange with geotool. Can it be useful for this occasion? Link to comment Share on other sites More sharing options...
tomerg3 Posted June 20, 2010 Share Posted June 20, 2010 You can't detect the IP for made purchases unless you save them somewhere when the order is made, you can add the code above in the mail alert module so you will get the IP with every new order notification.You could also save it in the database, but it will require more work. Link to comment Share on other sites More sharing options...
Dimaer Posted June 28, 2010 Author Share Posted June 28, 2010 Thanks for your reply it definitely need more for me before i can implement it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now