Fatal error: Call to a member function call_api() on a non-object

Subject: Fatal error: Call to a member function call_api() on a non-object in /public_html/shopping/checkout_process.php on line 102

———————————————————————

Module Name: buySAFE module for osCommerce

Module:Features

Download Module From this Link….

http://www.oscommerce.com/community/contributions,5113/category,all/search,buySAFE
———————————————————————

buySAFE module for osCommerce

This is the first buySAFE module for osCommerce, created to incorporate the buySAFE Trust and Bonding solution to your osCommerce store. This allows merchants using osCommerce to display both the buySAFE Trust Seal and offer their customers the buySAFE Bond Guarantee in their shopping cart. Online merchants are using buySAFE to increase website conversion rates, average order sizes and repeat buyer rates.

Note: In order to use this module, you must first be certified as a buySAFE Merchant. The buySAFE service is free for merchants. To become a buySAFE Merchant, go to www.buysafe.com and Apply Now.

The support thread for the contribution can be found here:

http://forums.oscommerce.com/index.php?showtopic=261464

———————————————————————

Important Link:

http://svn.oscommerce.com/jira/browse/OSC-386
http://forums.oscommerce.com/index.php?showtopic=285661
http://www.oscommerce.com/community/contributions,5113/category,all/search,buySAFE
http://forums.oscommerce.com/index.php?showtopic=261464
———————————————————————

As on Site:

http://www.tailgatersobx.com/shopping/checkout_process.php

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

———————————————————————

Reason:

Reason Find is Module is not installed Proper…
———————————————————————

Solution:1

As per:

http://forums.oscommerce.com/index.php?showtopic=285661
Find this code in checkout_process.php

CODE

// {{ 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’ => getenv(‘REMOTE_ADDR’),

‘buysafe_session_id’ => tep_session_id());

tep_db_perform(TABLE_ORDERS, $update_data_array, ‘update’, “orders_id = ‘” . (int)$insert_id . “‘”);

}

// }}

 

And comment it out like this (by wrapping the code with /* and */:

// {{ 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’ => getenv(‘REMOTE_ADDR’),

‘buysafe_session_id’ => tep_session_id());

tep_db_perform(TABLE_ORDERS, $update_data_array, ‘update’, “orders_id = ‘” . (int)$insert_id . “‘”);

}

*/// }}

———————————————————————

Solution:2

Download Module From this Link….

http://www.oscommerce.com/community/contributions,5113/category,all/search,buySAFE

Incomplete contribution Installed

———————————————————————

For download this contribution and document refer:

http://www.oscprofessionals.com/demo/oscpayment/document/features/buySAFE_OSC_0.9.zip

——————————————————————-