symphonists / paypal_payments

Extension for Symphony CMS for processing and logging transaction made with PayPal Website Payments Standard.
http://makenosound.com/
Other
18 stars 12 forks source link

PayPal payments extension with simpleCart.js #12

Closed P233 closed 3 years ago

P233 commented 11 years ago

I am building a Symphony CMS Ecommerce site with PayPal payments extension and simpleCart.js. But I didn't use the Reroute to PayPal filter, payment redirection link is generated by the simpleCart.js. Once I paid successfully, PayPal will redirect to the success page and I will get the following error:

Fatal error: Call to a member function get() on a non-object in /extensions/paypal_payments/events/event.paypal_payments_ipn.php on line 225

I can find a record in the IPN history, but the Payment status is "Unclaimed". Could you give me some clues to solve this problem please? Thanks

P233 commented 11 years ago

Sorry, I misunderstood return_url and nofify_url when I asked the previous question. But I still can not make this extension works correctly.

I can sure that the Paypal IPN (including invoice value) is sent successfully, but this extension doesn't save any data. Here is the IPN content:

I've spent a few days on this problem. I would really appreciate if anyone can give me some advices :) thanks

--------------------------------------------------------------------------------
[09/02/2013 6:45 AM] - https://www.sandbox.paypal.com/cgi-bin/webscr (curl)
--------------------------------------------------------------------------------
HTTP/1.1 100 Continue

HTTP/1.1 200 OK
Date: Mon, 02 Sep 2013 13:45:00 GMT
Server: Apache
X-Frame-Options: SAMEORIGIN
Set-Cookie: c9MWDuvPtT9GIMyPc3jwol1VSlO=F56ehSLnAKu59USsv5V2qHE2LAAOR4VR8vfKGIwn3nJ7oMdDNKA7DlOuTwIlmHInuUg24F2H79t8kEogUZT_jjificw7m-sqIR7Q1UfhqVwIxvKkQRoqIJ_eQw1xtm-embrJvIK2BvVlOaLHRANkaXQk8dxRrvC8mKksdA9ybZb50wIZLqeZYT4UejUSqkV9f2twgkZWghGWRPUyRZawq--3ynGKkqd-CJCbEW7HWYFnxfpl0yJU9E3zjiOvTy4AZVxoFr0sWwvFl6DVg774a3SH3EnPksn43TNZ2TCXo3qlwEPIsYI1TL7fXQwgqbLAhn7_idx5RUEsKhNuZPEoqV1pCMl43at59tRU3uv05GMSkdbBh5W96vFOt3CyKqtwJuWOB-ipwWLa5KtPEy2bCr0rDUPaytCgFneLQmxLm-32HDMw9FqibPL_4rC; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: cookie_check=yes; expires=Thu, 31-Aug-2023 13:45:01 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: navlns=0.0; expires=Sun, 28-Aug-2033 13:45:01 GMT; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: Apache=10.72.109.11.1378129500677141; path=/; expires=Wed, 26-Aug-43 13:45:00 GMT
X-Cnection: close
Set-Cookie: X-PP-SILOVER=name%3DSANDBOX3.WEB.1%26silo_version%3D880%26app%3Dslingshot%26TIME%3D1553343570; domain=.paypal.com; path=/; Secure; HttpOnly
Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT
Set-Cookie: Apache=10.72.128.11.1378129500665216; path=/; expires=Wed, 26-Aug-43 13:45:00 GMT
Vary: Accept-Encoding
Strict-Transport-Security: max-age=14400
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8

VERIFIED
--------------------------------------------------------------------------------
mc_gross 3.98
invoice 11111222233333
protection_eligibility Eligible
address_status confirmed
item_number1 1
payer_id SATGKLKYCJ8TN
tax 0.00
address_street 1 Main St
payment_date 06:44:58 Sep 02, 2013 PDT
payment_status Pending
charset windows-1252
address_zip 95131
mc_shipping 0.00
mc_handling 0.00
first_name Peiwen
address_country_code US
address_name Peiwen Lu
notify_version 3.7
custom
payer_status verified
business lvpeiwen-facilitator@gmail.com
address_country United States
num_cart_items 1
mc_handling1 0.00
address_city San Jose
verify_sign ANg6yipzz2bC3b4yWTVpQClmlYBMAwtfc.VArYxexSqlBzVhwZno2gcP
payer_email p233@mailinator.com
mc_shipping1 0.00
tax1 0.00
txn_id 8H1926907W469424B
payment_type instant
last_name Lu
address_state CA
item_name1 Product-3
receiver_email lvpeiwen-facilitator@gmail.com
quantity1 2
receiver_id D7VR2AUHDKUVC
pending_reason multi_currency
txn_type cart
mc_gross_1 3.98
mc_currency GBP
residence_country US
test_ipn 1
transaction_subject
payment_gross
ipn_track_id c7fbab8fd7546