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) »
  • Setting Up Intuit QuickBooks Payment Processor
Pages: [1]

Author Topic: Setting Up Intuit QuickBooks Payment Processor  (Read 1708 times)

lhubbert

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7.1.4
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Setting Up Intuit QuickBooks Payment Processor
July 19, 2012, 06:36:17 am
I need to use Intuit QuickBooks payment processor to align with our school's existing finance system. The directions posted on the wiki are very helpful and I'm most of the way there

/confluence/display/CRM/Setting+up+Intuit+QuickBooks+Payment+Processor+for+CiviCRM

I am stuck on the last part of Step 8.

Quote
CA Certificate – this is used by your server to verify Intuit’s server. It can be added to your keystore. Your keystore is a list of all of the certificates which your computer considers to be valid.

example (assumes you pasted the CA into the file /tmp/intuit.ca):
cat /tmp/intuit.ca >> /etc/ssl/certs/ca-certificates.crt

Intuit Certificate – this is the certificate presented by your application to the Intuit website to authenticate the system. It should be put in a SECURE place that your web server has access to.

Example (Certificate is located at):
/tmp/pems/intuit.pem (NOTE: For test applications, your Intuit certificate should be named as intuit-test.pem)

Your intuit.pem will be a combination of the key that you created in step 8 and the signed certificate provided by Intuit. You can achieve this by executing

cat /path/abc.com.key >> /tmp/pems/intuit.pem - PEM files need to be stored in /tmp/pems/intuit.pem

I am hosting the site on a shared server at CiviHosting (which has been FANTASTIC, can't recommend more highly). I have gotten my CA Certificate and my Intuit Certificate, but I have no idea what to do with them. My CA certificate "can be added to my keystore." Is that on my personal computer or on my server? I can't access /etc/ssl/certs/ on my server. And without command line access to my server I'm not sure what to do with this line:
Quote
cat /path/abc.com.key >> /tmp/pems/intuit.pem - PEM files need to be stored in /tmp/pems/intuit.pem

I have all the steps past Step 8 completed, and just need to get a valid connection ticket to have everything working. I have to launch in three weeks for the new school year, any advice is greatly appreciated.

Thanks!
Lisa

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Setting Up Intuit QuickBooks Payment Processor
July 19, 2012, 02:44:37 pm
Hi Lisa.

The docs on this are a bit unclear. Seems from here http://blog.encoresystems.net/articles/creating-a-client-certificate-for-quick-books-merchant-services.aspx and http://wiki.consolibyte.com/wiki/doku.php/quickbooks_qbms_integration and http://www.consolibyte.com/wiki/doku.php/quickbooks_online_edition that the .pem file needs to be somewhere where it's accessible to the web app, but I don't see where you tell the web app where it is.

Anyhow it stands to reason that you could put the file anywhere in your webspace, including in a private place, not accessible via HTTP (ask us offline for details about that). Then we just must find how to tell CiviCRM where it is....
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

lhubbert

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7.1.4
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Setting Up Intuit QuickBooks Payment Processor
July 22, 2012, 10:15:29 am
Hi Hershel,

I'm not sure it's a matter of telling Civi where it is (at this point) as much as it is getting Intuit to see it so they'll give me a connection ticket to input into Civi's QuickBooks configuration. Now that I'm reading again (for the 78th time) I think I created the .pem incorrectly, for starters.

"Your intuit.pem will be a combination of the key that you created in step 8 and the signed certificate provided by Intuit."

I think you created the key and sent it to me, I know you sent me a Certificate Request and I'm not sure if this is the same thing. I tried using that in the .pem but I'm still not getting a blank connection ticket when I execute step 9.

The worst part is that this is a testing version and I'm doing to need to do this all over again when I'm ready to go live.

Thanks for any additional thoughts you might have.

Lisa


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: Setting Up Intuit QuickBooks Payment Processor
July 22, 2012, 03:26:17 pm

Sometimes its just easier to use a more widely used PP like paypal or authorize.net or google checkout

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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Setting Up Intuit QuickBooks Payment Processor
July 23, 2012, 04:58:03 am
The CiviCRM wiki page does actually say

Quote
PEM files need to be stored in /tmp/pems/intuit.pem

so perhaps that location is required. We put the file there for you now. Can you try it now and see if it works?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

lhubbert

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7.1.4
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Setting Up Intuit QuickBooks Payment Processor
July 23, 2012, 06:53:11 am
Not yet. This can be tested by running intuit.php from the root. That creates ticket.txt, which is still blank. I think my .pem has the wrong elements in it, and I'm not sure which is the "key that you created in step 8."

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Setting Up Intuit QuickBooks Payment Processor
July 23, 2012, 08:20:44 am
Well files in /tmp are inherently subject to deletion. :(

But I found in civicrm/CRM/Core/Payment/IntuitQuickbooks.php this code:

Code: [Select]
        if ( $this->_mode == 'live' ) {
          $this->_setParam( 'pemFile' , '/tmp/pems/intuit.pem' );
        } else {
          $this->_setParam( 'pemFile' , '/tmp/pems/intuit-test.pem' );
        }

As I wrote above, there has to be somewhere to tell the code where the .pem file is. I see now that it's hard-coded.

I changed that to use a different hard-coded location, which is in your account space yet not accessible via the web. Contact me offline for that location.

Anyhow, can you test now?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

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: Setting Up Intuit QuickBooks Payment Processor
July 23, 2012, 09:48:18 am

That file is not shipped with core, at least not in svn.

a better place might be to put it in:

{$config->customDir}/intuit/intuit.pem

might want to encourage the writer of that payment processor to do the needful

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

lhubbert

  • I’m new here
  • *
  • Posts: 11
  • Karma: 1
  • CiviCRM version: 4.2.2
  • CMS version: Drupal 7.1.4
  • MySQL version: 5.5.27
  • PHP version: 5.3.13
Re: Setting Up Intuit QuickBooks Payment Processor
July 23, 2012, 09:30:23 pm
Hershel - not yet, the file generated by intuit.php (ticket.txt) is still blank.

Lobo - I'd so much rather use something else. I've sent an email to the director to see if using PayPal is a show stopper. It will not be happy news for the Business Director.

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Setting Up Intuit QuickBooks Payment Processor
April 14, 2013, 11:23:40 pm
Were you successful in getting the Intuit Merchant payment processor working?   I am running into similar challenges.  My question is, is the pem file needed if choosing the "desktop security model" with Intuit? 

I thought that step 8 on the wiki instructions was not needed if using the "desktop security model".  Is step 8 required no matter what?
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Setting Up Intuit QuickBooks Payment Processor
April 24, 2013, 04:37:04 am
I believe we were not successful in the end. :(
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Setting Up Intuit QuickBooks Payment Processor

This forum was archived on 2017-11-26.