diff --git a/EazySDK/ClientHandler.cs b/EazySDK/ClientHandler.cs index 6195e53..ae8cfb8 100644 --- a/EazySDK/ClientHandler.cs +++ b/EazySDK/ClientHandler.cs @@ -6,8 +6,13 @@ public class ClientHandler { public IConfiguration Settings() { - var GetSettings = SettingsManager.CreateSettings(); - return GetSettings; + try + { + return SettingsManager.CreateSettings(); + } catch + { + return SettingsManager.CreateSettingsInMemory(); + } } public Session Session(IConfiguration Settings) diff --git a/EazySDK/EazySDK.csproj b/EazySDK/EazySDK.csproj index 3958e28..94b7377 100644 --- a/EazySDK/EazySDK.csproj +++ b/EazySDK/EazySDK.csproj @@ -1,7 +1,7 @@ - + - netstandard2.0 + netstandard2.0 Access PaySuite Access PaySuite Eazy Customer Manager 3 @@ -15,11 +15,27 @@ Eazy Collect API built in .NET Standard 2.0. Its core purpose is to provide a fr EazySDK 1.4.0 - + + net6.0 + Access PaySuite + Access PaySuite + Eazy Customer Manager 3 + + EazySDK is an integration of the + Eazy Collect API built in .NET Standard 2.0. Its core purpose is to provide a framework for developers already working with Eazy Collect to integrate Eazy Customer Manager into their platform. The framework provides functions designed to speed up the integration process between a developers Customer Relationship Manager and Eazy Collect. + + + https://github.com/EazyCollectServices/EazyCollectSDK-Dotnet + https://github.com/EazyCollectServices/EazyCollectSDK-Dotnet + Fintech Finance EazyCollect Direct Debit Payment Processing + https://ecm3.eazycollect.co.uk/Content/faviconWorkspace.ico + EazySDK + 1.4.0 + - + diff --git a/EazySDK/Utilities/CustomerPostChecks.cs b/EazySDK/Utilities/CustomerPostChecks.cs index 0e218d4..c1dc614 100644 --- a/EazySDK/Utilities/CustomerPostChecks.cs +++ b/EazySDK/Utilities/CustomerPostChecks.cs @@ -1,4 +1,4 @@ -using System.Text.RegularExpressions; +using System.Text.RegularExpressions; namespace EazySDK.Utilities { @@ -20,7 +20,7 @@ public class CustomerPostChecks /// public bool CheckPostCodeIsCorectlyFormatted(string PostCode) { - Regex search = new Regex("^([A-Za-z][A-Ha-hJ-Yj-y]?[0-9][A-Za-z0-9]? ?[0-9][A-Za-z]{2}|[Gg][Ii][Rr] ?0[Aa]{2})$"); + Regex search = new Regex("^(([A-Z][0-9]{1,2})|(([A-Z][A-HJ-Y][0-9]{1,2})|(([A-Z][0-9][A-Z])|([A-Z][A-HJ-Y][0-9]?[A-Z])))) [0-9][A-Z]{2}$"); var result = search.IsMatch(PostCode); if (!result)