Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / IPN issue, notification isn't coming back from PayPal successfully

IPN issue, notification isn't coming back from PayPal successfully

Views: 1,720

Results 1 to 6 of 6
28 Mar 2015, 1:33 PM
#1
leione avatar

leione

New Zenner

Join Date:
Feb 2008
Posts:
17
Plugin Contributions:
0

IPN issue, notification isn't coming back from PayPal successfully

Hello Everyone,

We recently got the IPN problem, which is the normal symptoms such as paypal received payment but no order log recorded in our cart, because we did not edit anything recently, I assume it either cause by paypal or by our server, I got the ipntest result and paypal debug log here, could anyone please help us point out which could cause the problem?

Best Regards

IPNCHECK.PHP - Version 1.3.9

CURL ERROR: Attempted connection on: https://www.paypal.com/cgi-bin/webscr

Trying direct HTTP on port 80 instead ...

FAILED
resource(2) of type (stream)

IPN TESTING - Confirmation/Validation response with fsockopen(): FAILED

Script finished.

35 error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
Array
(
[url] => "https://api-3t.paypal.com/nvp"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.154782
[namelookup_time] => 0.11487
[connect_time] => 0.154825
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
)

EOF

Mar 25 2015 5:27 -- PDT PROCESSING INITIATED.
Preparing to verify transaction via PDT.

The TX token for verification is: Array
(
[main_page] => checkout_process
[referer] => paypal
[tx] => 427149058X616392L
[st] => Completed
[amt] => 16.65
[cc] => USD
[cm] => zenid=fdb5fc02b1974e326af9f0eb478ab963
[item_number] => *********
)

Mar 25 2015 5:27 -- IPN INFO - POST VARS to be sent back (unsorted) for validation (using CURL):
To: www.paypal.com:80
Array
(
[cmd] => _notify-sync
[tx] => 427149058X616392L
[at] => 0YJvD**********Vfv5y
)

Mar 25 2015 5:27 -- CURL OPTS: Array
(
[10002] => https://www.paypal.com/cgi-bin/webscr
[47] => 1
[10015] => cmd=_notify-synch&tx=427149058X616392L&at=0YJvDeZSR6i-NT_0hzzGhrDQCaEzpQEZTzRtDLuEPAiZtTbmbSd6a7Vfv5y
[13] => 45
[78] => 30
[41] => 0
[42] => 0
[52] => 0
[19913] => 1
[64] => 0
[81] => 2
[75] => 1
[74] => 1
[84] => 2
[10018] => Zen Cart(R) - IPN Postback
)

Mar 25 2015 5:27 -- CURL response:

Mar 25 2015 5:27 -- IPN INFO (cl) - Confirmation/Validation response

Mar 25 2015 5:27 -- IPN NOTICE: Could not get usable response via CURL. Trying fsockopen() as fallback.

Mar 25 2015 5:27 -- IPN INFO - POST VARS to be sent back (unsorted) for validation (using fsockopen):
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] => 427149058X616392L
[at] => 0YJvD**********Vfv5y
)

Mar 25 2015 5:27 -- IPN INFO (fs) - Confirmation/Validation response

Mar 25 2015 5:27 -- PDT Returned INVALID Data. Must wait for IPN to process instead.
Array
(
)

28 Mar 2015, 1:40 PM
#2
leione avatar

leione

New Zenner

Join Date:
Feb 2008
Posts:
17
Plugin Contributions:
0

Re: IPN issue, notification isn't coming back from PayPal successfully

