|
For those that are having problems with accpting UK Switch / Maestro / Solo with UK PayPal Pro Direct payments it seems there is a bug with Card Verification Number (security number on the back of the card) number box int he checkout process....
The problem is in the file Cc.php it is expecting a 4 digit Card Verification Number (security number on the back of the card) when UK Switch / Maestro / Solo cards only have a 3 digit number.
Locate the Cc.php file in:
app/code/core/Mage/Payment/Model/Method/Cc.php
and where you see this section of code:
- - - - - - - - - - - - - - - - - - - - - -
$verificationExpList = array(
‘VI’ => ‘/^[0-9]{3}$/’, // Visa
‘MC’ => ‘/^[0-9]{3}$/’, // Master Card
‘AE’ => ‘/^[0-9]{4}$/’, // American Express
‘DI’ => ‘/^[0-9]{3}$/’, // Discovery
‘SS’ => ‘/^[0-9]{4}$/’,
‘OT’ => ‘/^[0-9]{3,4}$/’
- - - - - - - - - - - - - - - - - - - - - -
You need to change - - - ‘SS’ => ‘/^[0-9]{4}$/’, - - - to - - - ‘SS’ => ‘/^[0-9]{3}$/’
basically your telling it to look for a 3 digit number and not 4 which is what is causing the errors.
I have tried it on UK Maestro and Solo cards and they seem to work fine
Hope that helps - Jack
|