Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Paypal IPN doesn't pass along address info. Why?

Paypal IPN doesn't pass along address info. Why?

Locked

Views: 4,286

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
3 Jun 2008, 4:06 PM
#1
peale avatar

peale

New Zenner

Join Date:
May 2008
Posts:
10
Plugin Contributions:
0

Paypal IPN doesn't pass along address info. Why?

When I accept a Paypal payment using the IPN I can get the money just fine. Problem is address info doesn't appear to be going along for the ride, so I can't print out address labels from Paypal.

As you can imagine, this is extremely inconvenient.

12 Jun 2008, 11:44 PM
#2
peale avatar

peale

New Zenner

Join Date:
May 2008
Posts:
10
Plugin Contributions:
0

Re: Paypal IPN doesn't pass along address info. Why?

Anyone? This is getting particularly annoying.

12 Jun 2008, 11:58 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,777
Plugin Contributions:
11

Re: Paypal IPN doesn't pass along address info. Why?

Hard to give a definitive answer without knowing things like your cart version, whether or not you have updated the PayPal module, etc.

Kinda like asking how to remove a battery from a car. One of ours is in the trunk, the other in the right-front wheel well.:P

24 Jun 2008, 9:01 PM
#4
peale avatar

peale

New Zenner

Join Date:
May 2008
Posts:
10
Plugin Contributions:
0

Re: Paypal IPN doesn't pass along address info. Why?

Running 1.3.8a, and as far as I know everything has been updated.

And I don't think it's a Zen Cart issue, but rather how the payment is handled itself by PayPal. Like it's an "advance" instead of a "payment for goods".

2 Jul 2008, 3:42 PM
#5
peale avatar

peale

New Zenner

Join Date:
May 2008
Posts:
10
Plugin Contributions:
0

Re: Paypal IPN doesn't pass along address info. Why?

Bumping this again. I'd really like to be able to print my address labels from Paypal.

2 Jul 2008, 6:39 PM
#6
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,777
Plugin Contributions:
11

Re: Paypal IPN doesn't pass along address info. Why?

In the updating process, did you remove the old PayPal module and reinstall after upgrading to 1.3.8a?

8 Jul 2008, 1:45 AM
#7
peale avatar

peale

New Zenner

Join Date:
May 2008
Posts:
10
Plugin Contributions:
0

Re: Paypal IPN doesn't pass along address info. Why?

I've only ever had 1.3.8a as far as I know. And I've uninstalled and reinstalled the module several times.

From what I can see, it's the wrong type of payment. It's just a transfer of funds which doesn't require address info being passed along.

11 Jul 2008, 7:58 AM
#8
directprint avatar

directprint

New Zenner

Join Date:
Jul 2008
Location:
Australia
Posts:
28
Plugin Contributions:
0

Re: Paypal IPN doesn't pass along address info. Why?

I think you will find it's up to the customer to enter the address details, Paypal assumes you have the details as they have come from your zen-cart store.

Just my idea's of what's happening there.

31 Jul 2008, 12:48 AM
#9
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: Paypal IPN doesn't pass along address info. Why?

I recently started getting this problem, after updating to the latest paypal module with 1.3.7.

I have just started looking into the issue, but the first thing I am going to look at is the PDT token. Before I upgraded the paypal module I was not using PDT, but activating PDT when following the upgrade instructions may have caused the problem?

Just a guess, but a place to start. If anyone has suggestions for other places to look please chime in.

31 Jul 2008, 1:04 AM
#10
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: Paypal IPN doesn't pass along address info. Why?

ts232:

I recently started getting this problem, after updating to the latest paypal module with 1.3.7.

I have just started looking into the issue, but the first thing I am going to look at is the PDT token. Before I upgraded the paypal module I was not using PDT, but activating PDT when following the upgrade instructions may have caused the problem?

Just a guess, but a place to start. If anyone has suggestions for other places to look please chime in.

Tested with PDT disabled at paypal.com with same result (no address shown on paypal for transaction). This is particularly annoying/dangerous because:

  1. if you use paypal to do shipping labels for first class mail you now need to manually enter the address

  2. your transaction is not protected by paypals seller protection policy if the address is not given as part of the transaction.

Re-enabling PDT and will try running the debug logs...

31 Jul 2008, 1:28 AM
#11
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: Paypal IPN doesn't pass along address info. Why?

ts232:

Tested with PDT disabled at paypal.com with same result (no address shown on paypal for transaction). This is particularly annoying/dangerous because:

  1. if you use paypal to do shipping labels for first class mail you now need to manually enter the address

  2. your transaction is not protected by paypals seller protection policy if the address is not given as part of the transaction.

