Ingenico-ePayments / connect-sdk-dotnet

Ingenico Connect .NET Server SDK
https://docs.connect.worldline-solutions.com/documentation/sdk/server/dotnet/
MIT License
33 stars 16 forks source link

Net core 3.1 config #6

Closed vishalpatel-te-zz closed 4 years ago

vishalpatel-te-zz commented 4 years ago

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.

rob-spoor commented 4 years ago

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.

vishalpatel-te-zz commented 4 years ago

Awesome that worked!!

vvangasam commented 3 years ago

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

rob-spoor commented 3 years ago

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.

vvangasam commented 3 years ago

In web config i had written like this

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

rob-spoor commented 3 years ago

Let's continue in https://github.com/Ingenico-ePayments/connect-sdk-dotnet/issues/7.