Skip to content

Commit 3f6a31a

Browse files
committed
fix: stop sending clientId to avoid E00013 errors
The SDK injected an undocumented `clientId` (`sdk-java-<version>`) 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).
1 parent 866bd82 commit 3f6a31a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/main/java/net/authorize/api/controller/base/ApiOperationBase.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ protected ApiOperationBase(Q apiRequest) {
6060
this.requestClass = (Class<Q>) ((ParameterizedType) getClass().getGenericSuperclass()).getActualTypeArguments()[0];
6161
this.responseClass = this.getResponseType();
6262
this.setApiRequest(apiRequest);
63-
this.setClientId();
64-
63+
6564
logger.debug(String.format("Creating instance for request:'%s' and response:'%s'", requestClass, responseClass));
6665
logger.debug(String.format("Request:'%s'", apiRequest));
6766
validate();

0 commit comments

Comments
 (0)