Reply
Highlighted
Member
Posts: 8
Registered: ‎08-08-2014

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

Highlighted
Member
Posts: 1
Registered: ‎11-05-2018

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

I have this problem too,

Highlighted
Member
Posts: 1
Registered: ‎10-09-2018

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

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