Ingenico-ePayments/connect-sdk-dotnet

Net core 3.1 config

Closed this issue · 6 comments

I have net core 3.1 web app and trying to use this SDK. How do I configure in App.Setting
With below, it gives error that configuration not found.

"ConnectSDK": {
"connectTimeout": "5000",
"socketTimeout": "30000",
"maxConnections": "10",
"authorizationType": "",
"integrator": "",
"apiEndpoint": {
"host": "",
"scheme": "https"
}
}

Any help would be appreciated.

Because the SDK still needs to be compatible with .NET Framework 4.5, the configuration loading has not been updated. It still requires an app.conf or web.conf configuration file.

We suggest you use either use one of the methods in class Factory that takes an IDictionary, or create a CommunicatorConfiguration instance and set its properties manually. When using an IDictionary, you can lookup the keys in CommunicatorConfiguration.cs.

Awesome that worked!!

Hi Iam trying to connect ingenico device, but the methods which i am trying to call i am not able to find in sdk. can u help me to connect

The methods in Factory that take an IDictionary can be found here:

The methods in Factory that take a manually created CommunicatorConfiguration can be found here:

I suggest one of the two methods that immediately returns a Client, unless you need to configure the Session or re-use the Communicator.

In web config i had written like this

but i am getting "ExceptionMessage":"Unsupported Authorization", where can i find host name

Let's continue in #7.