Back up your existing osCommerce files.
Install the new AlgoZone Fraud Screen tables by running afs_v1.0.sql in mysql.
If you have an original installation of osCommerce ms2.2, copy the contents of the for_original_osc2.2ms2 directory to your install directory.
This will install the following files to your existing osCommerce admin directories:
checkout_process.php
admin/orders.php
admin/includes/languages/english/algo_fraud_screener.php
admin/includes/modules/afs_v1.0/algo_fraud_screener.php
admin/images/afs.gif
If you have a modified installation of osCommerce ms2.2, copy the contents of the for_modified_osc2.2ms2 directory to your install directory.
This will install the following new files to your existing osCommerce admin directories:
admin/includes/languages/english/algo_fraud_screener.php
admin/includes/modules/afs_v1.0/algo_fraud_screener.php
admin/images/afs.gif
Edit catalog/checkout_process.php:
Look for the Following:
// load the after_process function from the payment modules
// AFSv1.0 - record the customers order and ip address info for fraud screening process
$ip = $REMOTE_ADDR;
tep_db_perform('algozone_fraud_queries', $sql_data_array);
// End AFSv1.0
Edit catalog/admin/orders.php:
Look for the following:
<tr>
<?php
You are done.
Overview
Credit card fraud is a growing problem for online merchants. As the merchant, you are liable for fraudulent credit card transactions, as well as chargeback fees. Excessive chargebacks can lead to losing your merchant account and being unable to open another one.
License
This code is licensed to you under the terms of the GNU Public License(GPL).
Installation
Step 1
This conribution has been tested on osCommerce MS2.
Use this contribution at your own risk.
Step 2
If you have an original installation of osCommerce ms2.2:
Step 3
admin/includes/modules/afs_v1.0/AlgoFraudScreenClient.php
admin/includes/modules/afs_v1.0/map.php
If you have a modified installation of osCommerce ms2.2:
Step 3
admin/includes/modules/afs_v1.0/AlgoFraudScreenClient.php
admin/includes/modules/afs_v1.0/map.php
Step 4
$payment_modules->after_process();
$proxy = $HTTP_X_FORWARDED_FOR;
if($proxy != ''){ $ip = $proxy; }
$sql_data_array = array( 'order_id' => $insert_id,
'ip_address' => $ip);
Step 5
<td class="main"<>?php echo ENTRY_CREDIT_CARD_NUMBER; ?></td>
<td class="main"><?php echo $order->info['cc_number']; ?></td>
</tr>
<tr>
<td class="main"><?php echo ENTRY_CREDIT_CARD_EXPIRES; ?></td>
<td class="main"><?php echo $order->info['cc_expires']; ?></td>
</tr>
<?php
}
?>
</table>
require(DIR_WS_MODULES . 'afs_v1.0/algo_fraud_screener.php');
?>