You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be really nice if the Authorize.net SDK or API had a simple option to truncate data at the max length of any particular element. Given that a request completely fails if ANY element has too many characters it is crucial to check for the length of all data elements, but this involves a lot of work. It would be much simpler if there was an option to have the SDK itself truncate any element's data that is too long.
The text was updated successfully, but these errors were encountered:
Thank you for bringing this to our attention. Unfortunately, truncating data is not something that can be done at this stage. There are many use cases where other merchants might be expecting an error message in case the length validation is violated. But we will take this into consideration in the long run and may be included in future.
As a possible workaround, data truncation can be done at the application level, rather than the SDK, following rules that can be customized specific to your organization.
I certainly understand that the default behavior should not change for the reason you mentioned, but it would definitely be nice to have an option for truncation. While I can perform the truncation myself in application code that requires a detailed analysis of the Authorize.net schema. Many of the fields are simply not important enough to warrant aborting a transaction due to excess string length for my purposes, so ideally an option to globally truncate data and allow opt-in strict enforcement for specific fields would be greatly appreciated.
Hi @dlong500 , thank you for the suggestion. Rest assured, I will relay it to the relevant team and we will see if it can be accommodated in a future release.
It would be really nice if the Authorize.net SDK or API had a simple option to truncate data at the max length of any particular element. Given that a request completely fails if ANY element has too many characters it is crucial to check for the length of all data elements, but this involves a lot of work. It would be much simpler if there was an option to have the SDK itself truncate any element's data that is too long.
The text was updated successfully, but these errors were encountered: