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) »
  • How does contribution status work?
Pages: [1] 2

Author Topic: How does contribution status work?  (Read 6183 times)

mike4miyu

  • Guest
How does contribution status work?
May 20, 2007, 08:43:51 am
I think I finally have online membership signup and payments working with paypal standard but I have a few questions:

Following a successful membership signup and payment I am returned to the Thankyou page. Now, my contribution is listed under CiviContribute "Recent Contributions" with a status of "pending".

How is the pending status updated?
Shouldn't the Paypal IPN confirm the payment and update the pending status?

Following the membership dues payment shouldn't the membership be automatically updated?
At present all membership payments remain as "pending" in Civicontribute and no membership record is generated.

Sorry if these are silly questions. I just can't figure out what should be happening.

Any help would be appreciated.

Mike


« Last Edit: May 20, 2007, 07:02:56 pm by mike4miyu »

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How does contribution status work?
May 20, 2007, 07:55:55 pm
Mike:
The membership will be created (or renewed) WHEN the contribution is COMPLETED. For PayPal Standard this means (as you've stated) that the IPN (notification) has been posted back to CiviContribute from PayPal.

The fact that your contributions are still in Pending status means that the IPN has not been properly posted back to CiviContribute from PayPal. An obvious possible problem is if you are running things on a test sandbox that doesn't have a public internet address (e.g. localhost). If this is not the case, please verify that you have configured CiviCRM and your PayPal merchant profile as documented here:

http://wiki.civicrm.org/confluence/display/CRMDOC/PayPal+Website+Payments+Standard+and+Recurring+Contributions
Protect your investment in CiviCRM by  becoming a Member!

mike4miyu

  • Guest
Re: How does contribution status work?
May 21, 2007, 06:11:09 am
Hi Dave,

The website is live and the IPN works fine on the sandbox but still fails on the live setup.

I double checked the configuration according to the documentation. And all is setup correctly. (I think)
The only difference I can think of is that the sandbox account is an American paypal ac whilst the Live one is Australian.

In PayPal under: "Payment Receiving Preferences" It states:      
"Note:If you are using IPN, you must update your scripts to handle payments in currencies other than US Dollars."

Is The IPN configuration setup to handle AUD?

Any idea what might be wrong?

Can I manually "complete" the contributions?

Thanks for the support.

Mike

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: How does contribution status work?
May 21, 2007, 08:05:37 am
Mike:

1. Check your CiviCRM Global Settings >> Localization. Here try changing currency to AUD.
2. Also Check "Payment Receiving Preferences" for your live Paypal account.
    - Block payments sent to me in a currency I do not hold:

- kurund
Found this reply helpful? Support CiviCRM

mike4miyu

  • Guest
Re: How does contribution status work?
May 21, 2007, 11:22:07 pm
No Luck.  ???

I checked the the locale settings and yes I did have the wrong currency setup. However after adjusting to the following I still can't get it to work:

           User Language en_GB
           Default Currency AUD ($) 
           Monetary Locale en_US
 
Monetary Locale is still set to en_US because there is no en_AU for Australia. I figured Default Currency should sort the problem.

I now have three 'real' contributions still in pending status.

What to do?
Has anyone else on this forum got paypal IPN working in Oz?

Mike

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: How does contribution status work?
May 22, 2007, 12:32:26 am

I assumed u did a new contribution after your made the below changes. Note that once paypal has successfully posted an IPN it will NOT repost it (so those contribitions will be in pending state, unless u edit them and change them to completed). You should be able to do this using the Edit Contributions screen (search for all pending contributions)

if it still does not work, can u check: files/civicrm/upload/CiviCRM.log and let us know if you see any error message or a database updated successfully message

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

mike4miyu

  • Guest
Re: How does contribution status work?
May 22, 2007, 01:28:22 am
Thanks for your quick response lobo.

Yes I did a new contribution.

Last line of civicrm.log:

  [info] PayPalIPN path not available 

Hmm. Can't see what I have done wrong.

When I edit a pending contribution I see no way to update it to completed. Where can I do this?


Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How does contribution status work?
May 22, 2007, 10:03:11 am
Mike - Lobo will need to chime in on your log error - all I can see from the error is that the IPN processing code can't determine which module (CiviContribute or CiviEvent) is generating the transaction....

Regarding editing of Contribution Statuses... the ability to do this via Edit Contribution screen has been added for 1.8 - but isn't available in 1.7. If these are live contributions and you need to update their statuses - you'll need to do this via SQL update statements.

1. Determine the contribution ID for any contributions you need to update by checking the id=xx when viewing the contribution

EX:  http://<site root>/civicrm/contact/view/contribution?reset=1&id=10&cid=102&action=view&context=dashboard&selectedChild=contribute
Contribution ID = 10 (id=10)

2. Run the following update query via phpMyAdmin or MySQL command line:
UPDATE civicrm_contribution SET contribution_status_id = 1 where id = (put your contribution record id here);

NOTE: If you want to update all PENDING contributions in your DB in one shot - your can do this:
UPDATE civicrm_contribution SET contribution_status_id = 1 where contribution_status_id =2;

CAVEAT: You should back up your DB before messing with this :-)
Protect your investment in CiviCRM by  becoming a Member!

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: How does contribution status work?
May 22, 2007, 11:26:05 am

