Reply
Highlighted
Expert
Posts: 4,525
Registered: ‎03-08-2010

Re: need help to add in a php code for my osCommerce

FYI, I'm not a php developer.

But looking at the code.

'x_type' => ((MODULE_PAYMENT_AUTHORIZENET_CC_AIM_TRANSACTION_METHOD == 'Capture') ? 'AUTH_CAPTURE' : 'AUTH_ONLY'),

 It set the x_type to AUTH_CAPTURE if MODULE_PAYMENT_AUTHORIZENET_CC_AIM_TRANSACTION_METHOD is 'Capture'

So I guess would be change that text and in the array(last line)

tep_db_query("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('Transaction Method', 'MODULE_PAYMENT_AUTHORIZENET_CC_AIM_TRANSACTION_METHOD', 'Authorization', 'The processing method to use for each transaction.', '6', '0', 'tep_cfg_select_option(array(\'Authorization\', \'Capture\'), ', now())");

 Or just leave it as it, knowing the 'Capture' mean AUTH_CAPTURE.

Highlighted
Contributor
Posts: 16
Registered: ‎11-11-2011

Re: need help to add in a php code for my osCommerce

ok but i am having real problems maybe authorize.net should get rid of oscommerce