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) »
  • PayPal standard IPN issue on Drupal multisite
Pages: [1]

Author Topic: PayPal standard IPN issue on Drupal multisite  (Read 1190 times)

ian

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
PayPal standard IPN issue on Drupal multisite
September 09, 2009, 03:57:00 pm
This is probably user error, but I can't figure out what I'm doing wrong.

My setup
  • CiviCRM 2.2.8
  • Drupal 6.13 multisite installation
  • PayPal Standard payment processor in sandbox mode

My problem
For a subdomain (client1.example.com) running CiviCRM, I've setup an event and attempted to register for it (both using Test Drive and copying in the PayPal sandbox info in the Live settings for the payment processor). After the event registration process successfully completes and I'm returned to the subdomain website,  the registrant never moves out of "Pending" status, which sounds like the Instant Payment Notification process is broken. But I've setup IPN for my PayPal sandbox seller according to the instructions. And judging from my Apache log, PayPal is trying to send notification since I'm seeing a line like:
Code: [Select]
216.113.191.33 .... POST /sites/all/modules/civicrm/extern/ipn.php?... So I'm not sure why the registration process isn't completing.

My Totally Random Guess
Is it possible that the IPN listener URL that CiviCRM is passing to PayPal includes my base domain (example.com) instead of the subdomain (client1.example.com)? I'm pretty sure that IP address in the log line above is PayPal. But I can't get Apache to log the domain name portion of the requested URL, so I'm not sure how to figure out if that's the problem.

EDIT: ok, figured out how to tell Apache to log the host, and PayPal is sending the request to the correct URL. So how do I debug what's happening?

Anyone have any suggestions as to what to try? Is there an example out there of how to get PayPal standard IPN working on a Drupal multisite install?

Thanks,
Ian
« Last Edit: September 09, 2009, 04:20:25 pm by ian »

ian

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
Re: PayPal standard IPN issue on Drupal multisite
September 09, 2009, 09:35:29 pm
Ok, I figured it out. I checked my CiviCRM log and found several entries with the text "returning since contribution status is pending". I searched the forum for that text and realized the problem was PayPal was sending a "pending" flag. I fixed this by going to my Test Accounts page in the PayPal sandbox and setting the Payment Review column to Disabled for the seller account I was using. It works now.

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

This forum was archived on 2017-11-26.