asinha Posted January 12, 2005 Share Posted January 12, 2005 Hi all, please help me out to get rid of the hidden field named osCid as my payment gayeway doesn't accept any other hidden fields. below is the ode line. <form name="checkout_confirmation" action="https://au.com.au/" method="post"> <input type="hidden" name="osCsid" value="1ec23f199b8b61e7cf9183324c8ade9d" /> <td class="main"><b>Continue Checkout Procedure</b><br>to confirm this order.</td> <td class="main" align="right"><input type="image" src="templates/Original/images/buttons/english/button_confirm_order.gif?osCsid=1ec23f199b8b61e7cf9183324c8ade9d" border="0" alt="Confirm Order" title=" Confirm Order "></form> Please help me. Amit Link to comment Share on other sites More sharing options...
Guest Posted January 12, 2005 Share Posted January 12, 2005 Edit your module and remove the field... Look in icludes/modules/payment/*yourmodule*.php and find: function process_button() This is the list of paramters that will be passed. Find the osCsid entry and comment it out like this: // tep_draw_hidden_field('x_Cust_ID', $customer_id) . Bobby Link to comment Share on other sites More sharing options...
asinha Posted January 13, 2005 Author Share Posted January 13, 2005 Hi Bobby, Thanx for replying back, but i couldn't see the osCid entry in function process_button(). Here is my process_button function, pls help function process_button() { global $HTTP_POST_VARS, $order, $currencies, $currency; switch (MODULE_PAYMENT_IPAYMENT_CURRENCY) { case 'Always AUD': $trx_currency = 'AUD'; break; case 'Either AUD or USD, else AUD': if ( ($currency == 'AUD') || ($currency == 'USD') ) { $trx_currency = $currency; } else { $trx_currency = 'AUD'; } break; } $process_button_string = tep_draw_hidden_field('__Click', '0') . tep_draw_hidden_field('Returnemail', aa@yahoo.com') . tep_draw_hidden_field('ReturnHTTP', 'myezconnect.com/cre/index.php') . tep_draw_hidden_field('MerchantID', 'xxx') . tep_draw_hidden_field('Platform', 'PlainText') . tep_draw_hidden_field('UID', 'xxx') . tep_draw_hidden_field('SendeMail', 'Yes') . tep_draw_hidden_field('Mode', 'Test') . tep_draw_hidden_field('readers', 'xxx') . tep_draw_hidden_field('Bank', 'NO') . tep_draw_hidden_field('creditcardexpirymonth', $HTTP_POST_VARS['creditcardexpirymonth']) . tep_draw_hidden_field('creditcardexpiryyear', $HTTP_POST_VARS['creditcardexpiryyear']) . tep_draw_hidden_field('creditcardnumber', $HTTP_POST_VARS['creditcardnumber']) . tep_draw_hidden_field('total', number_format($order->info['total'], 2)) . tep_draw_hidden_field('cvv', $HTTP_POST_VARS['cvv']) . tep_draw_hidden_field('creditcardholdername', $HTTP_POST_VARS['creditcardholdername']); return $process_button_string; } Regards Amit Edit your module and remove the field... Look in icludes/modules/payment/*yourmodule*.php and find: function process_button() This is the list of paramters that will be passed.? Find the osCsid entry and comment it out like this: // tep_draw_hidden_field('x_Cust_ID', $customer_id) . Bobby <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Guest Posted January 13, 2005 Share Posted January 13, 2005 I notice you are using CRE...I would suggest posting your support request to their forum. Bobby Link to comment Share on other sites More sharing options...
asinha Posted January 13, 2005 Author Share Posted January 13, 2005 Hi, Bobby I am using oscommerce2.2, i renamed my folder to cre, here is the original code in ipayment.php function process_button() { global $HTTP_POST_VARS, $order, $currencies, $currency; switch (MODULE_PAYMENT_IPAYMENT_CURRENCY) { case 'Always EUR': $trx_currency = 'EUR'; break; case 'Always USD': $trx_currency = 'USD'; break; case 'Either EUR or USD, else EUR': if ( ($currency == 'EUR') || ($currency == 'USD') ) { $trx_currency = $currency; } else { $trx_currency = 'EUR'; } break; case 'Either EUR or USD, else USD': if ( ($currency == 'EUR') || ($currency == 'USD') ) { $trx_currency = $currency; } else { $trx_currency = 'USD'; } break; } $process_button_string = tep_draw_hidden_field('silent', '1') . tep_draw_hidden_field('trx_paymenttyp', 'cc') . tep_draw_hidden_field('trxuser_id', MODULE_PAYMENT_IPAYMENT_USER_ID) . tep_draw_hidden_field('trxpassword', MODULE_PAYMENT_IPAYMENT_PASSWORD) . tep_draw_hidden_field('item_name', STORE_NAME) . tep_draw_hidden_field('trx_currency', $trx_currency) . tep_draw_hidden_field('trx_amount', number_format($order->info['total'] * 100 * $currencies->get_value($trx_currency), 0, '','')) . tep_draw_hidden_field('cc_expdate_month', $HTTP_POST_VARS['ipayment_cc_expires_month']) . tep_draw_hidden_field('cc_expdate_year', $HTTP_POST_VARS['ipayment_cc_expires_year']) . tep_draw_hidden_field('cc_number', $HTTP_POST_VARS['ipayment_cc_number']) . tep_draw_hidden_field('cc_checkcode', $HTTP_POST_VARS['ipayment_cc_checkcode']) . tep_draw_hidden_field('addr_name', $HTTP_POST_VARS['ipayment_cc_owner']) . tep_draw_hidden_field('addr_email', $order->customer['email_address']) . tep_draw_hidden_field('redirect_url', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', true)) . tep_draw_hidden_field('silent_error_url', tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'payment_error=' . $this->code . '&ipayment_cc_owner=' . urlencode($HTTP_POST_VARS['ipayment_cc_owner']), 'SSL', true)); return $process_button_string; } and i dont see tep_draw_hidden_field('x_Cust_ID', $customer_id) . , i really need help from u. Regards Amit I notice you are using CRE...I would suggest posting your support request to their forum. Bobby <{POST_SNAPBACK}> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.