From 9abb911a09aee40e6f98f661fd881a23c50e29ae Mon Sep 17 00:00:00 2001 From: Karl Loebach Date: Wed, 3 Jun 2026 14:01:43 -0400 Subject: [PATCH] fix: stop sending clientId to avoid E00013 errors The SDK injected an undocumented `clientId` (`sdk-java-`) onto every request via the controller constructor. The Authorize.Net API now rejects requests containing this field with `E00013 "The field is invalid."` Removing the `setClientId()` call leaves the field null so JAXB omits it from the serialized request. Mirrors the sdk-php fix in AuthorizeNet/sdk-php#475 (fixes AuthorizeNet/sdk-php#474). --- .../net/authorize/api/controller/base/ApiOperationBase.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/net/authorize/api/controller/base/ApiOperationBase.java b/src/main/java/net/authorize/api/controller/base/ApiOperationBase.java index 52e3d7cc..4765cd98 100644 --- a/src/main/java/net/authorize/api/controller/base/ApiOperationBase.java +++ b/src/main/java/net/authorize/api/controller/base/ApiOperationBase.java @@ -60,8 +60,7 @@ protected ApiOperationBase(Q apiRequest) { this.requestClass = (Class) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0]; this.responseClass = this.getResponseType(); this.setApiRequest(apiRequest); - this.setClientId(); - + logger.debug(String.format("Creating instance for request:'%s' and response:'%s'", requestClass, responseClass)); logger.debug(String.format("Request:'%s'", apiRequest)); validate();