Mike:

can u email me the log file ( lobo at yahoo dot com ). Seems like something is messed up in the url we send to paypal and i'd like to check

also what version of civicrm are u using? and did u upgrade from an older version?

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

mike4miyu

  • Guest
Re: How does contribution status work?
May 22, 2007, 09:41:12 pm
Hi Lobo,

I have emailed you the file.
 
Thank you for taking the time to look at this.
 
I upgraded from 1.6 to 1.7.9379 Drupal PHP5
I didn't record the rev number of the 1.6 version (probably should have)

regards,
Mike
 

mike4miyu

  • Guest
Re: How does contribution status work?
May 26, 2007, 06:25:35 am
Woo Hoo Fixed    ;D

I changed:

Settings - Payment Processor
Paypal Url - LIVE      www.paypal.com.au             (I had set this to .au believing that was correct since most visitors will be from Australia)

to:

Settings - Payment Processor
Paypal Url - LIVE      www.paypal.com

and now it works 100%

I should have taken more notice of:  "LIVE URL for PayPal processing service gateway. Keep the default value, unless you need to connect to a specific international PayPal processing host.

Although I am curious why www.paypal.com.au doesn't work and if it can be made to work?

If it can't perhaps "unless you need to connect to a specific international PayPal processing host." needs to be removed/reworded to avoid others making the same error.

Thank you very much everyone for your support. And particular Lobo for taking the time to look at the server and logs for me.

Cheers
Mike



BSDarby

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • Luck is not a factor
  • CiviCRM version: 4.0.7
  • CMS version: Drupal 7.9
  • MySQL version: 5.1.54
  • PHP version: 5.3.6
Re: How does contribution status work?
June 03, 2007, 02:42:45 pm
Hi,

I have much the same problem.
A "Donation" page works fine, but a "Membership" page does not.
All membership payments show as "pending", whether Test or Live.
I am on Joomla 1.0.12, CiviCRM 1.6.8517, PHP 5.2.1, MySQL 5.0.30.
This is a hosted solution, so upgrading is not at my discretion.

Thanks for all you do,
Brian Darby

Dave Greenberg

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 5760
  • Karma: 226
    • My CiviCRM Blog
Re: How does contribution status work?
June 03, 2007, 05:11:13 pm
Brian - I recall that there were some issues w/ using PayPal Website Payments Standard and CiviMember in 1.6. You could search the issue tracker to confirm. However, since your hosted environment is compatible w/ CiviCRM 1.7 - it would seem to make sense for you to upgrade CiviCRM.
Protect your investment in CiviCRM by  becoming a Member!

Andy Laken

  • I’m new here
  • *
  • Posts: 27
  • Karma: 3
Re: How does contribution status work?
June 04, 2007, 11:07:25 pm
I'm having the issue with contributions staying in the pending state as well, but I have some caveats:

 - I'm using Website Payments Standard as well
 - I'm using Test Drive and the Paypal sandbox - should I expect Paypal to send IPN postbacks from the sandbox or only from live? I have not configured live payments yet.
 - I am using a local box for development on a DSL line, but I've configured it for dynamic DNS and given it a real dns name. Using another machine at a different site, I'm able to surf the site on my local box using that address.

Any ideas? How instant is "instant"? I assumed it meant "within a minute or two"
Andy Laken
Engineer | CivicActions, LLC
e: andy.laken@civicactions.com | skype: mcantsin | http://twitter.com/alaken

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: How does contribution status work?
June 05, 2007, 03:21:35 am

in most cases PayPal IPN is in a few seconds assuming u have the right DNS records et al.

You might want to check files/civicrm/upload/CiviCRM.log and see whats recorded in there and whether the web server is receiving notifications from PayPal IPN

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 »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • How does contribution status work?

This forum was archived on 2017-11-26.