cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Complete net.authorize.data.Order Description Character Encoding Specifications?

I know of the limit to 255 characters from the web documentation, but in the past and again recently this SDK https://github.com/AuthorizeNet/sdk-java has been throwing exceptions when I Merchant.postTransaction() Orders with Descriptions that contain ampersands (&) or apostrophes (').

 

The quick brute force solution is usually to just URL Encode this specific description content to get it through the API, but what are the true specs for this data?

 

Apache Utilities like escapeXML() or escapeJavascript() don't seem to match what this API layer level is expecting.  The in the past I've forked the SDK to change when/where/how it encodes the final POST request, but that isn't a long term solution when people pull in the offical SDK from a repository and trigger this error.

 

Is there a more technical low level equivalent to

https://developer.authorize.net/api/reference/index.html#payment-transactions-charge-a-credit-card

that is a closer match to the Java SDK?

 

~Thanks

richardrega
Member
2 REPLIES 2

I have this problem too,

Am too facing the same issue from past few days. Hope you guys can sortit out. Thanks and Regards, Alex Parkar.