diff --git a/GoPay.net-sdk/GoPay.net-sdk.csproj b/GoPay.net-sdk/GoPay.net-sdk.csproj index b2bfa2d..315778e 100644 --- a/GoPay.net-sdk/GoPay.net-sdk.csproj +++ b/GoPay.net-sdk/GoPay.net-sdk.csproj @@ -1,15 +1,15 @@  - 1.3.1 + 1.3.2 netstandard2.0 gopay_dotnet_standard_api - - - + + + diff --git a/GoPay.net-sdk/src/GPConnector.cs b/GoPay.net-sdk/src/GPConnector.cs index 1096223..7433dd4 100644 --- a/GoPay.net-sdk/src/GPConnector.cs +++ b/GoPay.net-sdk/src/GPConnector.cs @@ -45,10 +45,14 @@ public GPConnector(string APIUrl, string clientid, string clientsecret, bool set ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; } - Client.Options.BaseUrl = new Uri(APIUrl); + var options = new RestClientOptions + { + BaseUrl = new Uri(APIUrl) + }; + + Client = new RestClient(options); ClientID = clientid; ClientSecret = clientsecret; - Client.UseNewtonsoftJson(); } public GPConnector(string APIUrl, string clientid, string clientsecret, string customUserAgent, bool setSecurityProtocol = true) @@ -65,16 +69,13 @@ public GPConnector(string APIUrl, string clientid, string clientsecret, string c var options = new RestClientOptions { - UserAgent = customUserAgent + UserAgent = customUserAgent, + BaseUrl = new Uri(APIUrl) }; Client = new RestClient(options); - - - Client.Options.BaseUrl = new Uri(APIUrl); ClientID = clientid; ClientSecret = clientsecret; - Client.UseNewtonsoftJson(); } /// diff --git a/Package.nuspec b/Package.nuspec index 4dec17f..223fb1e 100644 --- a/Package.nuspec +++ b/Package.nuspec @@ -2,7 +2,7 @@ GoPay.NET - 1.3.1 + 1.3.2 Stanislav Kouba, Frantisek Sichinger, Patrik Maryska GoPay s.r.o. MIT @@ -10,14 +10,14 @@ images/icon.png false GoPay .NET sdk - Added User-agent version + Updated version of dependencies Copyright 2024 GoPay Platebni brana - - - + + +