Skip to content

Commit 855408f

Browse files
authored
Merge pull request #80 from /issues/79
fixes issue with check operations (#79)
2 parents 126184d + ff30444 commit 855408f

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Cardknox.NET/Cardknox.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ public CardknoxResponse CheckSale(CheckSale _sale, bool force = false)
838838

839839
// BEGIN required information
840840
_values.Add("xCommand", _sale.Operation);
841-
if (!IsNullOrWhiteSpace(_sale.Name))
841+
if (IsNullOrWhiteSpace(_sale.Name))
842842
throw new InvalidOperationException("Name is required.");
843843
bool requiredAdded = false;
844844
if (!IsNullOrWhiteSpace(_sale.Routing) && !IsNullOrWhiteSpace(_sale.Account))
@@ -918,7 +918,7 @@ public CardknoxResponse CheckCredit(CheckCredit _credit, bool force = false)
918918

919919
// BEGIN required information
920920
_values.Add("xCommand", _credit.Operation);
921-
if (!IsNullOrWhiteSpace(_credit.Name))
921+
if (IsNullOrWhiteSpace(_credit.Name))
922922
throw new InvalidOperationException("Name is required.");
923923
bool requiredAdded = false;
924924
if (!IsNullOrWhiteSpace(_credit.Routing) && !IsNullOrWhiteSpace(_credit.Account))
@@ -995,7 +995,7 @@ public CardknoxResponse CheckSave(CheckSave _save, bool force = false)
995995

996996
// BEGIN required information
997997
_values.Add("xCommand", _save.Operation);
998-
if (!IsNullOrWhiteSpace(_save.Name))
998+
if (IsNullOrWhiteSpace(_save.Name))
999999
throw new InvalidOperationException("Name is required.");
10001000
bool requiredAdded = false;
10011001
if (!IsNullOrWhiteSpace(_save.Routing) && !IsNullOrWhiteSpace(_save.Account))

src/Cardknox.NET/Cardknox.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<Product>Cardknox.API.Wrapper</Product>
99
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1010
<RootNamespace>CardknoxApi</RootNamespace>
11-
<Version>4.6.2</Version>
11+
<Version>4.6.3</Version>
1212
<PackageProjectUrl>https://github.com/TheScripters/Cardknox-API-Wrapper</PackageProjectUrl>
1313
<Description>API Wrapper for Cardknox Payment Processor written in C#
1414

1515
Refer to https://kb.cardknox.com/api for full API reference or https://github.com/TheScripters/Cardknox-API-Wrapper/wiki/ for library reference</Description>
16-
<PackageReleaseNotes>Enabled Source Link and source package</PackageReleaseNotes>
16+
<PackageReleaseNotes>Bugfix on check operations</PackageReleaseNotes>
1717
<PackageTags>cardknox gateway processor payment api ebt mastercard payments american express amex jcb diners club giftcard gift card discover</PackageTags>
1818
<Copyright>© 2020 The Scripters</Copyright>
1919
<AssemblyVersion>4.6.0.0</AssemblyVersion>

0 commit comments

Comments
 (0)