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) »
  • Why does GoogleIPN & PayPalIPN update contact Name & Address?
Pages: [1]

Author Topic: Why does GoogleIPN & PayPalIPN update contact Name & Address?  (Read 2724 times)

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Why does GoogleIPN & PayPalIPN update contact Name & Address?
August 16, 2007, 05:08:00 am
While testing the Google Checkout Payment Processor it has become clear that the GoogleIPN.php code updates the contact Name and Address record based on the data returned from Google. Why is this?

In practice it doesn't really make sense as it is not 100% given that a payment will be made with that users Google Checkout account. To complicate matters further Google contains all the name info in one field which is updated to the CiviCRM first name field.

Ultimately the contacts details should remain unchanged as the important thing is that an organisation has raised funds via a contact (using whatever external account he likes) and the transaction is recorded against that individual.

Looking at the PayPalIPN.php file this is also the case.




Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Why does GoogleIPN & PayPalIPN update contact Name & Address?
August 16, 2007, 06:32:14 am

There has been a similar kind of discussion. Check http://forum.civicrm.org/index.php/topic,532.0.html
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: Why does GoogleIPN & PayPalIPN update contact Name & Address?
August 16, 2007, 06:53:58 am
Deepak, thanks for the heads up.  Maybe I can just comment out the address and name update section. The rest of the transaction seems to be linked to contact_id. Don't have time to look at it for a while...

GregoryHeller

  • I post occasionally
  • **
  • Posts: 73
  • Karma: 3
Re: Why does GoogleIPN & PayPalIPN update contact Name & Address?
December 11, 2007, 03:45:03 pm
I've got a new wrinkle to add to this bug:

If you have a custom form element on you contribution page (for example, one that collects certain additional information, like name, address, employer info, etc) and the first and last name are required, a user who decides to pay with paypal rather than a credit card (through web payments pro) will be returned to the websites from paypal with their first and last names wiped out, and thus (since those fields are required) will not be able to process the transaction.  If the first and last name are not required, the transaction will be processed, but no name will be recorded on the contact record.

To restate with a step by step:
preconditions:
1) Using CiviContribute with Web Payments pro (credit card payment remains on the site, payment through a paypal account gets taken to paypal)
2) Custom Page element (a civicrm profile form) with first and last name required.

Process:
1) Anon user finds her way to civicontribute page
2) anon user fills out the custom page element (profile form) including all required fields
3) anon user opts to pay via pay pal
4) anon user taken off site to pay pal, logs in to pay pal, confirms contribution
 - at this time the "mailing address" shown at paypal DOES NOT include first and last name, but does include address information from the custom page element (profile form)
5) anon user returned to website, to a confirmation page generated by civicrm, First and last name are blank, other fields entered into custom page element (profile form) are populated.  Billing address (if filled out in step 2) has all information
6) IF First and Last name in the custom page element are required fields, transaction will fail and there is no way to enter them and proceed.  IF name fields are not required, transaction will be completed and recorded in civicontribute BUT first and last name will be blank EVEN if billing address and name fields WERE filled out.  IE the Contact will not have a first and last name.

This is more than just a minor inconvenience.  It is a show stopper for anyone using Paypal web payments pro who needs to know the first and last name of their donors and have that name stored in the contact record so they can: use it in a civimail message, generate call lists, or snail mailings.


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: Why does GoogleIPN & PayPalIPN update contact Name & Address?
December 12, 2007, 11:44:54 am

as with all issues, please reproduce this on demo. We'll investigate and potentially fix in 2.0

If its more than a minor inconvenience, please consider allocating some of CA's resources to fix it and contribute back a patch :) Would be appreciated both by us and the community

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]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviContribute (Moderator: Donald Lobo) »
  • Why does GoogleIPN & PayPalIPN update contact Name & Address?

This forum was archived on 2017-11-26.