Author Topic: Cybersource generic error message  (Read 705 times)

Offline smashingx

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.22
  • MySQL version: n/a
  • PHP version: n/a
Cybersource generic error message
« on: July 05, 2012, 01:54:26 pm »
I noticed that every time I write a wrong security code or a wrong expiration date with a valid card number the page it displays says the following:
Payment Processor Error message: CS211:An unknown error occured. Please contact the site administrator to complete your purchase.
Which it's obviously pretty generic and it doesn't tell the customer where the error is. i also noticed that the cybersource extension comes with a csError.php file which lists all the possible errors that may appear. If I look into this file the error 211 it says the following:

'211' => array(
    'csError' => 'The card verification number is invalid.',
    'csMessage' => 'The card verification number is invalid. Please check the verification number and try again or use another card.',

Which is what it should print on my opinion. So for what I think civicrim is not able to match the error number with one of the error in the list of errors, my guess is that civicrm is getting another error code or something of that sort. I was trying to debug to see what's the error number that civicrm is throwing but it seems almost impossible to do that. Are there any suggestions on how to do this or any ideas? Thanks in advance.

Online Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 14731
  • Karma: 440
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Cybersource generic error message
« Reply #1 on: July 06, 2012, 10:33:18 am »

the payment processor code returns the error message. So you should modify the extension file to return a more detailed error message rather than CS211. Might want to check the paypal code to see how we return more descriptive error messages

lobo
Found this reply helpful? Contribute NOW and help improve CiviCRM with the Make it Happen! initiative.

Offline smashingx

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.22
  • MySQL version: n/a
  • PHP version: n/a
Re: Cybersource generic error message
« Reply #2 on: July 06, 2012, 11:57:13 am »
Hi Lobo, as I said the error file with all the possible errors that can occur is there, I was just wondering what are the error codes that civicrm throws when there's an error?

Offline smashingx

  • I’m new here
  • *
  • Posts: 17
  • Karma: 1
  • CiviCRM version: 4.1.5
  • CMS version: Drupal 6.22
  • MySQL version: n/a
  • PHP version: n/a
Re: Cybersource generic error message
« Reply #3 on: July 06, 2012, 12:33:58 pm »
Do you know in which fie for the paypal processor payment you have the list of all the possible errors that can happen?

Thank you