Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Authorize.net and CCV, CCV isnt working......


Sid04

Recommended Posts

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 by Sid04
Link to comment
Share on other sites

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 <_<

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

  • 2 weeks later...

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.

Link to comment
Share on other sites

  • 1 year later...

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...