Adyx Posted January 16, 2003 Share Posted January 16, 2003 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2003 Share Posted January 16, 2003 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 Quote Link to comment Share on other sites More sharing options...
Adyx Posted January 16, 2003 Author Share Posted January 16, 2003 :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.. 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.