jortiz565 Posted May 12, 2015 Share Posted May 12, 2015 Hello, I want to know if is possible to skip Maxmind fraud check for orders that have been made with Paypal? Sometime MaxMind mark these orders as fraud. Regards, jortiz 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 12, 2015 Share Posted May 12, 2015 this hook action will help you do what you need http://docs.whmcs.com/Hooks:RunFraudCheck 0 Quote Link to comment Share on other sites More sharing options...
jortiz565 Posted May 13, 2015 Author Share Posted May 13, 2015 Anyone can provide an example to skip Paypal in the maxmind verification? - - - Updated - - - sentq thanks for your quick reply. Can you provide an example to skip Paypal in the maxmind verification? 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted May 13, 2015 Share Posted May 13, 2015 create new file inside /includes/hooks/ folder, name it skipfraudpaypal.php or something else, add the following code to it: <?php function hook_skipfraudpaypal($vars){ $getOrderInfo = full_query("SELECT * FROM `tblorders` WHERE `id`='{$vars['orderid']}'"); $getOrderInfo = mysql_fetch_assoc($getOrderInfo); if ($getOrderInfo['paymentmethod']=="paypal"){ return true; } } add_hook("RunFraudCheck", 1, "hook_skipfraudpaypal"); ?> it's very simple 0 Quote Link to comment Share on other sites More sharing options...
panacheweb Posted May 13, 2015 Share Posted May 13, 2015 why would you want to skip a fraud check? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.