osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

8 digits credit card

This is a discussion on 8 digits credit card within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; hello all, i have clients with 8 digits credit card (as well as normal 16 digits cc). seems that cc ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 08-04-2004, 12:14 AM
Member
 
Join Date: Mar 2004
Posts: 78
Thanks: 36
Thanked 0 Times in 0 Posts
Rep Power: 0
altenter
Default 8 digits credit card

hello all,
i have clients with 8 digits credit card (as well as normal 16 digits cc). seems that cc with 8 digits wont process.
any idea how to solve it?
thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 08-04-2004, 09:42 AM
red_fraggle's Avatar
Active Member
 
Join Date: Feb 2004
Location: wilmington, NC
Posts: 319
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
red_fraggle
Default

they make credit cards with only 8 digits on them?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 08-04-2004, 11:13 AM
New Member
 
Join Date: Jul 2004
Location: a mountaintop in Florida
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gravenimage
Default

None of the top seven credit cards have 8-digit account numbers -- Visa, MC, AmEx, Diners, Discover, enRoute, JCB -- and you'll also find no 8-digit credit cards here. My bet is either they're daft and covering up half the number with their thumb, trying to pull one over on you, or they're used to being SOL and unable to buy anything anywhere with it, ever. Do you have more than one customer with an 8-digit CC#? Maybe process it once manually to see if it's even recognized by your card service.

Reluctantly, and with no warranty, express or implied, I'll answer your question... in your Admin, go to Configuration > Minimum Values and click Credit Card Number, then the Edit button. It's set to 10 by default.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 08-04-2004, 02:21 PM
Member
 
Join Date: Mar 2004
Posts: 78
Thanks: 36
Thanked 0 Times in 0 Posts
Rep Power: 0
altenter
Default

thank you gravenimage, but it keeps complaining about not accepting that type of credit card.

Quote:
The first four digits of the number entered are: XYXY
If that number is correct, we do not accept that type of credit card.
If it is wrong, please try again.
any other ideas?
thanks

btw, 8DCC# do exist (probably not in the US)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 08-04-2004, 03:05 PM
New Member
 
Join Date: Jul 2004
Location: a mountaintop in Florida
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
gravenimage
Default

I guess I'll learn something here too then
You'll need to do a couple things that are fairly involved to get it to work then... first the easy part.
Open up the file /catalog/includes/classes/cc_validation.php in a good programmer's text editor.

Now the hard part.

In the first class listed, You'll see where it validates credit card numbers to check if they're real. For example, all Visa numbers start with 4, so it knows if the selected card is Visa and it doesn't start with a 4, then it's not valid, for example. You'll need to add an extra elseif and write a regular expression to identify the type of card you want to add. That also means you'll have to find out the type of card and the format its numbers take.

You might find some way to add an elseif catchall called "Other" that accepts any 8-digit cc number, but if you're using a payment gateway it'll probably bomb. I think your merchant service could tell you more about how to handle those cards and what they require on their end to process it if you tell them what kind of card it is.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 08-04-2004, 05:13 PM
Member
 
Join Date: Mar 2004
Posts: 78
Thanks: 36
Thanked 0 Times in 0 Posts
Rep Power: 0
altenter
Default

yes! i need to add another elsif that would catchall my 8DCC#'S.
would you happen to have one around?
(no payment gateway here)
thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 08-08-2004, 10:24 AM
Member
 
Join Date: Mar 2004
Posts: 78
Thanks: 36
Thanked 0 Times in 0 Posts
Rep Power: 0
altenter
Default

can anyone help with this elseif?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 08-19-2004, 04:01 PM
New Member
 
Join Date: Jul 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
blueginko
Default 8 digit card doubts

I still have doubts about your 8 digit card, it sounds like your user is trying to use a store card (like JC Penny's etc) or possibly a foreign card. Look at the info here http://www.merriampark.com/anatomycc.htm. You can get 14 digits if your cc processor allows Diners (my company allows Diners).

Ths cc_validation appears to be a mod10 and unless you know the validation rules for your user's card, you won't be able to do much other than bypass the cc_validation all together such as an initial

if (len(cc_number) <= {
skip the processing
}

sorry if that isn't correct php, I'm still learning php.

I found an article on Mod10 in php here (haven't read it though).
http://www.sitepoint.com/article/car...tion-class-php

Good luck
Blueginko
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 08-19-2004, 04:02 PM
New Member
 
Join Date: Jul 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
blueginko
Default

LOL the smiley was supposed to be the number eight, forgot to disable smileys

Blueginko
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 08-20-2004, 07:07 AM
Active Member
 
Join Date: May 2003
Posts: 148
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
Arpit
Default

if you guys need the LUHN Formula aka mod 10 written in php feel free to ask
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Credit card module clauska osCMax v2 Customization/Mods 0 06-15-2006 06:42 AM
Credit Card via Authorize.net lem osCMax v2 Installation issues 1 07-18-2005 11:43 AM
Help with EPN credit card processing joanstead osCommerce 2.2 Modification Help 1 03-08-2005 05:55 PM
Credit Card will not process...HELP! lem osCMax v1.7 Discussion 0 12-29-2004 10:04 AM
Credit card month... damos osCommerce 2.2 Modification Help 1 04-10-2003 12:21 PM


All times are GMT -8. The time now is 07:51 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax