Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Authorize.Net SIM - checkout problem


meierli

Recommended Posts

When I confirm my test order I get the following error message:

 

Fatal error: Call to a member function call_api() on a non-object in /home/beautif2/public_html/checkout_process.php on line 127

 

Line 127 of the file looks like this:

 

// {{ buySAFE Module

$buysafe_cart_id = MODULE_BUYSAFE_BUYSAFE_CART_PREFIX . '-' . tep_session_id() . (tep_count_customer_orders()-1);

$checkout_params = array('WantsBond' => ($WantsBond ? $WantsBond : 'false'), 'orders_id' => $insert_id, 'buysafe_cart_id' => $buysafe_cart_id);

$checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params);

if (is_array($checkout_result) && $checkout_result['IsBuySafeEnabled'] == 'true')

{

$update_data_array = array('buysafe_cart_id' => $buysafe_cart_id,

'buysafe_client_ip' => tep_get_ip_address(),

'buysafe_session_id' => tep_session_id());

tep_db_perform(TABLE_ORDERS, $update_data_array, 'update', "orders_id = '" . (int)$insert_id . "'");

}

// }}

 

Can anybody please tell me or take a look at their coding, what I have to change?

Link to comment
Share on other sites

When I confirm my test order I get the following error message:

 

Fatal error: Call to a member function call_api() on a non-object in /home/beautif2/public_html/checkout_process.php on line 127

 

Line 127 of the file looks like this:

 

// {{ buySAFE Module

$buysafe_cart_id = MODULE_BUYSAFE_BUYSAFE_CART_PREFIX . '-' . tep_session_id() . (tep_count_customer_orders()-1);

$checkout_params = array('WantsBond' => ($WantsBond ? $WantsBond : 'false'), 'orders_id' => $insert_id, 'buysafe_cart_id' => $buysafe_cart_id);

$checkout_result = $buysafe_module->call_api('SetShoppingCartCheckout', $checkout_params);

if (is_array($checkout_result) && $checkout_result['IsBuySafeEnabled'] == 'true')

{

$update_data_array = array('buysafe_cart_id' => $buysafe_cart_id,

'buysafe_client_ip' => tep_get_ip_address(),

'buysafe_session_id' => tep_session_id());

tep_db_perform(TABLE_ORDERS, $update_data_array, 'update', "orders_id = '" . (int)$insert_id . "'");

}

// }}

 

Can anybody please tell me or take a look at their coding, what I have to change?

This post should be here http://www.oscommerce.com/forums/index.php?showtopic=261464

Link to comment
Share on other sites

Ok, I figured out what the problem might be. I had somebody setup an online store for me. Aparently that person included the buysafe codes in several files but never installed the module on OsCommerce. This is causing some trouble right now. How can this problem be fixed?

 

Thanks for your help.

 

Btw, I am posting in this thread since the other thread seems to be dead.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...