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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Paypal Pro configuration problems
Pages: [1] 2

Author Topic: Paypal Pro configuration problems  (Read 3377 times)

JLong

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Paypal Pro configuration problems
June 11, 2009, 09:22:19 pm
I'm not sure if this is more appropriate here or on the CiviContribute board...

We recently switched from Paypal Standard to Paypal Pro for online processing of membership dues. I followed the instructions in the wiki documentation to create a sandbox account for testing purposes. When I try to submit an online payment with my dummy credit card, I receive the following error trace:

backTrace


/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Core/Error.php, backtrace, 258
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php, fatal, 420
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Core/Payment/PayPalImpl.php, invokeAPI, 217
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Contribute/BAO/Contribution/Utils.php, doDirectPayment, 156
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Member/BAO/Membership.php, processConfirm, 873
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Contribute/Form/Contribution/Confirm.php, postProcessMembership, 487
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Core/Form.php, postProcess, 247
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Core/StateMachine.php, mainProcess, 166
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Core/QuickForm/Action/Next.php, perform, 63
/home/gcmasor/public_html/www/sites/all/modules/civicrm/packages/HTML/QuickForm/Controller.php, perform, 203
/home/gcmasor/public_html/www/sites/all/modules/civicrm/packages/HTML/QuickForm/Page.php, handle, 103
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Core/Controller.php, handle, 245
/home/gcmasor/public_html/www/sites/all/modules/civicrm/CRM/Core/Invoke.php, run, 205
/home/gcmasor/public_html/test/sites/all/modules/civicrm/drupal/civicrm.module, invoke, 339
, civicrm_invoke,
/home/gcmasor/public_html/test/includes/menu.inc, call_user_func_array, 348
/home/gcmasor/public_html/test/index.php, menu_execute_active_handler, 18

Sorry. A non-recoverable error has occurred.
Please set the API URL. Please refer to the documentation for more details


My CiviCRM 2.2.2 install provides fields for Username, Password, Signature, Site URL, and Button URL. I checked the demo site to see if I was using the correct URLs; the demo site has an additional field for API URL that my site does not.

I'd appreciate any suggestions for fixing this.
Thanks,
JTL

Kurund Jalmi

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4169
  • Karma: 128
    • CiviCRM
  • CiviCRM version: 4.x, future
  • CMS version: Drupal 7, Joomla 3.x
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Paypal Pro configuration problems
June 11, 2009, 09:36:34 pm
Can you try creating new PayPal Pro processor and then add it your contribution page.

Kurund
Found this reply helpful? Support CiviCRM

JLong

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Re: Paypal Pro configuration problems
June 16, 2009, 06:34:26 pm
I created a new processor and added it to a new contribution page. I am still having the same problem.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Paypal Pro configuration problems
June 16, 2009, 06:36:08 pm
Assuming the API url on the demo site is a generic one did you try adding it to your config?
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

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: Paypal Pro configuration problems
June 16, 2009, 07:57:40 pm

did u upgrade from an older version of civicrm? if so, what version?

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

JLong

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Re: Paypal Pro configuration problems
June 16, 2009, 10:00:38 pm
Quote from: Eileen on June 16, 2009, 06:36:08 pm
Assuming the API url on the demo site is a generic one did you try adding it to your config?
No, I didn't. Can you tell me where I can do that?

Quote from: Donald Lobo on June 16, 2009, 07:57:40 pm
did u upgrade from an older version of civicrm? if so, what version?
lobo
I upgraded from 1.9 several months ago. I was using Paypal Standard before this with no problems, even after the upgrade.

Sunil

  • I post frequently
  • ***
  • Posts: 131
  • Karma: 23
  • The community around a product more important than the product itself?
    • CiviCRM
Re: Paypal Pro configuration problems
June 17, 2009, 06:09:25 am
Hi,

looking at the error url_api_default column is null
Upgrade info::
    (url_api_default column was added in civicrm2.0, column add and it's  default value handled in Upgrade process Step 6 (v2.0))
    CRM/Upgrade/TwoZero/sql/others.mysql

Here might be url_api_default column is present but default value is absent

Please run following SQL
UPDATE civicrm_payment_processor_type SET url_api_default = 'https://api-3t.paypal.com/' WHERE name = 'PayPal' OR name = 'PayPal_Express';
UPDATE civicrm_payment_processor_type SET url_api_test_default = 'https://api-3t.sandbox.paypal.com/' WHERE name = 'PayPal' OR name = 'PayPal_Express';

Sunil
The community around a product more important than the product itself?

JLong

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Re: Paypal Pro configuration problems
June 21, 2009, 08:19:02 pm
Thank you for the suggestion. I checked the database and the url_api_default and  url_api_test_default fields were both Null. I updated them to the paypal values and double-checked via phpmyadmin. Then I created a new test contribution page using the Paypal processor. However, I still received the same error, with an identical backtrace.

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Paypal Pro configuration problems
June 21, 2009, 09:39:41 pm
The fields in civicrm_payment_processor_type are used to set the fields in civicrm_payment_processor when a new processor is created.

The changes won't necessarily propagate to an existing processor so it's worth checking the fields in civicrm_payment_processor as well and / or recreating the payment processor now that you have fixed them in civicrm_payment_processor_type.
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

JLong

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Re: Paypal Pro configuration problems
June 28, 2009, 12:05:46 pm
That solved the problem. I updated the relevant fields in civicrm_payment_processor and we're now processing online without incident. Thanks very much!

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Paypal Pro configuration problems
June 28, 2009, 01:35:38 pm
Yay - good to hear
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

JLong

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Re: Paypal Pro configuration problems
July 16, 2009, 12:04:36 pm
Here's something new but possibly (?) related...
If someone clicks on the "Check Out With Paypal" button (instead of entering credit card information), the browser routes to:

https://api-3t.paypal.com//cgi-bin/webscr?cmd=_express-checkout&token=#######
(### edited out by me.)

And this is displayed on the screen:
  <?xml version="1.0" encoding="UTF-8" ?>
- <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:market="urn:ebay:apis:Market" xmlns:auction="urn:ebay:apis:Auction" xmlns:sizeship="urn:ebay:api:PayPalAPI/sizeship.xsd" xmlns:ship="urn:ebay:apis:ship" xmlns:skype="urn:ebay:apis:skype" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI">
- <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" id="_0">
- <SOAP-ENV:Fault>
  <faultcode>SOAP-ENV:Client</faultcode>
  <faultstring>End of file or no input: 'Invalid argument'</faultstring>
  </SOAP-ENV:Fault>
  </SOAP-ENV:Body>
  </SOAP-ENV:Envelope>

Any thoughts?

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: Paypal Pro configuration problems
July 16, 2009, 02:59:51 pm

my guess would be that when we migrated to the paypal nvp api, we did not migrate the express payment part

Do you want to take a look at it and submit a patch that fixes the issue

thanx

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

JLong

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 0
Re: Paypal Pro configuration problems
July 16, 2009, 03:13:54 pm
I would be happy to help but my civi development skills are limited.
Any pointers on where to start? I'm not sure what nvp means.

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: Paypal Pro configuration problems
July 16, 2009, 03:31:14 pm

1. nvp == name value protocol which we currently use (over soap)

2. CRM/Core/Payment/PayPalImpl.php, function doExpressCheckout

i took a quick look and it seems that we did move it over also. what version of civicrm are u using?

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

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Paypal Pro configuration problems

This forum was archived on 2017-11-26.