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) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • CiviCRM not sending CVV code to PayJunction (or sending it incorrectly)
Pages: [1]

Author Topic: CiviCRM not sending CVV code to PayJunction (or sending it incorrectly)  (Read 1360 times)

TimberlineTom

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Joomla 2.5.4
  • MySQL version: 5.5.23-55
  • PHP version: 5.2.17
CiviCRM not sending CVV code to PayJunction (or sending it incorrectly)
June 09, 2012, 04:12:03 pm
Contributions and event registration payments through PayJunction have been failing. The error at PayJunction is that CVV verification fails. In my testing it has failed using two different credit cards so it wouldn't appear to be a bank issue.

I can verify that my credit cards work with PayJunction from my Joomla installation on my server. Using HikaShop, I can process a purchase through PayJunction without error so I can verify that the credit card, PayJunction settings, server, and Joomla installation all work with the credit cards I'm using.

In testing again with CiviCRM, all transactions fail because CVV verification does not match. I turned off CVV verification at PayJunction and the transaction completed successfully. (I did receive another error "500 - Passed array does not specify a callable static method", but will trouble shoot that later.) I must turn CVV verification back on because of the way our non-profit has been scammed in the past. Matching CVV code at PayJunction is mandatory.

I am not a programmer, but I did browse the file "administrator/components/com_civicrm/civicrm/CRM/Core/Payment/PayJunction.php". I see a lot of references to variables for address, credit card number, expiry date, etc. But no references to CVV or CV2 unless it is referred to by another name. Does anyone know if the CVV code is even transmitted to PayJunction.

I've used CiviCRM for several years and appreciate all the work that has gone into it's development. However, this is a show stopper for us and I'm going to have to use something else if I cannot get this to work. This has not worked for several months and I've been using PayPal in the interim. I've been directed to get our transactions going through PayJunction again so must resolve this.

Thanks in advance for information and advice anyone can give me.

Tom

TimberlineTom

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Joomla 2.5.4
  • MySQL version: 5.5.23-55
  • PHP version: 5.2.17
Re: CiviCRM not sending CVV code to PayJunction (or sending it incorrectly)
June 09, 2012, 04:16:48 pm
BTW, all the version information is correct in my profile on the left.  :)

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: CiviCRM not sending CVV code to PayJunction (or sending it incorrectly)
June 10, 2012, 07:57:05 am

payjunction was a community contributed payment processor. It was probably one of the first contributed processors.

As such, i'm not sure how many other sites are using this processor. Your best bet might be to check and debug the code. Should be relatively easy and you can compare the code to paypal / auth.net to figure out how to extract and send the cvv over

Contributing back to improving open source projects especially when you encounter an issue is one of the main ways that open source grows and flourishes, especially for long time users. So please do take the time/energy to do so

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

TimberlineTom

  • I’m new here
  • *
  • Posts: 14
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: Joomla 2.5.4
  • MySQL version: 5.5.23-55
  • PHP version: 5.2.17
Re: CiviCRM not sending CVV code to PayJunction (or sending it incorrectly)
June 11, 2012, 01:57:24 pm
Lobo, I took your advise and dug into the code to see what I could do with it. I doesn't look like this payment processor has been sending the CVV code for a very long time. We never noticed until we changed our security settings to require an exact match on CVV (which everyone should be doing.) Testing would work, but I found that the demo account at PayJunction was set not to require AVS or CVV matching. That can be changed at PayJunction. Modification has to be made to 2 files.

Add following after line 106 in administrator/components/com_civicrm/civicrm/CRM/Core/Payment/PayJunction.php

      'verification_number' => $params['cvv2'],

Change line 93 in administrator/components/com_civicrm/civicrm/packages/PayJunction/pjClasses.php

from
$dc_verification_number      = "000"

to
$dc_verification_number      = $pjTxn['verification_number'];

Thanks for the challenge to fix this, I didn't think I could. Hope it helps someone else out.

Tom

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • CiviCRM not sending CVV code to PayJunction (or sending it incorrectly)

This forum was archived on 2017-11-26.