Credit Card Number length of field

74 views
Skip to first unread message

Ap.Muthu

unread,
Nov 9, 2013, 5:44:47 AM11/9/13
to Justin James Kelly, SI Group
The customer credit card number field is 255 varchar.
Can we reduce it to 19 as in:
http://www.ubercart.org/forum/support/6139/credit_card_maximum_length
or do we retain it as it is to accomodate multiple credit card numbers and
then render the field not usable in payment gateways?

Regards,
Ap.Muthu

Justin Kelly

unread,
Nov 10, 2013, 7:05:42 PM11/10/13
to Ap.Muthu, SI Group
thanks ap - last time i check the code in this area the credit card number gets encrypted before saving into the db
- so not saving raw credit card numbers
- so no idea what the max/min would be 
- best to keep as is

cheers

justin

Ap.Muthu

unread,
Nov 10, 2013, 9:28:22 PM11/10/13
to Justin Kelly, SI Group
The length of the encryption is the same as that of the credit card number - 19 max should be okay, 20 varchar acceptable - if only one is on record and needs to be usable. It is a substitution / rotation (scramble) based encryption done in library/encryption.php
 
No Luhn check is done on the credit card number.
 
 
----- Original Message -----
From: Justin Kelly
To: Ap.Muthu
Sent: Monday, November 11, 2013 5:35 AM
Subject: Re: Credit Card Number length of field

thanks ap - last time i check the code in this area the credit card number gets encrypted before saving into the db
- so not saving raw credit card numbers
- so no idea what the max/min would be 
- best to keep as is

cheers

justin

Justin Kelly

unread,
Nov 11, 2013, 12:08:34 AM11/11/13
to Ap.Muthu, SI Group
ok ap - if you want reduce it down to 20 character limit

cheers

justin

Ap.Muthu

unread,
Nov 11, 2013, 6:48:31 AM11/11/13
to Justin Kelly, SI Group
----- Original Message -----
From: Justin Kelly
Sent: Monday, November 11, 2013 10:38 AM
Subject: Re: Credit Card Number length of field

ok ap - if you want reduce it down to 20 character limit

cheers

justin
Reply all
Reply to author
Forward
0 new messages