Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CC_CVV_MIN_LENGTH is undefined


Adyx

Recommended Posts

Hello,

 

Spotted an annoying little script alert error..

after setting up the cc_cvv+uk_switch contribution,

(latest version)

 

When entring the card details and clicking continue,

the script alert icon appears to warn that :

 

Line 69

char 3

error CC_CVV_MIN_LENGTH is undefined

Code 0

URL http://127.0.0.1/catalog/checkout_payment.php

<<that url should go anywhere... its just running localhost>>

 

 

did find this on forum.. amongst other cvv2 help:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

INSERT INTO configuration VALUES ( 133, 'CVV2 Number','CVVNUMBER_MIN_LENGTH', 3, 'Minimum Length of CVV2 Number', 2, 15, '2003-01-11 10:30:00', '2003-01-11 10:30:00', NULL , NULL );

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

The actual entry in the DB at that point was

ending.. TEST_LENGTH

 

So CC_CVV_MIN_LENGTH obviously was not defined,

as the name was not correct ?

 

So, i changed the configuration key for the entry to

CC_CVV_MIN_LENGTH, but the same problem still occurs..

 

Any ideas what needs editing to fix this ? :roll:

 

Thank q

Link to comment
Share on other sites

did find this on forum.. amongst other cvv2 help:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

INSERT INTO configuration VALUES ( 133, 'CVV2 Number','CVVNUMBER_MIN_LENGTH', 3, 'Minimum Length of CVV2 Number', 2, 15, '2003-01-11 10:30:00', '2003-01-11 10:30:00', NULL , NULL );

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

FWIW, that was help for the CVV for cc.php without the Switch Card modification. When Barry modded it to add the Switch Cards he changed some of the DB names etc. so do not use the above information for this particular mod. You should however, just be able to alter it a bit to make it work though. First remove your current DB entries for this table. Then try typing this in your Sql query box.

INSERT INTO configuration VALUES ( ???, 'CC_CVV','CC_CVV_MIN_LENGTH', 3, 'Minimum Length of CVV Number', 2, ??, '2003-01-11 10:30:00', '2003-01-11 10:30:00', NULL , NULL );



You will need to replace the ??? and ?? with the configuration_id and sort_order values for your particular database.  Just look at your Table_Configuration and find the highest number configuration_id and the highest value for the sort_order with a configuration_group_id of 2.  Just pick the next number after that for each case and it should work fine. HTH

Link to comment
Share on other sites

:D

Thats Great ! Thanks for that.. worked first time..

 

My off-line test store is all sorted...

now to go mess-up the live version :lol:

 

Incidentally do you know of a source of BIN numbers

for the cc validation ? UK cards mainly..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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