CyberSource / cybersource-rest-client-dotnetstandard

.NET Standard client library for the CyberSource REST API
7 stars 20 forks source link

Could not convert string to integer: MerchantACS. #65

Open ramosisw opened 1 year ago

ramosisw commented 1 year ago

On

[POST] Check Payer Auth Enrollment https://apitest.cybersource.com/risk/v1/authentications

CyberSource.Client.ApiException: Could not convert string to integer: MerchantACS. Path 'consumerAuthenticationInformation.acsOperatorID', line 1, position 1948.
   at CyberSource.Client.ApiClient.Deserialize(RestResponse response, Type type)

The error only occurs if the following consumer authentication information is added

{
   "consumerAuthenticationInformation" : {
       "returnUrl": "{{returnUrl}}",
       "referenceId": "{{referenceId}}"
   }
}

If that consumer authentication information is not present, it does not fail, but since there is a PENDING_AUTHENTICATION, there is no ACCESS_TOKEN