I am trying to upgrade from PayPal Express to PayPal Commerce and I am getting an error “Expected an order id to be passed” when trying to pay. After that it is the showing and Invalid string length error which is below also. Do you know what would be causing this?
Got an error response (AJAX): There was an error with this payment. See the logs for details.; Error: Expected an order id to be passed
name INVALID_REQUEST
message Request is not well-formed, syntactically incorrect, or violates schema.
debug_id 7715e0f4b357e
details
field /purchase_units/@reference_id==’default’/amount/value
value 42.8
location body
issue INVALID_STRING_LENGTH
description The value of a field is either too short or too long.
field /purchase_units/@reference_id==’default’/amount/breakdown/tax_total/value
value 2.8
location body
issue INVALID_STRING_LENGTH
description The value of a field is either too short or too long.
Hmm, so the problem is there are rouge characters on the Ajax request sent to pull in the order_id from PayPal and those don’t belong within the request, which then breaks the request to PayPal.
The problem is I can’t see where they are coming from currently and the details I logged previously don’t help.
The event has now been password protected, can you post the password so I can run some more tests, please?
I may need to add some debug code to the site to narrow this down some more so if you have FTP credentials (and your ok sending them over) please include those within the form.
Viewing 6 reply threads
The support post ‘PayPal Commerce – Expected an order id to be passed’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.
Support forum for Event Espresso 3 and Event Espresso 4.