Reputation: 125
I am new to ingenico payment integration. I have created new Sandbox account and Installed the SDK nuget into Console application.
I am trying below api,
GET https://{domainname}/v1/{merchantId}/services/testconnection
to test the connection. If the Connection gets completed i wanted to create the new hosted checkout.
POST https://{domainname}/v1/{merchantId}/hostedcheckouts
But whenever I have Tried to connect using the .net sdk it throws below exceptions 1) An error occurred while sending the request. 2) The underlying connection was closed: An unexpected error occurred on a send. 3) Authentication failed because the remote party has closed the transport stream.
I am using eu.sandbox.api-ingenico.com
endpoint.
Can anyone help me to get through this exceptions? and also Is there any forum or Blogs for sdk integration or Ingenico developer community.?
Thanks In Advance.
Upvotes: 2
Views: 1699
Reputation: 170
For people having the MISSING_OR_INVALID_AUTHORIZATION error, in my case it was an expired API Key Id and Secret.
Upvotes: 0
Reputation: 125
I was literally laughing on my self, The issue was I have created the Sandbox account by selecting Region "Asia Pacific" When I create another account by selecting the "Europe, Middle East, Africa" and used the API Key and API Secret, The Issue Gets Resolved.
They are not providing support for Asian Region for sandbox account.
Thank You.
Upvotes: 2