paytrail / api-documentation

Paytrail Payment API documentation
MIT License
6 stars 11 forks source link

Callback and Redirect URLs max size #17

Closed gusthavosouza closed 2 years ago

gusthavosouza commented 2 years ago

Describe the bug

When creating a payment with an URL that is too long we get an error that {code=400, body={"status":"error","message":"Request payload validation failed."}

Is there any possibility to add to the documentation the max size allowed to each field or maybe adding a better and self explanatory error message?

Thanks!

ghost commented 2 years ago

Hi,

It seems that compared to the old e2 interface, the new API has a lower URL max length limit. It would be helpful to have the maximum length documented as soon as possible. I do also vouch for improving the error messages of the API.

Thank you!

jfrojd-paytrail commented 2 years ago

That error is indeed way too generic, we will look into implementing a fix. The current limitation for the redirectUrls are 300 charactes. CallbackUrls do not have this length limitation.