Community Add-Ons
| Maintainers: | Vger |
Authorize Net AIM module (GPL)
for osCommerce Online Merchant v2.2
This is a new module for the Authorize Net AIM (Advanced Integration Method) service. The support thread for it is located here:
http://forums.oscommerce.com/index.php?showtopic=199381
Vger
Sorry, I think I missed a file. Here u go!
Sorry, I think I missed a file in the last upload, pls try this.
DID NOT use Umartoru’s file/module!!
Reason:
1.) Not sure what’s “viger module”
2.) I don’t need the flag function
3.) I have added code on my orders.php, so I can’t use his and I don’t have time to incorporate his module
Description:
This is a complete package started with qurumsd’s package and added ikishk’s patch. I tried to add jasonabc & qwkfsbo’s patch, but the documentation isn’t…. their functions don’t seem to be working.
Therefore, this is qurumsd’s version + the popup fixed.
What’s new?
I fixed the Test server URL & omitted qurumsad’s install instructions (to make the pop up work) to make it easier for others to install.
Need to know:
I have attached qurumsd’s modified version and a tip page that I’ve created regarding error messages:
a.) “(TESTMODE) The merchant login ID or password is invalid or the account is inactive…”
b.) “(TESTMODE) This account has not been given the permission(s) required for this request…”
these files implement prior_auth_capture funcationality in admin means that when status is updated to shipped it capture the transaction. but you need to install the viger module first. and also flag suspicious transactions. like if they are above $50 and are shipped outside usa.
When the transaction is declined the error is displayed on the address bar. So this is a minor fix to show the customer what a message if the card is declined.
<?php $ccnotif = $_GET["error_message"]; ?>
<div style="color:#FF0000; font-weight:bold; font-style:italic "> <?php echo $ccnotif; ?></div>
Popups dont seem to work properly with STS installed. heres a quick hack to get them to work.
includes/languages/english/modules/payment/authorizenet_aim.php:
//define('MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_CVV', 'CVV Number <a href="javascript:newwindow()"><u>More Info</u></a>');
define('MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_CVV', 'CVV Number <a onClick="javascript:window.open('/catalog/cvv_help.php','jav','width=500,height=550,resizable=no,toolbar=no,menubar=no,status=no');"><u>More Info</u></a>');
checkout_payment.php:
remove the newwindow JS.
cvv_help.php:
comment out all the lines, add one line:
require('catalog/includes/languages/english/cvv_help.php');
The AIM module sends full credit card numbers in unencrypted, plain-text format straight into the ORDERS database table.
This very quick edit replaces the middle digits with XXXX's before it is inserted into the database.
This is a patch, NOT the full package.
This fix ensures that the order totals are calculated before sending them to the authorize module. Previously, the total was being sent to the authorize module before additional charges were added (such as taxes or handling fees). This caused the total to show up correctly in the database, but the wrong amount sent to authorize.
This is a FULL INSTALL, but the fix is outlined below as well:
In catalog/checkout_process.php (line 49):
CUT OUT the two lines
---------------------------
// load the before_process function from the payment modules
$payment_modules->before_process();
-------------------------------
and paste them BELOW (line 55)
--------------------------------
$order_totals = $order_total_modules->process();
---------------------------------
so it should look like:
---------------------------
require(DIR_WS_CLASSES . 'order_total.php');
$order_total_modules = new order_total;
$order_totals = $order_total_modules->process();
// load the before_process function from the payment modules
$payment_modules->before_process();
-----------------------------
I added the ability to easily define a CURL Proxy if necessary. I found this to be true with my provider, when this module kept hanging without returning any errors.
I updated all files and the installation instructionsas well.
Updated the Install file, and made text changes to one file, and modified the 'test' url within the module in light of users experiences. Full file set.
I have updated the Install file with some extra information which you should find useful. Full file set.
Vger
This is a new module for the Authorize Net AIM (Advanced Integration Method) service. The support thread for it is located here:
http://forums.oscommerce.com/index.php?showtopic=199381
Vger
