Forums / Addon Payment Modules / Paypal IPN "email address not matched"

Paypal IPN "email address not matched"

Locked

Views: 3,636

Results 1 to 10 of 10
This thread is locked. New replies are disabled.
9 Oct 2006, 10:32 PM
#1
flakrat avatar

flakrat

New Zenner

Join Date:
Apr 2005
Posts:
74
Plugin Contributions:
0

Paypal IPN "email address not matched"

I have the paypal IPN module installed and have the primary paypal email address entered into the module configuration. I buy something on my store, get redirected to Paypal site, complete the payment process and I don't get an order number.

Here's the output from the Paypal IPN modules log file (the only thing I modified in the output was to change the email address to [email protected], and yes in the log file they are identical).

/var/www/html/includes/modules/payment/paypal/logs

,8
,VERIFIED
,0
,

Mon Oct 2006 17:26 -- IPN WARNING::Transaction email address not matched. From IPN = [email protected]: From CONFIG = [email protected]

Mon Oct 2006 17:26 -- IPN FATAL ERROR::Transaction did not validate

Any idea why it says the Transaction email address doesn't match?

9 Oct 2006, 10:40 PM
#2
flakrat avatar

flakrat

New Zenner

Join Date:
Apr 2005
Posts:
74
Plugin Contributions:
0

Re: Paypal IPN "email address not matched"

Oh, and I'm using Zen 1.3.5 and host my own server on a T1 (i.e. I control the firewall) and don't seem to have any issues with people accessing my site via 443 or 80, and no issues accessing those ports from the server.

I'm also testing this against the live paypal server, not using the sandbox and haven't gotten it to successfully integrate on three purchases.

9 Oct 2006, 10:56 PM
#3
flakrat avatar

flakrat

New Zenner

Join Date:
Apr 2005
Posts:
74
Plugin Contributions:
0

Re: Paypal IPN "email address not matched"

I tried setting both the http and the https URL in Paypals "Instant Payment Notification Preferences"

http://www.MYDOMAIN.com/ipn_main_handler.php
and
https://www.MYDOMAIN.com/ipn_main_handler.php

Both produced the same error about the emails not matching!

And I copied exactly (to the clipboard and pasted) the primary email address from Paypal's email setting page to my Paypal IPN module config page.

9 Oct 2006, 11:09 PM
#4
flakrat avatar

flakrat

New Zenner

Join Date:
Apr 2005
Posts:
74
Plugin Contributions:
0

Re: Paypal IPN "email address not matched"

Sorry for so many updates, the forum won't let me edit my posts after 7 minutes, and these thoughts keep popping in my head.

Here are the two settings I have for my web servers iptables firewall.

-A RH-Firewall-1-INPUT -p tcp -m state -m tcp --dport 80 --state NEW -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state -m tcp --dport 443 --state NEW -j ACCEPT

This server is connected directly to the internet, is there anything in that config that would prevent bidirectional communications?

11 Oct 2006, 5:20 AM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Paypal IPN "email address not matched"

/includes/modules/payment/paypal/paypal_functions.php

line 60 -- alter it like this:```
if (strtolower($postArray['business']) != strtolower(MODULE_PAYMENT_PAYPAL_BUSINESS_ID)) {

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Oct 2006, 5:39 PM
#6
flakrat avatar

flakrat

New Zenner

Join Date:
Apr 2005
Posts:
74
Plugin Contributions:
0

Re: Paypal IPN "email address not matched"

Thanks Dr Byte,

That worked. Is that a bug? If not, I'm confused why the original code has strtolower on one side of the test and not on the other. Shouldn't it be (like your suggestion) both strtolower or neither?

Now I just need to figure out why Paypal isn't auto returning. The click here to return to the merchants page works, just no auto return. Guess I'll give Paypal support a call on that.

12 Oct 2006, 1:50 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Paypal IPN "email address not matched"

Yes, it's a bug, which has been explained ad nauseum elsewhere, and is fixed in the next bugfix release 1.3.6, which is not yet released.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Oct 2006, 6:06 PM
#8
flakrat avatar

flakrat

New Zenner

Join Date:
Apr 2005
Posts:
74
Plugin Contributions:
0

Re: Paypal IPN "email address not matched"

Thanks again. I promise that I searched the forums before I posted. As usual I must not have searched for the correct keywords.

12 Oct 2006, 10:00 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Paypal IPN "email address not matched"

Glad it's working for you !

(unfortunately, that bug is a result of PayPal's documentation saying one thing and then "doing" another thing :( )

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Oct 2006, 10:28 PM
#10
langer avatar

langer

Totally Zenned

Join Date:
Aug 2004
Location:
Sydney, Australia
Posts:
1,258
Plugin Contributions:
1

Re: Paypal IPN "email address not matched"

Is this problem also in 1.3.2? My store was going fine, and now the IPN has stopped working, and just returns to the checkout_success after payment but no order - Vamoos!! Never seen again.