Mar 25 2015 5:27 -- IPN PROCESSING INITIATED.
*** Originating IP: 173.0.81.1
*** Browser/User Agent: PayPal IPN ( https://www.paypal.com/ipn )

Mar 25 2015 5:27 -- Breakpoint: 0 - Initializing debugging.

Mar 25 2015 5:27 -- Breakpoint: Flag Status:
isECtransaction = 0
isDPtransaction = 0

Mar 25 2015 5:27 -- IPN INFO - POST VARS received (sorted):
Array
(
[address_city] => London
[address_country] => United Kingdom
[address_country_code] => GB
[address_name] => ***
[address_state] =>
[address_status] => confirmed
[address_street] => ***
[address_zip] => ***
[business] => ****
[charset] => gb2312
[custom] => zenid=fdb5fc02b1974e326af9f0eb478ab963
[first_name] =>
[handling_amount] => 0.00
[ipn_track_id] => 6c9d3ee3ab41e
[item_name] => All the items in your shopping basket (see details in the store and on your store receipt).
[item_number] =>
[last_name] =>
[mc_currency] => USD
[mc_fee] => 1.03
[mc_gross] => 16.65
[notify_version] => 3.8
[payer_email] => *****
[payer_id] => *****
[payer_status] => verified
[payment_date] => 03:27:10 Mar 25, 2015 PDT
[payment_fee] => 1.03
[payment_gross] => 16.65
[payment_status] => Completed
[payment_type] => instant
[protection_eligibility] => Eligible
[quantity] => 1
[receiver_email] => ******
[receiver_id] =>******
[residence_country] => GB
[shipping] => 0.00
[tax] => 0.00
[transaction_subject] => zenid=fdb5fc02b1974e326af9f0eb478ab963
[txn_id] => 427149058X616392L
[txn_type] => web_accept
[verify_sign] => AXtT8xrhaNWYUtgcM4ub1XqO1J5hAiciybqWUnYWQHIon31dXIq-7D-Q
)

Mar 25 2015 5:27 -- IPN INFO - POST VARS to be sent back (unsorted) for validation (using CURL):
To: www.paypal.com:80
Array
(
[cmd] => _notify-validate
[mc_gross] => 16.65
[protection_eligibility] => Eligible
[address_status] => confirmed
[payer_id] => VU6DRPPL5BJN6
[tax] => 0.00
[address_street] => ******
[payment_date] => 03:27:10 Mar 25, 2015 PDT
[payment_status] => Completed
[charset] => gb2312
[address_zip] => ******
[first_name] => ******
[mc_fee] => 1.03
[address_country_code] => GB
[address_name] => ******
[notify_version] => 3.8
[custom] => zenid=fdb5fc02b1974e326af9f0eb478ab963
[payer_status] => verified
[business] => ******
[address_country] => United Kingdom
[address_city] => London
[quantity] => 1
[verify_sign] => AXtT8xrhaNWYUtgcM4ub1XqO1J5hAiciybqWUnYWQHIon31dXIq-7D-Q
[payer_email] => ******
[txn_id] => ******
[payment_type] => instant
[last_name] =>
[address_state] =>
[receiver_email] => ******
[payment_fee] => 1.03
[receiver_id] => SUF88ZN9HQRJJ
[txn_type] => web_accept
[item_name] => All the items in your shopping basket (see details in the store and on your store receipt).
[mc_currency] => USD
[item_number] => ******
[residence_country] => GB
[handling_amount] => 0.00
[transaction_subject] => zenid=fdb5fc02b1974e326af9f0eb478ab963
[payment_gross] => 16.65
[shipping] => 0.00
[ipn_track_id] => 6c9d3ee3ab41e
)

Mar 25 2015 5:27 -- CURL OPTS: Array
(
[10002] => https://www.paypal.com/cgi-bin/webscr
[47] => 1
[10015] => cmd=_notify-validate&mc_gross=16.65&protection_eligibility=Eligible&address_status=confirmed&payer_id=VU6DRPPL5BJN6&tax=0.00&address_street&payment_date=03%3A27%3A10+Mar+25%2C+2015+PDT&payment_status=Completed&charset=gb2312&address_zip=&first_name=&mc_fee=1.03&address_country_code=GB&address_name=&notify_version=3.8&custom=zenid%3Dfdb5fc02b1974e326af9f0eb478ab963&payer_status=verified&business=com&address_country=United+Kingdom&address_city=London&quantity=1&verify_sign=AXtT8xrhaNWYUtgcM4ub1XqO1J5hAiciybqWUnYWQHIon31dXIq-7D-Q&payer_email=m&txn_id=427149058X616392L&payment_type=instant&last_name=ress_state=&receiver_email=om&payment_fee=1.03&receiver_id=SUF88ZN9HQRJJ&txn_type=web_accept&item_name=All+the+items+in+your+shopping+basket+%28see+details+in+the+store+and+on+your+store+receipt%29.&mc_currency=USD&item_number=F%ndling_amount=0.00&transaction_subject=zenid%3Dfdb5fc02b1974e326af9f0eb478ab963&payment_gross=16.65&shipping=0.00&ipn_track_id=6c9d3ee3ab41e
[13] => 45
[78] => 30
[41] => 0
[42] => 0
[52] => 0
[19913] => 1
[64] => 0
[81] => 2
[75] => 1
[74] => 1
[84] => 2
[10018] => Zen Cart(R) - IPN Postback
)

Mar 25 2015 5:27 -- CURL response:

Mar 25 2015 5:27 -- IPN INFO (cl) - Confirmation/Validation response

Mar 25 2015 5:27 -- IPN NOTICE: Could not get usable response via CURL. Trying fsockopen() as fallback.

Mar 25 2015 5:27 -- IPN INFO - POST VARS to be sent back (unsorted) for validation (using fsockopen):
To: www.paypal.com:80
POST /cgi-bin/webscr HTTP/1.1
Host: https://www.paypal.com
Content-type: application/x-www-form-urlencoded
Content-length: 1210
Connection: close

Array
(
[cmd] => _notify-validate
[mc_gross] => 16.65
[protection_eligibility] => Eligible
[address_status] => confirmed
[payer_id] => VU6DRPPL5BJN6
[tax] => 0.00
[address_street] => ******
[payment_date] => 03:27:10 Mar 25, 2015 PDT
[payment_status] => Completed
[charset] => gb2312
[address_zip] => [first_name] =>
[mc_fee] => 1.03
[address_country_code] => GB
[address_name] => ******
[notify_version] => 3.8
[custom] => zenid=fdb5fc02b1974e326af9f0eb478ab963
[payer_status] => verified
[business] => ******
[address_country] => United Kingdom
[address_city] => London
[quantity] => 1
[verify_sign] => AXtT8xrhaNWYUtgcM4ub1XqO1J5hAiciybqWUnYWQHIon31dXIq-7D-Q
[payer_email] =>
[txn_id] => 427149058X616392L
[payment_type] => instant
[last_name] =>
[address_state] =>
[receiver_email] =>
[payment_fee] => 1.03
[receiver_id] => SUF88ZN9HQRJJ
[txn_type] => web_accept
[item_name] => All the items in your shopping basket (see details in the store and on your store receipt).
[mc_currency] => USD
[item_number] => ******
[residence_country] => GB
[handling_amount] => 0.00
[transaction_subject] => zenid=fdb5fc02b1974e326af9f0eb478ab963
[payment_gross] => 16.65
[shipping] => 0.00
[ipn_track_id] => 6c9d3ee3ab41e
)

Mar 25 2015 5:27 -- IPN INFO (fs) - Confirmation/Validation response

Mar 25 2015 5:27 -- Breakpoint: 1 - Collected data from PayPal notification

Mar 25 2015 5:27 -- IPN WARNING :: Transaction was NOT marked as VERIFIED. Keep this report for potential use in fraud investigations.
IPN Info:

Mar 25 2015 5:27 -- IPN FATAL ERROR :: Transaction did not validate. ABORTED.

28 Mar 2015, 1:51 PM
#3
leione avatar

leione

New Zenner

Join Date:
Feb 2008
Posts:
17
Plugin Contributions:
0

Re: IPN issue, notification isn't coming back from PayPal successfully

curltester result:

35 error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure
Array
(
[url] => "https://api-3t.paypal.com/nvp"
[content_type] =>
[http_code] => 0
[header_size] => 0
[request_size] => 0
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.154782
[namelookup_time] => 0.11487
[connect_time] => 0.154825
[pretransfer_time] => 0
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => -1
[starttransfer_time] => 0
[redirect_time] => 0
)

EOF

I knew we should use paypal express checkout to instead Website Payments Standard, however, we still want use website payments standard to receive the card payment. :(

28 Mar 2015, 2:49 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: IPN issue, notification isn't coming back from PayPal successfully

Almost certainly this:

http://www.zen-cart.com/showthread.php?214916-Important-announcement-about-POODLE-and-payment-security

It's a good idea to subscribe to the Release Announcements forum.

I'd be interested in the business reason that keeps you from switching to Express.

28 Mar 2015, 3:03 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: IPN issue, notification isn't coming back from PayPal successfully

Seeing some information that doesn't help ME but may help others to help you.

Been a while since I've had to troubleshoot this part of the store. So, you're saying you have a need to use Website Payments Standard, please explain that need so that a way out of this can be found.

Appears in one of the tests, which is part of the info that I wasn't sure about, that SSL3 is used... Makes me wonder if the fixes of: http://www.zen-cart.com/showthread.php?214916-Important-announcement-about-POODLE-and-payment-security
Were applied?

The fact that CURL appears to be having an issue (again not sure if SSL3 related or if the "latest" version of the curltester is being used which is already incorporated into ZC 1.5.1 and more recent versions are available from the same location of say ZC 1.5.4. There may also be changes that need to be applied to the paypal files to support continued use through ZC 1.5.1.

I really am only making suggestions from potential issues and observations on this one. I don't have a direct answer, but am posing other areas to investigate as part of the solution.

28 Mar 2015, 3:46 PM
#6
leione avatar

leione

New Zenner

Join Date:
Feb 2008
Posts:
17
Plugin Contributions:
0

Re: IPN issue, notification isn't coming back from PayPal successfully

Hello,

Stevesh and mc12345678,

Thanks for your guys reply.

I have already comment-out the CURLOPT_SSLVERSION as DrByte suggested

/includes/modules/payment/paypal/paypal_curl.php around line 58
/includes/modules/payment/authorizenet_aim.php around line 600
/includes/modules/payment/authorizenet_echeck.php around line 589
/includes/modules/payment/linkpoint_api/class.linkpoint_api.php around line 309

However, it's seems the problem still there, could you guys give more suggestions please?

I have contact my server and they state that both port 80 and port 433 are opened for both side.

I guess may be they did any changes on their firewall setting, because it was ok weeks ago, and still waiting for their checking.

Regards