-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PayPal Error - 'Unable To Place Order' Message - M2.1.5 #9116
Comments
Hi, @col-be, please provide additional details, like transaction details log, browser console log and order status. |
There seems to exist an inconsistency in processing exceptions by Magento2 if it happens at a certain point during the creation an order. |
Paypal logs aren't switched on. Nothing recorded in exceptions.log. Let me know if there are any other logs that can be looked at. Investigating this further, the error doesn't appear to be an issue with configurable products in themselves. It appears to be an issue with configurable products which, when purchased, the stock quantity is reduced from 1 to 0 (out of stock). Described by customer today as: I have tried to purchase the following items on your website - the first being out of stock when I came to pay via paypal but payment has actually been taken, and the second said 'order cannot be placed' but again a payment has gone through via paypal. |
Please, enable debug log and provide transaction details like a response from PayPal. |
From debug.log. The main thing is: [2017-04-04 11:32:51] main.DEBUG: cache_invalidate: {"method":"GET","url":"https://website.co.uk/paypal/express/return/?token=EC-8WR37099B8892863M&PayerID=8N8UPHJRXR7ZQ","invalidateInfo":{"tags":["catalog_product_3050","FPC"],"mode":"matchingTag"},"is_exception":false} [] The rest from around the time of the transaction: [2017-04-04 11:32:49] main.DEBUG: SQL Select: {"0":"(website_id = :website_id)","1":"AND (dest_country_id = :country_id AND dest_region_id = :region_id AND STRCMP(LOWER(dest_city),LOWER(:city))= 0 AND :postcode LIKE dest_zip )","2":"AND (condition_name = :condition_name)","3":"AND (condition_from_value < :condition_value)","4":"AND (condition_to_value >= :condition_value)","is_exception":false} [] |
Did you enable debug mode for PayPal? I don't see transaction details for PayPal. |
Debug logs weren't switched on for this transaction. I do now have the logs from Paypal for each transaction though. But they contain sensitive information; I don't know how to send them to you. |
You can remove all sensitive information, like address, merchant, card details, etc. I need to see response codes, card verifications and messages from PayPal. |
Thanks. These are the details for the 3 transactions. Event Type API Event Type API Event Type API |
Update - this error is not happening with products with custom options going from qty 1 --> 0. It appears to be happening randomly with products with custom options (not configurable products in our case) of any quantity (not necessarily them going out of stock). I have another case of it happening, and will be able to get the Paypal logs for it tomorrow. |
I see error code from PayPal in one transaction:
The error code Other transactions are looking good, did you have troubles with these transactions or only with mentioned one transaction? |
The 10486 error was an explicit decline by the customers' bank as far as I am aware, and not to do with the issue we are experiencing. Here are the details of another issue we had on Monday night. This is for a simple product with custom options. The customer describes the issue as: when I tried to order the item and pay through paypal a message came up on your site saying the order couldn't be processed, I tried again and it said there was an error. I never received an order confirmation either so assumed the order had not gone through, but then found payment had been sent from Paypal, Again, for this order, we received the order in the backend admin, we received payment, but the order confirmation email wasn't sent. One question- for M2 Paypal what should the notification url be set as? The PayPal logs from this transaction are as follows: Event Type API |
You don't need to set it manually, Magento does it. You just need to enable IPN in your PayPal account and specify any URL (it will be overridden by request) or set URL as |
To find original of the issue, you need to log all exceptions what are happening during place order.
|
Ok. So just to be clear, in PaymentInformationManagement.php there is a catch block:
which is changed to:
And the same is done in GuestPaymentInformationManagement.php? Where will this be logged to? exceptions.log? |
Yes, you are right.
Yes, all exceptions will be in the |
Ok, I have made those changes to our production site. Will update in due course. |
But, according to the murphy's law, nothing happend once you did those changes..... |
Yes! But it happened today. PayPal, with a product with custom options. Nothing written to exceptions.log, but we have the following in debug.log: [2017-04-10 14:43:40] main.DEBUG: cache_invalidate: {"method":"POST","url":"https://website.co.uk/paypal/express/placeOrder/","invalidateInfo":{"tags":["catalog_product_2328","FPC"],"mode":"matchingTag"},"is_exception":false} [] |
We have this in system.log: [2017-04-10 14:33:33] main.CRITICAL: Exception message: We can't initialize Express Checkout. |
Any update on this? We had this happen again this morning with the same stacktrace. |
We just updated to 2.1.6 from 2.0.10 and are currently experiencing this as well. system.log shows: We do have "Skip Order Review Step" set to "Yes" in Paypal config. Perhaps this is contributing to the issue(s)? We've been trying to figure out this issue for the past couple of days and have Paypal debug on, here's the output:
Then about 30 seconds later:
Followed by within about 10 seconds:
Currently have Paypal in-context disabled and not transferring line-items. I've tried both transferring line-items and not, same issue. I did notice on the second to last debug log entry the following: |
I just noticed something particular about our "This product is out of stock" error quoted above. Right before the error in Quote.php, it had attempted to: I checked for item_id 19686 in table quote_item and it does not exist. The order and items are in sales_order and sales_order_item but that one (of the three items ordered, the other configurables as well) are now missing from quote_item. Also the item associated with the missing 19686 (a simple of a configurable) still has a positive quantity in admin but its stock status now shows as "Out of Stock". This change happened at some point in the order creation process since item was showing in-stock at the time of order. |
We just figured out why we were seeing a positive quantity yet "out of stock" on item_id 19686 and probably points to the reason an out of stock exception was thrown during the place order process... we now have duplicate entries in cataloginventory_stock_status. Each product_id in cataloginventory_stock_status has an entry with The duplicate entries in cataloginventory_stock_status that are now leading to differing values seems to be related to: #1002 while the Paypal out of stock issue may be related to #6296 in which the problem was traced to a repeat inventory deduction attempt when "Skip Order Review Step" is set to true. I've cleaned up our duplicate entries in cataloginventory_stock_status and have implemented the solution in #6296 to see if that clears up our Paypal issues on 2.1.6. |
@col-be, thank you for your report. |
Nothing is fixed!!!! M2 2.2.2 is showing the same problem. |
It is a mess!!!!!!!!!!!!! |
Hi, is it still not solved yet? |
This issue is still present in 2.1.9. Verified on 2/14/2018. |
In our case, Paypal is only working when the order is placed from guest, otherwise, if the customer is logged in, it does not work, this is the error log: [2018-02-16 09:19:54] main.CRITICAL: Exception message: A wrong PayPal Express Checkout Token is specified. We have tried to print the variable $setToken and the result of $this->_getSession()->getExpressCheckoutToken(); and seems, that while $setToken has values like EC-4Y810608VE63 |
Hi @Cristiano81, we are experiencing same issue. Did you manage it and resolved it? |
Hi @Cristiano81 @syntheticlab we are also getting exactly the same issue, but only on production we cant replicate it locally, did you get to know what was causing it? |
Hi everyone, for our customer's website the problem was caused by an
empty mandatory field (region)
Il 12/09/2018 19:51, Jupagar77 ha scritto:
…
Hi @Cristiano81 <https://github.com/Cristiano81> @syntheticlab
<https://github.com/syntheticlab> we are also getting exactly the same
issue, but only on production we cant replicate it locally, did you
get to know what was causing it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#9116 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Afl3U4HJixkFPDcgJscQaPW3kb78a78qks5uaUmigaJpZM4MyCQp>.
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
Mail priva di virus. www.avg.com
<http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
|
Hi Magento Team, We have upgraded a store from Magento 2.2.6 to 2.3.2. The upgrade process should smooth the shop experience and not introduced any bug which is very terrible you know. we facing an issue with payment deducted in the PayPal from the customer but nothing happens in the Magento backend and we are not even able to see the order data in the backend. I have been closely monitoring this and came to know that DoExpressCheckoutPayment is not sending an email and phone number field to Paypal. I am not sure whether this is the root cause of an order that doesn't generate after successful payment in PayPal. Just a side note, this is not happening with all customers and I think it's only happening sometimes with an old customer account but it's very terrible you know... I have also found that GetExpressCheckoutDetails missing a field called SHIPTOPHONENUM while getting a response. Now, I am under the impression that
We can't save the address: Email has a wrong format I'd like to have some help on this and then I will go further to edit core files for the above thoughts. Any quick help will be highly appreciated. Regards, |
Preconditions
Steps to reproduce
Expected result
Actual result
This was apparently present in Magento 2.1, highlighted here in issue 5327 but fixed in MAGETWO-56699.
But we are still seeing it in 2.1.5. In our installation, the relevant files (e.g. app/code/Magento/Catalog/Model/Product.php) include the changes made in commit 56699.
We have just upgraded from Magento 1.7.0.2, and feeling bugged out that we are still having to deal with issues in M2.
Any ideas?
The text was updated successfully, but these errors were encountered: