-
Notifications
You must be signed in to change notification settings - Fork 4
"We can't place the order" at PayPal Review Step #1
Comments
So it looks like there's a 40 character limit being imposed somewhere? I propose we add a test to ensure that our codes are no longer than 40 characters, and trim them down if they are. |
Renamed the carrier code from "meanbee_royalmail" to "rm" to save some characters in the short term. Unlikely but still more likely this will then conflict with another shipping extension. There is also a risk that with the method the string is still too long. We should spend some time creating shorter method codes. It may mean we have to may every method code from the Royal Mail library to a shorter version within the Magento extension. This is bad for future updates with new methods. But we don't want to lose the clarity that the full code provides in the library. @punkstar There is a risk that the first 40 characters may not be unique between different methods. All of the meanbee_royalmail_parcelforceworldwideexpress* methods would experience this problem. some of these methods will still break even with the carrier being rm. By doing rm & truncating the code though we might make it under the limit. This pull request only does RM for now but I can't spend any more time on it today. |
… format. With this control, we use a dictionary to shorten method codes. Magento fails with longer method codes, presumably because of length of database fields. Fixes #1
We've had a report of this error on PayPal review step when clicking place order.
It's been identified as related to magento/magento2#5021
It appears that checkout doesn't complete if the carrier and method code are too long when concatenated. We see this because the code is truncated:
The text was updated successfully, but these errors were encountered: