PayPal commerce error: "Expected an order id to be passed" showing in 4.70.5

17 часов назад
davidwaller wrote:
Nop.Core.NopException: Failed request (BadRequest): Request is not well-formed, syntactically incorrect, or violates schema.


Well, I see two different errors in these log records:
1.  Your "Merchant ID" does not conform to the expected format. Usually it looks like "2UP72RCCHVA4L" (letters and numbers), but in your case it's too long and numbers only. Perhaps you should contact PayPal support.
2. Postal code shouldn't contain spaces. All settings in the admin area are trimming (spaces at the end of the line are removed) when saving, but in your case there is a space in the middle of the code, so you should edit it yourself.
12 часов назад
Thank you. I can check the Merchant Id with the client but UK postcodes have a space in the middle.

https://ideal-postcodes.co.uk/guides/uk-postcode-format
11 часов назад
@davidwaller Just an idea: verify that the country associated with ships_from_postal_code is indeed UK, as paypal applies country-specific restrictions on postal codes.
10 часов назад
Olga wrote:
@davidwaller Just an idea: verify that the country associated with ships_from_postal_code is indeed UK, as paypal applies country-specific restrictions on postal codes.


Thanks for the tip. Admin/Setting/Shipping Shipping origin is set for UK.