Orders being Cancelled – Stock Level Not Updating
-
We are currently having issues with orders being canceled even after the payment has been successfully been processed. We use the standard Paypal checkout process, paying to and from verified Paypal accounts.
We are able to checkout properly however after the payment for the products have been processed there are no notifications stating the the payments have been made. No items get moved in to the order Que. After the default time of I believe 60 minutes, the products which have been paid for get marked as cancelled, as if the customer checked out and never paid.
We believe this correlates with the stock levels not updating.
I have checked, and the server has the available Paypal proxies open to allow the IPN to call back to the server.
Any advice on where and what to try next is appreciated.
-
Have you tried it: https://docs.woothemes.com/document/paypal-standard/#section-6 ?
Yes, of course. The status under the IPN history for all transactions are marked as “retrying”.
We have IPN enabled with the url “https://domain.com/?wc-api=WC_Gateway_Paypal”
However in the IPN history when reviewing the transaction message information, I have noticed that the
Notification URL is set to:
https://domain.com/wc-api/WC_Gateway_Paypal/I was however able to bypass the IPN by setting up an ID token. Using an ID token resolved the above issues, however the IPN is still not communicating the way it should.
Enable logging in the PayPal gateway settings and check that to see if the IPN is coming back, and if its valid.
I have enabled logging and I am receiving “INVALID” responses.
What was the full response for that one?
Is there any sensitive data that I need to remove before posting this publicly?
06-09-2016 @ 03:50:42 - Received invalid response from PayPal
If its sandbox and a test order, no.
The transactions were done live using a verified business account and a verified personal account.
Then paste it into notepad and remove the address info.
06-15-2016 @ 11:58:49 - Received invalid response from PayPal 06-15-2016 @ 13:12:29 - Checking IPN response is valid 06-15-2016 @ 13:12:31 - IPN Request: Array ( [body] => Array ( [cmd] => _notify-validate [mc_gross] => 0.13 [invoice] => invoice-2970 [protection_eligibility] => Ineligible [tax] => 0.00 [payer_id] => RHAQ9F38MQ3SY [payment_date] => 08:40:48 Jun 13, 2016 PDT [payment_status] => Completed [charset] => windows-1252 [mc_shipping] => 0.00 [mc_handling] => 0.00 [first_name] => FIRSTNAME [mc_fee] => 0.13 [notify_version] => 3.8 [custom] => {"order_id":2970,"order_key":"wc_order_575ed39820cc9"} [payer_status] => unverified [business] => [email protected] [num_cart_items] => 2 [mc_handling1] => 0.00 [mc_handling2] => 0.00 [verify_sign] => ADa46qmCotB1sRLQmCc3JEvhzRUjAaEjKhWa6CcftAmclBoFggGGruyw [payer_email] => [email protected] [mc_shipping1] => 0.00 [mc_shipping2] => 0.00 [tax1] => 0.00 [tax2] => 0.00 [txn_id] => 8A8855783M3878520 [payment_type] => instant [last_name] => LASTNAME [item_name1] => PRODUCT ( Sold By: LOREM IPSUM ) [receiver_email] => [email protected] [item_name2] => Shipping via Shipping [payment_fee] => 0.13 [quantity1] => 1 [quantity2] => 1 [receiver_id] => B7KKEGHT9JFAA [txn_type] => cart [mc_gross_1] => 0.10 [mc_currency] => USD [mc_gross_2] => 0.03 [residence_country] => US [receipt_id] => 1058-1338-8438-8834 [payment_gross] => 0.13 [ipn_track_id] => 17e0206ab0d6c ) [timeout] => 60 [httpversion] => 1.1 [compress] => [decompress] => [user-agent] => WooCommerce/2.5.5 ) 06-15-2016 @ 13:12:31 - IPN Response: Array ( [headers] => Array ( [server] => Apache [x-frame-options] => SAMEORIGIN [paypal-debug-id] => 31382792991ba [cache-control] => max-age=0, no-cache, no-store, must-revalidate [pragma] => no-cache [content-type] => text/html; charset=UTF-8 [dc] => slc-b-origin-www-2.paypal.com [date] => Wed, 15 Jun 2016 13:12:31 GMT [content-length] => 7 [connection] => close [set-cookie] => Array ( [0] => cwrClyrK4LoCV1fydGbAxiNL6iG=UoYmERCRLJhD0Ya1WTiUoORFoFQatZHyoQmO1ixJUv8uBCRa_v6eeg_I0W1h5f7qJrP1I0a8n6flSDDzqYi2kNU9LKdUMXwnIbPFJH_zJWTikoH0Kg-oBA17MAC-zA9PylK6JxzsXudTL2r7TBY_N33IlPTCuWJIU2QWhqhXGLMQ7mvJdUd3POErNlVBkOrsZCab88pAsUA57p3jg9CjCKBwS0VLcFxr8DAuardAVtP4e9c-Saehp1z2THrJhApTy4IlrdZMEgADO6C1XDgB2uTpNTMwLGrnzgfx28egXae9x9GlViVEQPgyxLkpZR7f_zKNT2v4DzrcwTHWRixmnvEYu8a7GXUlHYSkSB5Vhsw_ckhl333DIqtkCby_If4LCSlGffjE5GL4n1RSw6zg9Q17_ynhrY0EbL5-_JSP7n99AZp2Z5314GiGsUG; domain=.paypal.com; path=/; Secure; HttpOnly [1] => cookie_check=yes; expires=Sat, 13-Jun-2026 13:12:30 GMT; domain=.paypal.com; path=/; Secure; HttpOnly [2] => navcmd=_notify-validate; domain=.paypal.com; path=/; Secure; HttpOnly [3] => navlns=0.0; expires=Fri, 15-Jun-2018 13:12:30 GMT; domain=.paypal.com; path=/; Secure; HttpOnly [4] => X-PP-SILOVER=name%3DLIVE6.WEB.1%26silo_version%3D880%26app%3Dappdispatcher%26TIME%3D1045717335%26HTTP_X_PP_AZ_LOCATOR%3D; Expires=Wed, 15 Jun 2016 13:42:30 GMT; domain=.paypal.com; path=/; Secure; HttpOnly [5] => X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT [6] => AKDC=slc-b-origin-www-2.paypal.com; expires=Wed, 15-Jun-2016 13:42:31 GMT; path=/; secure ) [strict-transport-security] => max-age=63072000 ) [body] => INVALID [response] => Array ( [code] => 200 [message] => OK ) [cookies] => Array ( [0] => WP_Http_Cookie Object ( [name] => cwrClyrK4LoCV1fydGbAxiNL6iG [value] => UoYmERCRLJhD0Ya1WTiUoORFoFQatZHyoQmO1ixJUv8uBCRa_v6eeg_I0W1h5f7qJrP1I0a8n6flSDDzqYi2kNU9LKdUMXwnIbPFJH_zJWTikoH0Kg-oBA17MAC-zA9PylK6JxzsXudTL2r7TBY_N33IlPTCuWJIU2QWhqhXGLMQ7mvJdUd3POErNlVBkOrsZCab88pAsUA57p3jg9CjCKBwS0VLcFxr8DAuardAVtP4e9c-Saehp1z2THrJhApTy4IlrdZMEgADO6C1XDgB2uTpNTMwLGrnzgfx28egXae9x9GlViVEQPgyxLkpZR7f_zKNT2v4DzrcwTHWRixmnvEYu8a7GXUlHYSkSB5Vhsw_ckhl333DIqtkCby_If4LCSlGffjE5GL4n1RSw6zg9Q17_ynhrY0EbL5-_JSP7n99AZp2Z5314GiGsUG [expires] => [path] => / [domain] => .paypal.com [secure] => [httponly] => ) [1] => WP_Http_Cookie Object ( [name] => cookie_check [value] => yes [expires] => 1781356350 [path] => / [domain] => .paypal.com [secure] => [httponly] => ) [2] => WP_Http_Cookie Object ( [name] => navcmd [value] => _notify-validate [expires] => [path] => / [domain] => .paypal.com [secure] => [httponly] => ) [3] => WP_Http_Cookie Object ( [name] => navlns [value] => 0.0 [expires] => 1529068350 [path] => / [domain] => .paypal.com [secure] => [httponly] => ) [4] => WP_Http_Cookie Object ( [name] => X-PP-SILOVER [value] => name=LIVE6.WEB.1&silo_version=880&app=appdispatcher&TIME=1045717335&HTTP_X_PP_AZ_LOCATOR= [expires] => 1465998150 [path] => / [domain] => .paypal.com [secure] => [httponly] => ) [5] => WP_Http_Cookie Object ( [name] => X-PP-SILOVER [value] => [expires] => 1 [path] => /cgi-bin/ [domain] => www.paypal.com ) [6] => WP_Http_Cookie Object ( [name] => AKDC [value] => slc-b-origin-www-2.paypal.com [expires] => 1465998151 [path] => / [domain] => www.paypal.com [secure] => ) ) [filename] => ) 06-15-2016 @ 13:12:31 - Received invalid response from PayPal
See if PayPal support can see anything their side in the logs. This means the request you sent back did not match the request they sent you.
A plugin you have installed could be affecting the requests, but it’s hard to say with the above log only. The log itself looks fine.
- The topic ‘Orders being Cancelled – Stock Level Not Updating’ is closed to new replies.