Re-enabling PDT and will try running the debug logs...

Test run with logging generated three log files:

ipn_1217466875_IwoW.log

Jul 30 2008 18:14 -- IPN PROCESSING INITIATED. 
*** Originating IP: 66.211.170.66  notify.paypal.com

Jul 30 2008 18:14 -- IPN NOTICE :: ipn_application_top -> language files okay

Jul 30 2008 18:14 -- IPN INFO - POST VARS received (sorted):
Array
(
    [business] => [email protected]
    [charset] => windows-1252
    [custom] => zenid=312998a5836ea236ade596698dd41141
    [first_name] => Kat
    [item_name] => tispd braking purchase
    [item_number] => Store Receipt
    [last_name] => Kea
    [mc_currency] => USD
    [mc_fee] => 0.01
    [mc_gross] => 0.01
    [notify_version] => 2.4
    [payer_email] => [email protected]
    [payer_id] => 7YPWUJKUPYEPG
    [payer_status] => unverified
    [payment_date] => 18:14:22 Jul 30, 2008 PDT
    [payment_fee] => 0.01
    [payment_gross] => 0.01
    [payment_status] => Completed
    [payment_type] => instant
    [quantity] => 1
    [receiver_email] => [email protected]
    [receiver_id] => UTSJD2K9HEQS4
    [residence_country] => US
    [shipping] => 0.00
    [tax] => 0.00
    [txn_id] => 8EB62318D4119391V
    [txn_type] => web_accept
    [verify_sign] => AiPC9BjkCyDFQXbSkoZcgqH3hpacALQlsr74E903HBrBAxQGbBeV008c
)


Jul 30 2008 18:14 -- IPN INFO - POST VARS to be sent back for validation: 
To: www.paypal.com:80
POST /cgi-bin/webscr HTTP/1.1

Host: www.paypal.com

Content-type: application/x-www-form-urlencoded

Content-length: 720

Connection: close



Array
(
    [payment_date] => 18:14:22 Jul 30, 2008 PDT
    [txn_type] => web_accept
    [last_name] => Kea
    [residence_country] => US
    [item_name] => tispd braking purchase
    [payment_gross] => 0.01
    [mc_currency] => USD
    [business] => [email protected]
    [payment_type] => instant
    [verify_sign] => AiPC9BjkCyDFQXbSkoZcgqH3hpacALQlsr74E903HBrBAxQGbBeV008c
    [payer_status] => unverified
    [tax] => 0.00
    [payer_email] => [email protected]
    [txn_id] => 8EB62318D4119391V
    [quantity] => 1
    [receiver_email] => [email protected]
    [first_name] => Kat
    [payer_id] => 7YPWUJKUPYEPG
    [receiver_id] => UTSJD2K9HEQS4
    [item_number] => Store Receipt
    [payment_status] => Completed
    [payment_fee] => 0.01
    [mc_fee] => 0.01
    [shipping] => 0.00
    [mc_gross] => 0.01
    [custom] => zenid=312998a5836ea236ade596698dd41141
    [charset] => windows-1252
    [notify_version] => 2.4
    [cmd] => _notify-validate
)


Jul 30 2008 18:14 -- IPN INFO - Confirmation/Validation response 
SUCCESS

Jul 30 2008 18:14 -- Breakpoint: 1 - Collected data from PayPal notification

Jul 30 2008 18:14 -- IPN INFO :: Transaction email details.
From IPN = [email protected] | [email protected]
From CONFIG = [email protected]

Jul 30 2008 18:14 -- Breakpoint: 2 - Validated transaction components

Jul 30 2008 18:14 -- Breakpoint: 3 - Communication method verified

Jul 30 2008 18:14 -- IPN NOTICE :: Could not find matched txn_id record in DB. Therefore is new to us. 

Jul 30 2008 18:14 -- Breakpoint: 4 - Details:  txn_type=unique    ordersID = 0  IPN_id=0

   Relevant data from POST:
     txn_type = unique
     parent_txn_id = None
     txn_id = 8EB62318D4119391V

Jul 30 2008 18:14 -- Breakpoint: 5 - Transaction type (txn_type) = unique

Jul 30 2008 18:14 -- IPN INFO :: Currency/Amount Details: 
PayPal email address = [email protected]
 | mc_currency = USD
 | submitted_currency = USD
 | order_currency = USD
 | mc_gross = 0.01
 | converted_amount = 0.01
 | order_amount = 0.01

Jul 30 2008 18:14 -- Breakpoint: 6 - Completed IPN order add.    ordersID = 2065  IPN_id =458

