Ok, I'm back asking for help again :)
I had a chance to go through that log file, and it seems the problem might be because the IPN is returning an unrecognized txn_type. Looking through the ipn_main_handler.php file I gather that it is expecting a "unique" or "express_checkout" or one of the many other types, none of which are "web_accept" so it gets interpreted as "unknown". Is this my problem?
Code:
Jan 07 2007 18:15 -- IPN WARNING:: Could not establish txn type unknown
postdata=txn_type=web_accept
Here's the whole file (edited where the info might be sensitive for some reason):
Code:
Jan 07 2007 18:15 -- IPN NOTICE::ipn_application_top -> language files okay
Jan 07 2007 18:15 -- IPN INFO - POST VARS received:
txn_type=web_accept
&payment_date=18:15:25 Jan 07, 2007 PST
&last_name=Fakename
&residence_country=CA
&pending_reason=unilateral
&item_name=SmartieParts Purchase
&payment_gross=
&mc_currency=CAD
&[email protected]
&payment_type=instant
&verify_sign=[removed just in case]
&payer_status=unverified
&test_ipn=1
&tax=0.00
&[email protected]
&txn_id=0
&quantity=1
&[email protected]
&first_name=Steven
&payer_id=[removed just in case]
&item_number=
&payment_status=Pending
&shipping=0.00
&mc_gross=38.42
&custom=zenid=[removed just in case]
&charset=windows-1252
¬ify_version=2.1
&cmd=_notify-validate
Jan 07 2007 18:15 -- IPN INFO - POST VARS sent back:
POST /cgi-bin/webscr HTTP/1.1
Host: www.sandbox.paypal.com
Content-type: application/x-www-form-urlencoded
Content-length: 677
Connection: close
txn_type=web_accept
&payment_date=18:15:25 Jan 07, 2007 PST
&last_name=Fakename
&residence_country=CA
&pending_reason=unilateral
&item_name=SmartieParts Purchase
&payment_gross=
&mc_currency=CAD
&[email protected]
&payment_type=instant
&verify_sign=[removed just in case]
&payer_status=unverified
&test_ipn=1
&tax=0.00
&[email protected]
&txn_id=0
&quantity=1
&[email protected]
&first_name=Steven
&payer_id=[removed just in case]
&item_number=
&payment_status=Pending
&shipping=0.00
&mc_gross=38.42
&custom=zenid=[removed just in case]
&charset=windows-1252
¬ify_version=2.1
&cmd=_notify-validate
Jan 07 2007 18:15 -- IPN INFO - CURL INFO confirmation report
HTTP/1.1 200 OK
,Date: Mon, 08 Jan 2007 02:15:30 GMT
,Server: Apache/1.3.27 (Unix) mod_ssl/2.8.12 OpenSSL/0.9.7a PHP/4.3.2
,Set-Cookie: cookie_check=yes; expires=Thu, 05-Jan-2017 02:15:31 GMT; path=/; domain=.paypal.com
,Set-Cookie: Apache=24.67.117.185.98631168222530910; path=/; expires=Wed, 31-Dec-36 02:15:30 GMT
,Connection: close
,Transfer-Encoding: chunked
,Content-Type: text/html; charset=UTF-8
,
,8
,VERIFIED
,
Jan 07 2007 18:15 -- Breakpoint: 1
Jan 07 2007 18:15 -- Breakpoint: 2
Jan 07 2007 18:15 -- IPN NOTICE::Processing SANDBOX transaction.
Jan 07 2007 18:15 -- Breakpoint: 3
Jan 07 2007 18:15 -- Breakpoint: 4 txn_type=unknown ordersID = 0 IPN_id=0
Jan 07 2007 18:15 -- IPN DEBUG::uniqueness-test. Relevant data from POST:
txn_type = unknown
parent_txn_id =
txn_id = 0
Jan 07 2007 18:15 -- IPN NOTICE::Set transaction type = unknown
POST data:
txn_type=web_accept
&payment_date=18:15:25 Jan 07, 2007 PST
&last_name=Fakename
&residence_country=CA
&pending_reason=unilateral
&item_name=SmartieParts Purchase
&payment_gross=
&mc_currency=CAD
&[email protected]
&payment_type=instant
&verify_sign=[removed just in case]
&payer_status=unverified
&test_ipn=1
&tax=0.00
&[email protected]
&txn_id=0
&quantity=1
&[email protected]
&first_name=Steven
&payer_id=[removed just in case]
&item_number=
&payment_status=Pending
&shipping=0.00
&mc_gross=38.42
&custom=zenid=[removed just in case]
&charset=windows-1252
¬ify_version=2.1
&cmd=_notify-validate
Jan 07 2007 18:15 -- Breakpoint: 5 txn_type=unknown
Jan 07 2007 18:15 -- IPN WARNING:: Could not establish txn type unknown
postdata=txn_type=web_accept
&payment_date=18:15:25 Jan 07, 2007 PST
&last_name=Fakename
&residence_country=CA
&pending_reason=unilateral
&item_name=SmartieParts Purchase
&payment_gross=
&mc_currency=CAD
&[email protected]
&payment_type=instant
&verify_sign=[removed just in case]
&payer_status=unverified
&test_ipn=1
&tax=0.00
&[email protected]
&txn_id=0
&quantity=1
&[email protected]
&first_name=Steven
&payer_id=[removed just in case]
&item_number=
&payment_status=Pending
&shipping=0.00
&mc_gross=38.42
&custom=zenid=[removed just in case]
&charset=windows-1252
¬ify_version=2.1
&cmd=_notify-validate
- Steven