Support

Home Forums Event Espresso Premium PayPal Commerce – Expected an order id to be passed

PayPal Commerce – Expected an order id to be passed

Posted: September 22, 2023 at 6:03 am

Viewing 6 reply threads


NCStudio

September 22, 2023 at 6:03 am

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.


Tony

  • Support Staff

September 22, 2023 at 6:15 am

Hi there,

Can you link me to an event I can run a test registration on, please?


NCStudio

September 22, 2023 at 6:38 am

This reply has been marked as private.


NCStudio

September 22, 2023 at 8:25 am

This reply has been marked as private.


Tony

  • Support Staff

September 25, 2023 at 2:10 am

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?


NCStudio

September 25, 2023 at 4:04 am

Tony,

The password is test123

Thanks,
Nichole


Tony

  • Support Staff

September 25, 2023 at 5:05 am

Thank you, can I take a look in the admin so I can review the payment logs?

If that’s ok can you send temp login details over using this form:

https://eventespresso.com/send-login-details/

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.

Event Espresso