Skip to content

Commit

Permalink
Merged release v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lounge committed Nov 29, 2021
2 parents 56f8955 + 7ae44e4 commit a030bb9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Selenium.WebDriver" Version="3.141.0" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="91.0.4472.10100" />
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="96.0.4664.4500" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />
<PackageReference Include="System.IO" Version="4.3.0" />
<PackageReference Include="System.Net.Http" Version="4.3.4" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

namespace Sample.AspNetCore.Controllers
{
using Svea.WebPay.SDK.Exceptions;
using System.Globalization;

public class CheckOutController : Controller
Expand Down Expand Up @@ -66,6 +67,11 @@ public async Task<IActionResult> LoadPaymentMenu(bool requireBankId, bool isInte

return data;
}
catch (HttpResponseException ex)
{
Debug.Write(ex.Message);
return null;
}
catch (Exception ex)
{
Debug.Write(ex.Message);
Expand Down
2 changes: 1 addition & 1 deletion src/Svea.WebPay.SDK/Exceptions/HttpResponseException.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System;
using System.Net.Http;

internal class HttpResponseException : Exception
public class HttpResponseException : Exception
{
public HttpResponseException(HttpResponseMessage httpResponse,
ErrorResponse problemResponse = null,
Expand Down

0 comments on commit a030bb9

Please sign in to comment.