osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

CyberSource SOP Module

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


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 08-03-2007, 03:10 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,477
Thanks: 73
Thanked 334 Times in 313 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post CyberSource SOP Module

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


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

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


All times are GMT -8. The time now is 02:22 PM.


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