shopping cart templates, oscommerce templates, cre loaded 
templates, zencart templates, magento templates

Ecommerce Products KnowledgeBase

shopping cart templates, oscommerce templates, cre loaded 
templates, zencart templates, magento templates

Installation Procedure for AlgoZone Fraud Screen

Print | Bookmark
Bookmark and Share
AlgoZone Fraud Screen v1.0

 

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

Back up your existing osCommerce files.
This conribution has been tested on osCommerce MS2.
Use this contribution at your own risk.

Step 2

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:

Step 3

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/includes/modules/afs_v1.0/AlgoFraudScreenClient.php
admin/includes/modules/afs_v1.0/map.php

admin/images/afs.gif

You are done.

If you have a modified installation of osCommerce ms2.2:

Step 3

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/includes/modules/afs_v1.0/AlgoFraudScreenClient.php
admin/includes/modules/afs_v1.0/map.php

admin/images/afs.gif

Step 4

Edit catalog/checkout_process.php:

Look for the Following:

// load the after_process function from the payment modules
$payment_modules->after_process();

Add these after the above line:

// AFSv1.0 - record the customers order and ip address info for fraud screening process

$ip = $REMOTE_ADDR;
$proxy = $HTTP_X_FORWARDED_FOR;
if($proxy != ''){ $ip = $proxy; }
$sql_data_array = array( 'order_id' => $insert_id,
'ip_address' => $ip);

tep_db_perform('algozone_fraud_queries', $sql_data_array);

// End AFSv1.0

Step 5

Edit catalog/admin/orders.php:

Look for the following:

<tr>
     <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>

Add after:

<?php
  require(DIR_WS_MODULES . 'afs_v1.0/algo_fraud_screener.php');
?>

You are done.


Was this article helpful?

Yes No
Bookmark and Share

Category: OSCOMMERCE

6492 views