Sid04 Posted June 12, 2004 Share Posted June 12, 2004 (edited) I added the CCV field to my authorize.net module with instructions from a contribution. I tried using it live today and the CCV info doesnt seem to be making it to authorize.net. I need this issue resolved before going live. Here's what the contribution said to do (there was also a line added to in the languages/modlules/etc. folder to add the actual text to the shopping cart page). These changes were applied to <oscdir>/[catalog]/includes/modules/payment/authorizenet.php the "+" lines are added, the "-" lines were erased. @@ -156,7 +156,9 @@? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_NUMBER, ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'field' => tep_draw_input_field('authorizenet_cc_number')), ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CREDIT_CARD_EXPIRES, -? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'field' => tep_draw_pull_down_menu('authorizenet_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('authorizenet_cc_expires_year', $expires_year)))); +? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 'field' => tep_draw_pull_down_menu('authorizenet_cc_expires_month', $expires_month) . ' ' . tep_draw_pull_down_menu('authorizenet_cc_expires_year', $expires_year)), +? ? ? ? ? ? ? ? ? ? ? array('title' => MODULE_PAYMENT_AUTHORIZENET_TEXT_CCV_NUMBER, +? ? ? ? ? ? ? ? ? ? ? ? ? 'field' => tep_draw_input_field('authorizenet_ccv_number')))); ? ? ? return $selection; ? ? } @@ -193,6 +195,7 @@ ? ? ? $this->cc_card_number = $cc_validation->cc_number; ? ? ? $this->cc_expiry_month = $cc_validation->cc_expiry_month; ? ? ? $this->cc_expiry_year = $cc_validation->cc_expiry_year; +? $this->cc_ccv = $HTTP_POST_VARS['authorizenet_ccv_number']; ? ? } ? ? function confirmation() { @@ -216,6 +219,7 @@ ? ? ? $process_button_string = tep_draw_hidden_field('x_Login', MODULE_PAYMENT_AUTHORIZENET_LOGIN) . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_draw_hidden_field('x_Card_Num', $this->cc_card_number) . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_draw_hidden_field('x_Exp_Date', $this->cc_expiry_month . substr($this->cc_expiry_year, -2)) . +? ? ? ? ? ? ? ? tep_draw_hidden_field('x_Card_Code', $this->cc_ccv) . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_draw_hidden_field('x_Amount', number_format($order->info['total'], 2)) . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_draw_hidden_field('x_Relay_URL', tep_href_link(FILENAME_CHECKOUT_PROCESS, '', 'SSL', false)) . ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? tep_draw_hidden_field('x_Method', ((MODULE_PAYMENT_AUTHORIZENET_METHOD == 'Credit Card') ? 'CC' : 'ECHECK')) . the c_card_code value doesnt make it to authorize.net. Does the above code look like it should accomplish that? Thanks Edited June 12, 2004 by Sid04 Quote Link to comment Share on other sites More sharing options...
Sid04 Posted June 13, 2004 Author Share Posted June 13, 2004 up Quote Link to comment Share on other sites More sharing options...
Guest Posted June 13, 2004 Share Posted June 13, 2004 i see u did it twice, shame on you. again read the forum rules if you have a problem with it. no bumping. Quote Link to comment Share on other sites More sharing options...
Sid04 Posted June 13, 2004 Author Share Posted June 13, 2004 i see u did it twice, shame on you. again read the forum rules if you have a problem with it. no bumping. I see you repeated yourself also. I bet I bumped them at the same time, therefore both being before I knew of the rule(only bumped because I have sen it done here before). Oh, and thanks for the help. Less following people around the forum looking for bumping, more helping.......that should be a rule <_< Quote Link to comment Share on other sites More sharing options...
Sid04 Posted June 14, 2004 Author Share Posted June 14, 2004 im still having no luck at this. Does anybody know how to even check what is actually getting sent to authorize.net in this situation? this is the contribution I used: http://www.oscommerce.com/community/contri...thorize.net+ccv I only added a popup window to show where the CCV code is on the card, other then that I used whats included in the contribution. Thanks for any help! Quote Link to comment Share on other sites More sharing options...
Sid04 Posted June 14, 2004 Author Share Posted June 14, 2004 nm, found it. For anybody else having this issue, you need to change your version to 3.1 in both your authorizenet.php and in your security settings through authorize.net. Quote Link to comment Share on other sites More sharing options...
Guest Posted June 25, 2004 Share Posted June 25, 2004 I constantly get this error with 1.17 trying to check out. My card is good. Credit Card Error! The credit card type you've chosen does not match the credit card number entered. Please check the number and credit card type and try again. Quote Link to comment Share on other sites More sharing options...
Guest Posted February 19, 2006 Share Posted February 19, 2006 It appears there is a problem with the module caching and passing the previous CC info to authorize.net Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.