snubbr.com

The host '(POP3):plus.mail.yahoo.com' Protocol:POP3,Port:110,Secure(Verisign SSL):No,Socket Error Nu

Get a Verisign SSL certificate for 30 days FREE. Click here to use coupon...

Get a free trial of Verisign SSL certificates. Click here for this special deal...
Question I have... The host '(POP3):plus.mail.yahoo.com' Protocol:POP3,Port:110,Secure(Verisign SSL):No,Socket Error Nu Many thanks for any comment. My other question... The UK Maestro cards have 18 digits card numer and the validation system does not recognize them..

Is there a way to change the maximum digits accepted to 18..

I think it's from the database but I can't find it..

Many Thanks.

Plamen..

Comments (58)

That's a good question. I'm not sure what is the answer to that question. I'll do some research in Google and get back to you if I got an good answer. You should email the people at Verisign as they probably know..

Comment #1

Hi Ken,.

It's the standard credit card payment method. I tested it and it gives me credit card error. And this is the cc_validation.php page..

I don't see UK Maestro in the list..

<?php.

/*.

$Id: cc_validation.php 1739 2007-12-20 00:52:16Z hpdl $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

Class cc_validation {.

Var $cc_type, $cc_number, $cc_expiry_month, $cc_expiry_year;.

Function validate($number, $expiry_m, $expiry_y) {.

$this->cc_number = ereg_replace('[^0-9]', '', $number);.

If (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number)) {.

$this->cc_type = 'Visa';.

} elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number)) {.

$this->cc_type = 'Master Card';.

} elseif (ereg('^3[47][0-9]{13}$', $this->cc_number)) {.

$this->cc_type = 'American Express';.

} elseif (ereg('^3(0[0-5]|[68][0-9])[0-9]{11}$', $this->cc_number)) {.

$this->cc_type = 'Diners Club';.

} elseif (ereg('^6011[0-9]{12}$', $this->cc_number)) {.

$this->cc_type = 'Discover';.

} elseif (ereg('^(3[0-9]{4}|2131|1800)[0-9]{11}$', $this->cc_number)) {.

$this->cc_type = 'JCB';.

} elseif (ereg('^5610[0-9]{12}$', $this->cc_number)) {.

$this->cc_type = 'Australian BankCard';.

} else {.

Return -1;.

}.

If (is_numeric($expiry_m) && ($expiry_m > 0) && ($expiry_m < 13)) {.

$this->cc_expiry_month = $expiry_m;.

} else {.

Return -2;.

}.

$current_year = date('Y');.

$expiry_y = substr($current_year, 0, 2)$expiry_y;.

If (is_numeric($expiry_y) && ($expiry_y >= $current_year) && ($expiry_y <= ($current_year + 10))) {.

$this->cc_expiry_year = $expiry_y;.

} else {.

Return -3;.

}.

If ($expiry_y == $current_year) {.

If ($expiry_m < date('n')) {.

Return -4;.

}.

}.

Return $this->is_valid();.

}.

Function is_valid() {.

$cardNumber = strrev($this->cc_number);.

$numSum = 0;.

For ($i=0; $i<strlen($cardNumber); $i++) {.

$currentNum = substr($cardNumber, $i, 1);.

// Double every second digit.

If ($i % 2 == 1) {.

$currentNum *= 2;.

}.

// Add digits of 2-digit numbers together.

If ($currentNum > 9) {.

$firstNum = $currentNum % 10;.

$secondNum = ($currentNum - $firstNum) / 10;.

$currentNum = $firstNum + $secondNum;.

}.

$numSum += $currentNum;.

}.

// If the total has no remainder it's OK.

Return ($numSum % 10 == 0);.

}.

}.

?>..

Comment #2

You could either use another paypal module or take a look at, eg, PayPal Verisign website Payments Pro U.K, that has that card type in question built in, to see if you could copy the relevant part of code over?.

Ken..

Comment #3

Couldn't find anything useful there! Does anyone know how to complete disable the credit card validation..

Ken?.

If there's a problem I'll just ring the customer..

Regards.

Plamen..

Comment #4

Hi Plamen.

All are possible, either make it validate the maestro card or disable the validation entirelly (your payment processor will validate it anyway) but I am afraid a bit too much for me to post the details here and I dont really know your site. the checkout process is something no one wants to mess about..

Ken..

Comment #5

The UK Maestro cards have 18 digits card numer and the validation system does not recognize them..

Is there a way to change the maximum digits accepted to 18..

I think it's from the database but I can't find it..

Many Thanks.

Plamen..

Comment #6

Not necessarily. depends on what payment method you are using, which you do not mention in your post. all those up to date payment modules recognise that type of card (previously called switch)..

Ken..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.

 

Categories: Home | Diet & Weight Management | Vitamins & Supplements | Herbs & Cleansing |

Sexual Health | Medifast Support | Nutrisystem Support | Medifast Questions |

Web Hosting | Web Hosts | Website Hosting | Hosting |

Web Hosting | GoDaddy | Digital Cameras | Best WebHosts |

Web Hosting FAQ | Web Hosts FAQ | Hosting FAQ | Hosting Group |

Hosting Questions | Camera Tips | Best Cameras To Buy | Best Cameras This Year |

Camera Q-A | Digital Cameras Q-A | Camera Forum | Nov 2010 - Cameras |

Oct 2010 - Cameras | Oct 2010 - DSLRs | Oct 2010 - Camera Tips | Sep 2010 - Cameras |

Sep 2010 - DSLRS | Sep 2010 - Camera Tips | Aug 2010 - Cameras | Aug 2010 - DSLR Tips |

Aug 2010 - Camera Tips | July 2010 - Cameras | July 2010 - Nikon Cameras | July 2010 - Canon Cameras |

July 2010 - Pentax Cameras | Medifast Recipes | Medifast Recipes Tips | Medifast Recipes Strategies |

Medifast Recipes Experiences | Medifast Recipes Group | Medifast Recipes Forum | Medifast Support Strategies |

Medifast Support Experiences |

 

(C) Copyright 2010 All rights reserved.