You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello - we are looking for type definitions for the API error codes and messages (as documented here)
When you make an API call to Adyen and there is an error, you will receive a response with HTTP status code different from 2xx. In this response, you get errorCode and message fields that help you diagnose and resolve the error.
All integrations can receive generic error codes. There are also error codes specific to an integration type or a payment method.
We are expecting to be able to use these type definitions to avoid hard-coding error codes as strings in our integration, like so:
@lukehedger It's not properly exposed AFAIK. You can use this type as defined in their lib but path is somewhat internal to them and may break if they decided to change file structure one day.
You could make a copy of it but still leaves you open to being out of sync with their types one day and instanceof checks won't work for error handling I think.
HttpClientException
import HttpClientException from '@adyen/api-library/lib/src/httpClient/httpClientException';
👍 we need this type exposed properly when possible
Hello - we are looking for type definitions for the API error codes and messages (as documented here)
We are expecting to be able to use these type definitions to avoid hard-coding error codes as strings in our integration, like so:
Does this feature exist? We had a look in the existing
Types
library but could not find anything.Thanks!
The text was updated successfully, but these errors were encountered: