CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Cybersource generic error message
Pages: [1]

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

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

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • 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
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
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

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

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

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Discussion »
  • Extensions (Moderators: mathieu, totten, kasiawaka) »
  • Cybersource generic error message

This forum was archived on 2017-11-26.