Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Field acsTransId not defined in ThreeDS2Result properties #1295

Open
RajuMmgs opened this issue May 16, 2024 · 0 comments
Open

Error: Field acsTransId not defined in ThreeDS2Result properties #1295

RajuMmgs opened this issue May 16, 2024 · 0 comments

Comments

@RajuMmgs
Copy link

Describe the bug
I'm encountering an error while integrating with the Adyen Java API library (version 20.0.0). When I attempt to process a 3D Secure 2.0 authentication, I receive the following response:

{
"code": "500",
"message": "Failure",
"errorList": [
"The field acsTransId in the JSON string is not defined in the ThreeDS2Result properties. JSON: {"acsTransId":"6d5ee284-3971-4ea0-a770-c9abbadc74e8","authenticationType":"01","authenticationValue":"QURZRU4gM0RTMiBURVNUIENBVlY=","dsTransID":"3d627f3f-0f85-470f-a587-aa89a6281778","eci":"07","interactionCounter":"1","messageVersion":"2.1.0","threeDSServerTransID":"c52d5f20-762e-4b6c-a196-78536651f135","transStatus":"N","transStatusReason":"01"}"
],
"errorMessage": "The field acsTransId in the JSON string is not defined in the ThreeDS2Result properties. JSON: {"acsTransId":"6d5ee284-3971-4ea0-a770-c9abbadc74e8","authenticationType":"01","authenticationValue":"QURZRU4gM0RTMiBURVNUIENBVlY=","dsTransID":"3d627f3f-0f85-470f-a587-aa89a6281778","eci":"07","interactionCounter":"1","messageVersion":"2.1.0","threeDSServerTransID":"c52d5f20-762e-4b6c-a196-78536651f135","transStatus":"N","transStatusReason":"01"}"
}

How to reproduce
POM dependency

com.adyen adyen-java-api-library 20.0.0

tried to call payments/details API

Java Code

Client client = new Client(X_API_KEY, Environment.TEST);

PaymentsApi service = new PaymentsApi(client);

PaymentCompletionDetails paymentCompletionDetails = new PaymentCompletionDetails().threeDSResult(adyenPaymentDetailsRequest.getDetails().getThreeDSResult());

// Define payment details request
DetailsRequest detailsRequest = new DetailsRequest();
detailsRequest.setDetails(paymentCompletionDetails);

// Make the API call
PaymentDetailsResponse response = service.paymentsDetails(detailsRequest);

// Process the response
System.out.println("Payment Details Response:");

response :

"{
"code": "500",
"message": "Failure",
"errorList": [
"The field acsTransId in the JSON string is not defined in the ThreeDS2Result properties. JSON: {"acsTransId":"6d5ee284-3971-4ea0-a770-c9abbadc74e8","authenticationType":"01","authenticationValue":"QURZRU4gM0RTMiBURVNUIENBVlY=","dsTransID":"3d627f3f-0f85-470f-a587-aa89a6281778","eci":"07","interactionCounter":"1","messageVersion":"2.1.0","threeDSServerTransID":"c52d5f20-762e-4b6c-a196-78536651f135","transStatus":"N","transStatusReason":"01"}"
],
"errorMessage": "The field acsTransId in the JSON string is not defined in the ThreeDS2Result properties. JSON: {"acsTransId":"6d5ee284-3971-4ea0-a770-c9abbadc74e8","authenticationType":"01","authenticationValue":"QURZRU4gM0RTMiBURVNUIENBVlY=","dsTransID":"3d627f3f-0f85-470f-a587-aa89a6281778","eci":"07","interactionCounter":"1","messageVersion":"2.1.0","threeDSServerTransID":"c52d5f20-762e-4b6c-a196-78536651f135","transStatus":"N","transStatusReason":"01"}"
}"

Expected behavior
Required proper message with failure reason

Desktop (please complete the following information):

  • Java Version: [1.8]
  • Library Version: [20.0.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant