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...





LinkBack URL
About LinkBacks









Bookmarks