Contributions

Payment Modules (Category Index)
Search: 

Beanstream Module

** Credit should be given when credit is due... Thank you to all previous contributors **

None of the current beanstream contributions were working for me so I had to fix it so that it would.

I changed some code in the bean_webobject.php file so that it now uses application_top.php instead of the files that were previously there. This has solved all kinds of problems for me and it should for you too.

I also translated it into french. Should you want to change any text, check out the respective language files.

THIS IS A COMPLETE PACKAGE

Expand All / Collapse All

Small fix to Order Status Update 7 Oct 2009

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.

Beanstream module with session fix 5 Jul 2009
Beanstream Module w/ CVV integration + bugfixes 6 May 2009
Beanstream - CVV Integration 4 May 2008
Register_Globals OFF 7 Jan 2008
For TEST mode 22 Aug 2007
Beanstream Module 22 Aug 2007

Note: Contributions are used at own risk.