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

3 tháng cách đây
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.
3 tháng cách đây
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
3 tháng cách đây
@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.
3 tháng cách đây
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.
1 tháng cách đây
RomanovM 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.


I am seeing the below error in the paypal logs. Country is set as United States in the Shipping Settings. We have been seeing this issue on and off. I created a new app in PayPal when this happened last time and it resolved the issue. Now we are seeing the issue again. I tried creating a new app and it didnt resolve the issue. Please advise.

{
  "name": "INVALID_REQUEST",
  "message": "Request is not well-formed, syntactically incorrect, or violates schema.",
  "debug_id": "fc5898e28ed01",
  "details": [
    {
      "field": "/purchase_units/@reference_id=='default'/supplementary_data/card/level3/shipping_address/country_code",
      "location": "body",
      "issue": "MISSING_REQUIRED_PARAMETER",
      "description": "A required field / parameter is missing."
    },
    {
      "field": "/purchase_units/@reference_id=='default'/shipping/address/country_code",
      "location": "body",
      "issue": "MISSING_REQUIRED_PARAMETER",
      "description": "A required field / parameter is missing."
    }
  ],
  "links": [
    {
      "href": "https://developer.paypal.com/docs/api/orders/v2/#error-MISSING_REQUIRED_PARAMETER",
      "rel": "information_link",
      "encType": "application/json"
    }
  ]
}
4 tuần cách đây
rakeshg wrote:

I am seeing the below error in the paypal logs. Country is set as United States in the Shipping Settings. We have been seeing this issue on and off. I created a new app in PayPal when this happened last time and it resolved the issue. Now we are seeing the issue again. I tried creating a new app and it didnt resolve the issue. Please advise.

{
  "name": "INVALID_REQUEST",
  "message": "Request is not well-formed, syntactically incorrect, or violates schema.",
  "debug_id": "fc5898e28ed01",
  "details": [
    {
      "field": "/purchase_units/@reference_id=='default'/supplementary_data/card/level3/shipping_address/country_code",
      "location": "body",
      "issue": "MISSING_REQUIRED_PARAMETER",
      "description": "A required field / parameter is missing."
    },
    {
      "field": "/purchase_units/@reference_id=='default'/shipping/address/country_code",
      "location": "body",
      "issue": "MISSING_REQUIRED_PARAMETER",
      "description": "A required field / parameter is missing."
    }
  ],
  "links": [
    {
      "href": "https://developer.paypal.com/docs/api/orders/v2/#error-MISSING_REQUIRED_PARAMETER",
      "rel": "information_link",
      "encType": "application/json"
    }
  ]
}


This error can happen if the customer hasn't entered a Country in the shipping address. Is 'Country' enabled (Customer settings → Address form fields) in your store?
4 tuần cách đây
Country is not enabled in the customer settings.
3 tuần cách đây
Paypal Commerce plugin Sandbox integration on a website http://40.123.209.144:8090/

Error From Paypal : Expected an order id to be passed
Error Log is below.

What could be the reason

Nop.Core.NopException: Failed request (BadRequest): Request is not well-formed, syntactically incorrect, or violates schema.
{
  "name": "INVALID_REQUEST",
  "message": "Request is not well-formed, syntactically incorrect, or violates schema.",
  "debug_id": "f489241b0ac31",
  "details": [
    {
      "field": "/purchase_units/@reference_id=='default'/items/1/image_url",
      "value": "http://40.123.209.144:8090/images/thumbs/0000107_ghoststrike-printed-t-shirts.jpeg",
      "location": "body",
      "issue": "INVALID_PARAMETER_SYNTAX",
      "description": "The value of a field does not conform to the expected format."
    },
    {
      "field": "/purchase_units/@reference_id=='default'/items/0/image_url",
      "value": "http://40.123.209.144:8090/images/thumbs/0000108_ghoststrike-application-pak.png",
      "location": "body",
      "issue": "INVALID_PARAMETER_SYNTAX",
      "description": "The value of a field does not conform to the expected format."
    },
    {
      "field": "/purchase_units/@reference_id=='default'/supplementary_data/card/level3/line_items/1/image_url",
      "value": "http://40.123.209.144:8090/images/thumbs/0000107_ghoststrike-printed-t-shirts.jpeg",
      "location": "body",
      "issue": "INVALID_PARAMETER_SYNTAX",
      "description": "The value of a field does not conform to the expected format."
    },
    {
      "field": "/purchase_units/@reference_id=='default'/supplementary_data/card/level3/line_items/0/image_url",
      "value": "http://40.123.209.144:8090/images/thumbs/0000108_ghoststrike-application-pak.png",
      "location": "body",
      "issue": "INVALID_PARAMETER_SYNTAX",
      "description": "The value of a field does not conform to the expected format."
    }
  ],
  "links": [
    {
      "title": null,
      "href": "https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX",
      "method": null,
      "rel": "information_link",
      "encType": "application/json",
      "mediaType": null
    }
  ]
}
3 tuần cách đây
Arijit wrote:
Paypal Commerce plugin Sandbox integration on a website http://40.123.209.144:8090/

Error From Paypal : Expected an order id to be passed
Error Log is below.

What could be the reason


I assume that https is needed for correct plugin working