This is a discussion on CyberSource SOP Module within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; Hi, Different card types were working but American Express always got a TEXT_CCVAL_ERROR_CARD_TYPE_MISMATCH (-5) returned. The problem is that cc_validation() ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Hi, Different card types were working but American Express always got a TEXT_CCVAL_ERROR_CARD_TYPE_MISMATCH (-5) returned. The problem is that cc_validation() returns 'Amex' as the type instead of 'American Express'. The real buglet is in cc_validation because the elseif conditional for 'Amex' and 'American Express' is identical and the 'Amex' condtional is first (maybe it's just my version of cc_validation()) In any case, I prefer putting in the fix in cybersource.php: Add an additional case for 'Amex' that acts identically to 'American Express' above line 277. case 'Amex': $this->cc_card_type_id = '003'; Victor. More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WebService module (or E-xact module) | davidAMS | osCMax v2 Customization/Mods | 8 | 05-10-2007 01:21 PM |
| CyberSource SOP Module | michael_s | New osCommerce Contributions | 0 | 02-04-2007 05:00 AM |
| CyberSource SOP Module | michael_s | New osCommerce Contributions | 0 | 02-02-2007 06:51 PM |
| CyberSource payment Module solution | Arpit | osCMax v1.7 General Mods Discussion | 0 | 11-08-2004 12:18 PM |