Closed driesvb closed 5 years ago
The endpoint URL is incorrect. That is not one of the endpoints defined on https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/java/endpoints.html. For the sandbox environment you should be using https://eu.sandbox.api-ingenico.com.
Ah my mistake. Thanks.
This error is given when using the example code here.
The currenct exact code (API details omitted) of my implementation:
An
InvalidResponseException
is thrown withInvalid content type; got 'text/html;charset=UTF-8', expected 'application/json'
as its message. This happens every time when executing the script.The correct content type seems to be used in the API implementation though.