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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error with DPS PxPay
Pages: [1]

Author Topic: Error with DPS PxPay  (Read 3521 times)

millionleaves

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Millionleaves
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Error with DPS PxPay
September 15, 2013, 08:12:55 pm
I've configured DPS as my payment processor in CiviCRM 4.3.4. I'm currently testing with a developer account.

When I try to complete a membership signup using DPS as the payment processor (rather than Pay later - both are enabled), I get the following error when submitting the form for payment:

Notice: Use of undefined constant CURLOPT_POSTFIELDSIZE - assumed 'CURLOPT_POSTFIELDSIZE' in CRM_Core_Payment_PaymentExpressUtils->_initCURL() (line 67 of /var/www/[drupal_root]/sites/all/modules/civicrm/CRM/Core/Payment/PaymentExpressUtils.php).

Warning: curl_setopt() expects parameter 2 to be long, string given in CRM_Core_Payment_PaymentExpressUtils->_initCURL() (line 67 of /var/www/[drupal_root]/sites/all/modules/civicrm/CRM/Core/Payment/PaymentExpressUtils.php).

Has anyone else encountered this issue? Any suggestions?

For the record, I have another site that is also using DPS. It was recently upgraded from 4.2.x to 4.3.5 and had no problem with that site before or after the upgrade.

Thanks in advance.

David
Millionleaves - CiviCRM and Drupal services for New Zealand and the world
http://www.millionleaves.com

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Error with DPS PxPay
September 15, 2013, 10:27:01 pm
Probably the bug has always been there but you have e-notice turned on now. Or else it's a setting that has changed in curl

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

You can either remove that line or turn e-notice off.

Are you going to drupal downunder or whatever it's called in Wellington in Jan or Feb or whenever? It would be good to plan for a small civi meet-up (I don't have enough energy to organise anything big)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

millionleaves

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Millionleaves
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error with DPS PxPay
September 16, 2013, 01:08:24 am
Thanks - I'll check both options out.

Wasn't aware of DrupalSouth 2014, but am now! Yeah, I'd be interesting in coming along, especially if there's an opportunity for a Civi meet up as well.
Millionleaves - CiviCRM and Drupal services for New Zealand and the world
http://www.millionleaves.com

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Error with DPS PxPay
September 16, 2013, 01:20:09 am
We aren't a big community in NZ. I know there are some core team members who would desperately love us to arrange a CiviCon / sprint down here because they'd like to come but I think maybe a meet & greet & maybe a couple of talks might be more do-able.

If there was developer interest we could maybe do a couple of days type sprint
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

millionleaves

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Millionleaves
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error with DPS PxPay
September 16, 2013, 01:21:16 am
I'd be up for a sprint although my developer skills need a bit of work. We could try and convince Lucas to join us though.....
Millionleaves - CiviCRM and Drupal services for New Zealand and the world
http://www.millionleaves.com

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Error with DPS PxPay
September 16, 2013, 01:22:20 am
I wondered if you were connected to Lucas at all - how is his little one? Was about 10 months old when I last heard from him
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

millionleaves

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Millionleaves
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error with DPS PxPay
September 16, 2013, 01:25:27 am
Yeah, we've worked together on and off for 5 years.

Which little one - there are 2 now! Time you caught up with him!
Millionleaves - CiviCRM and Drupal services for New Zealand and the world
http://www.millionleaves.com

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Error with DPS PxPay
September 16, 2013, 01:38:25 am
You got me enthused enough to email the Drupal South organisers to find out what is already scheduled before & after Drupal South to see when we should target
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

millionleaves

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Millionleaves
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error with DPS PxPay
September 16, 2013, 02:54:48 pm
Quote from: Eileen on September 15, 2013, 10:27:01 pm
Probably the bug has always been there but you have e-notice turned on now. Or else it's a setting that has changed in curl

http://curl.haxx.se/libcurl/c/curl_easy_setopt.html

You can either remove that line or turn e-notice off.


Hmmm.

E_notice wasn't enabled, so that's not the issue.

I then commented the offending line in PaymentExpressUtils.php which stopped the error appearing, but nothing else changed. When I click Continue to confirm the details I should be taken to the DPS hosted page. Instead, the page simply reloads with no message. The contribution is recorded as payment pending (incomplete transaction). Clicking the Continue button a second time generates a DB Error: already exists error from Civi (no surprise there).

I then configured the dummy payment processor for the site, just to check if that worked. No problem there (not that I was expecting one ...)

I then tried creating a contribution page on another site I'm developing, also hosted on the same server. Same problem. And, to clarify my original post, the other site I'm running where this is working is on a different server. So I figure the issue is to do with my server configuration, but I'm not sure what might be missing/misconfigured. I have the latest version of curl. There are no errors in the log files on the server. Is there a set of configuration requirements that I might have missed?
Millionleaves - CiviCRM and Drupal services for New Zealand and the world
http://www.millionleaves.com

millionleaves

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Millionleaves
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error with DPS PxPay
September 16, 2013, 03:11:35 pm
Scratch that last post. Looks like I was using the wrong URL for DPS:

I had:

https://sec.paymentexpress.com/pxpay/pxpay.aspx

Should have been using:

https://sec.paymentexpress.com/pxpay/pxaccess.aspx

The strange thing is ... the site which is working on another server is using the first URL quite happily. It has a Mac key supplied, but I figured I wouldn't need that since I'm using PxPay.
Millionleaves - CiviCRM and Drupal services for New Zealand and the world
http://www.millionleaves.com

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Error with DPS PxPay
September 16, 2013, 03:22:42 pm
Yeah so that IS the problem. For some reason, from what I recall, if you are using pxpay you need to use the url ending in pxaccess & vice versa.

Also, if you have mcrypt installed you can use either as the one that requires a mac (I think it's that one) just outsources the encryption that mcrypt could do. I think the api key has the mac appended to it for the other one (I really can't remember which is which)
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

millionleaves

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
    • Millionleaves
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Error with DPS PxPay
September 16, 2013, 03:25:35 pm
Thanks for your help - how logical that pxpay would use the pxaccess URL and vice versa.

I did try that other URL with the dev account details from that other site, but it didn't work and I didn't dig into why. Didn't realise at that point that it failed because I was missing mcrypt (found that out in my logs this morning and installed it).

Anyway - all working now. Thankfully!
Millionleaves - CiviCRM and Drupal services for New Zealand and the world
http://www.millionleaves.com

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Error with DPS PxPay

This forum was archived on 2017-11-26.