ipn_1217466879_Y3dA.log

Jul 30 2008 18:14 -- IPN INFO - POST VARS to be sent back for validation: 
To: www.paypal.com:80
POST /cgi-bin/webscr HTTP/1.1

Host: www.paypal.com

Content-type: application/x-www-form-urlencoded

Content-length: 101

Connection: close



Array
(
    [cmd] => _notify-sync
    [tx] => 8EB62318D4119391V
    [at] => Tat0V**********O_0Wm
)


Jul 30 2008 18:14 -- IPN INFO - Confirmation/Validation response 
SUCCESS

Jul 30 2008 18:14 -- PDT Returned Data Array
(
    [payment_date] => 18:14:22 Jul 30, 2008 PDT
    [txn_type] => web_accept
    [last_name] => Kea
    [residence_country] => US
    [item_name] => tspd braking purchase
    [payment_gross] => 0.01
    [mc_currency] => USD
    [business] => [email protected]
    [payment_type] => instant
    [payer_status] => unverified
    [tax] => 0.00
    [payer_email] => [email protected]
    [txn_id] => 8EB62318D4119391V
    [quantity] => 1
    [receiver_email] => [email protected]
    [first_name] => Kat
    [payer_id] => 7YPWUJKUPYEPG
    [receiver_id] => UTSJD2K9HEQS4
    [item_number] => Store Receipt
    [payment_status] => Completed
    [payment_fee] => 0.01
    [mc_fee] => 0.01
    [shipping] => 0.00
    [mc_gross] => 0.01
    [custom] => zenid=312998a5836ea236ade596698dd41141
    [charset] => windows-1252
)


Jul 30 2008 18:14 -- IPN INFO :: Transaction email details.
From IPN = [email protected] | [email protected]
From CONFIG = [email protected]

Jul 30 2008 18:14 -- IPN INFO :: Currency/Amount Details: 
PayPal email address = [email protected]
 | mc_currency = USD
 | submitted_currency = USD
 | order_currency = USD
 | mc_gross = 0.01
 | converted_amount = 0.01
 | order_amount = 0.01

Jul 30 2008 18:14 -- PDT WARNING :: Transaction already exists. Perhaps IPN already added it.  PDT processing ended.

ipn_1217466830_bO6c.log:

Jul 30 2008 18:13 -- Keys for submission: Array
(
    [bn] => zencart
    [cmd] => _ext-enter
    [rm] => 2
    [mrb] => R-6C7952342H795591R
    [pal] => 9E82WJBKKGPLQ
    [page_style] => tispeed
    [lc] => US
    [custom] => zenid=312998a5836ea236ade596698dd41141
    [charset] => iso-8859-1
    [return] => https://tspd.com/index.php?main_page=checkout_process&referer=paypal
    [cancel_return] => https://tspd.com/index.php?main_page=checkout_payment
    [shopping_url] => https://tspd.com/index.php?main_page=shopping_cart
    [notify_url] => https://tspd.com/ipn_main_handler.php
    [redirect_cmd] => _xclick
    [business] => [email protected]
    [first_name] => Kat
    [last_name] => Kea
    [address1] => 517 Rock Ct
    [city] => Naperville
    [state] => IL
    [zip] => 60563
    [country] => US
    [email] => [email protected]
    [H_PhoneNumber] => xxxxxxxxxx
    [night_phone_a] => xxx
    [night_phone_b] => xxx
    [night_phone_c] => xxxx
    [day_phone_a] => xxx
    [day_phone_b] => xxx
    [day_phone_c] => xxxx
    [no_shipping] => 1
    [currency_code] => USD
    [paypal_order_id] => 
    [item_name] => tspd braking purchase
    [item_number] => Store Receipt
    [upload] => 1
    [amount] => 0.01
    [shipping] => 0.00
    [tax] => 0.00
    [tax_cart] => 0.00
)

address info clearly appears in one of the log files, but is not getting relayed via IPN. (identifying info scrubbed by my with text editor)

any ideas from this?

31 Jul 2008, 1:55 AM
#12
ts232 avatar

ts232

Zen Follower

Join Date:
May 2006
Posts:
167
Plugin Contributions:
0

Re: Paypal IPN doesn't pass along address info. Why?

Uninstalling and reinstalling has no effect.

Everything works fine through the API for Paypal Express Payments. I am considering just removing the IPN access and using express payments only. One downside of this is that there are multiple checkout options from Page 1 of the shopping cart: the standard "Checkout" button, and then the big orange "Check Out with PayPal" button. A potential for confusion by the user.

Anyone see a downside to going "express checkout" only?