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) »
  • Contribute pending - PayPal standard IPN on joomla
Pages: [1]

Author Topic: Contribute pending - PayPal standard IPN on joomla  (Read 1476 times)

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Contribute pending - PayPal standard IPN on joomla
November 30, 2010, 02:12:48 pm
Problem: contribute status is always pending after successful transaction in PayPal Standard

So found this thread really helpful for clues:
http://forum.civicrm.org/index.php?action=post;topic=15617.0;num_replies=20

Joomla 1.5.22
Civi 3.2.3

So looked in my error log and found a 404 for this url:
http://www.mysite.org/administrator/components/com_civicrm/civicrm/extern/ipn.php?reset=1&contactID=11575contributionID=1192&module=contribute

Hooray! IPN comes back
Accessed in a browser produces: Failure: Missing Parameter
So... looks like there is a missing parameter sent /returned to and from PayPal?

How to debug from here?
This is a UK PayPal account if that makes a diference?

ps: my civi error log file is always empty.....?!? is media/civicrm/uploads the right location ?
« Last Edit: November 30, 2010, 02:15:34 pm by alanski »

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: Contribute pending - PayPal standard IPN on joomla
November 30, 2010, 05:15:13 pm

the url should be:

http://www.mysite.org/administrator/components/com_civicrm/civicrm/extern/ipn.php?reset=1&contactID=11575&contributionID=1192&module=contribute

note the '&' before the contributionID

the url is constructed here:

CRM/Core/Payment/PayPalImpl.php, line 394 (search for ipn.php)

i would add some debug code there and see what civi is sending to paypal.

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

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Contribute pending - PayPal standard IPN on joomla
December 02, 2010, 01:47:57 pm
Thanks Lobo :)

dumping $notifyURL gives me
'xxxx/administrator/components/com_civicrm/civicrm/extern/ipn.php?reset=1&contactID=11575&contributionID=1229&module=contribute'

So no missing ampersand....

Record is added as pending and now 404 logs show error regarding session key:

So is this Joomla's session?

Quote
Sorry. A non-recoverable error has occurred.
We can't load the requested web page. This page requires cookies to be enabled in your browser settings. Please check this setting and enable cookies (if they are not enabled). Then try again. If this error persists, contact the site adminstrator for assistance.

Site Administrators: This error may indicate that users are accessing this page using a domain or URL other than the configured Base URL. EXAMPLE: Base URL is http://example.org, but some users are accessing the page via http://www.example.org or a domain alias like http://myotherexample.org.

Error type: Could not find a valid session key.

Return to home page.

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Contribute pending - PayPal standard IPN on joomla
December 02, 2010, 03:18:17 pm
IN addition: this is in live mode with £1 contribution amounts
It looks like non eof the contriubtions show up in PayPal -- which is odd but possibly different issue...

Any further debugging pointers welcome

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: Contribute pending - PayPal standard IPN on joomla
December 02, 2010, 04:30:27 pm

Not sure what is happening and why. seems like u'll need to go in and debug the code and hunt for the bug

please keep us updated so we can fix core if needed

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

alanski

  • I post frequently
  • ***
  • Posts: 216
  • Karma: 5
  • Cup of tea? Yes please
    • Joomkit
  • CiviCRM version: Version in post
  • CMS version: Joomla
  • MySQL version: 5.0
Re: Contribute pending - PayPal standard IPN on joomla
January 05, 2011, 05:27:37 am
Unforgiveably slow response/feedback but
Just to follow and close - client had given wrong Paypal email address or had changed it.
Works fine for single contributions

Thanks

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Contribute pending - PayPal standard IPN on joomla

This forum was archived on 2017-11-26.