Missing user address in Paypal listing

  • Peter Kuhlmann
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 2 months ago - 9 years 2 months ago #75491 by Peter Kuhlmann
Missing user address in Paypal listing was created by Peter Kuhlmann
Hi there,
I have made a test purchase and everything is working well.
But when I look to my Paypal Account I could not see where the user is come from, because there is no address! ( See image attached)
I need the users country for sorting out which users paid the TAX and who is from EU or not. ( Local Tax office need that too). And I have a Paypal transaction list of 2000 sales each month and can not verify each single user.

After I have talked to Paypal dev´s they told me, the address will be stored in Paypal only if I have set "shipping" enabled.

Now my question:
Possible to add a variable to the Paypal plugin URL with a parameter?


Or is there any other idea to transfer the user address to the IPN paypal list?

Greatings Peter
Attachments:
Last edit: 9 years 2 months ago by Peter Kuhlmann.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 2 months ago #75614 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Missing user address in Paypal listing
Hi Peter

The extension does pass addess to PayPal. You can try to look at the code of os_paypal payment plugin to see it

Maybe PayPal doesn't store it because the address is wrong ?

To add the hidden above, you can follow the instructions below:

1. Open the file components/com_osmembership/plugins/os_paypal.php

2. Find this line of code:
Code:
$this->setParameter('email', $row->email);

3. Add this line of code before the that line
Code:
$this->setParameter('shipping', '0.00');

(there should be two lines added, one for onetime subscription and one for recurring subscription)

Then check it again and let me know the result

Tuan

Please Log in or Create an account to join the conversation.

  • Peter Kuhlmann
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 2 months ago - 9 years 2 months ago #75694 by Peter Kuhlmann
Replied by Peter Kuhlmann on topic Missing user address in Paypal listing
Hi Tuan,
many many thanks for your fast answer. ( as always).

I could not found your code you provided, but I have found a solution: See image attached. ( I have set "no_shipping=0").
And now the user address in Paypal is the same as the address in membership pro database.

File: components/com_osmembership/plugins/os_paypal.php

Attachments:
Last edit: 9 years 2 months ago by Peter Kuhlmann.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 2 months ago #75733 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Missing user address in Paypal listing
Ah, OK. Normally, we have no_shipping parameter set to 1, not sure why set it to 0 solves your issue. Will try to read the documentation again when I have some free time. Still too busy here :(

Tuan

Please Log in or Create an account to join the conversation.