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"
}
]
}