Products     Magento Extension     PCI-Shopping-Carts     Templates       CRELoaded     WordPress Modules     osCommerce Modules       osCommerce Addons       osCommerce Features       osCommerce Management       Payment Modules     CRELoaded Modules       CRE Loaded Addons       CRE Loaded Features       CRE Loaded Management       Payment Modules       CRELoaded Services
Free Stuff
Customization
Templates
Compare Products
You have no items to compare.
Affiliate Info
Affiliate Program FAQ
Affiliate Log In
Recent Orders
Hot Keywords: Order Notification, Order Search, Coupon, Flash Board, Compare, Floating Message, Tracking, Moneris, RSS, Visitor Filter

  Beanstream Module

The following osCommerce contribution is a free Opensource code originated from official osCommerce website and provided for your reference only, you may download the original contribution file(s) and install it on your own; or you may request a Paid Installation Service from Agents Of Power; Agents Of Power does the "AS IS" installation on your website, we do not guarantee it will work properly on your website. Extra Paid service is available for repairing the problem from the original contribution or from your website.
Small fix to the order status update. No file attached. Seems I kept getting my order status updated to a value to "4" every time an order was made, depending on your site this may correspond to say "Processing". On a default install of OSC it doesn't correspond to anything.

Anyway, after some work and testing I found the problem lies in beanstream_cdn.php or usd.

Change:
================================

function after_process() {
global $insert_id;
tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . "
(orders_id, orders_status_id, date_added, customer_notified, comments) values ('" .$insert_id . "', '4', now(), '0', 'payment confirmed')");
tep_db_query("update " . TABLE_ORDERS . " set orders_status = 4 where orders_id = ".$insert_id."");

return false;
}


================================
TO THIS:
================================

function after_process() {
global $insert_id;
tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . "
(orders_id, orders_status_id, date_added, customer_notified, comments) values ('" .$insert_id . "', '". (int)MODULE_PAYMENT_BEANSTREAM_CDN_ORDER_STATUS_ID ."', now(), '0', 'payment confirmed')");
tep_db_query("update " . TABLE_ORDERS . " set orders_status = ".(int)MODULE_PAYMENT_BEANSTREAM_CDN_ORDER_STATUS_ID." where orders_id = ".$insert_id."");

return false;
}
================================

Attached is the above note only.
If anyone is having session problem with this Beanstream module where the osCsid differs when returning back from Beanstream, here's the fix for it.

I noticed that there are a bunch of param passing to the Beanstream like approved link, declined link, ref1 - ref 3 etc..which don't seem to be used, but I'm taking ref2 as the original osCsid here.
This is an updated version of the Beanstream module...

I've added the CVV contribution posted by vincentdemers and worked out a couple of bugs.

I've been using it for a while without a problem so it should work for you too.
   Posted on: 05/06/2009     See contribution details Request Installation with Paid service