Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix LANG field digest issue #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Sdk/Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<RepositoryType>git</RepositoryType>
<PackageTags>payment; gateway, payment gateway; sdk; gpwebpay;</PackageTags>
<PackageReleaseNotes>Added error values for PR and SR codes to have better error request reason for better debugging.</PackageReleaseNotes>
<Version>1.4.3</Version>
<AssemblyVersion>1.4.3.0</AssemblyVersion>
<FileVersion>1.4.3.0</FileVersion>
<Version>1.4.4</Version>
<AssemblyVersion>1.4.4.0</AssemblyVersion>
<FileVersion>1.4.4.0</FileVersion>
<!-- Optional: Publish the repository URL in the built .nupkg (in the NuSpec <Repository> element) -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<PackageIconUrl>https://github.com/marazt/gpwebpay-net/blob/master/logo.png</PackageIconUrl>
Expand Down Expand Up @@ -64,4 +64,4 @@
<!-- For BitBucket -->
<!-- <PackageReference Include="Microsoft.SourceLink.Bitbucket.Git" Version="1.0.0-beta-63127-02" PrivateAssets="All"/> -->
</ItemGroup>
</Project>
</Project>
7 changes: 1 addition & 6 deletions Sdk/Services/PaymentRequestTransformer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ public IList<KeyValuePair<string, string>> GetParametersForDigestCalculation(Pay
{
parameters.Add(new KeyValuePair<string, string>("ADDINFO", paymentRequest.AddInfo.OuterXml));
}

if (paymentRequest.Lang != null)
{
parameters.Add(new KeyValuePair<string, string>("LANG", paymentRequest.Lang));
}

return parameters;
}
Expand All @@ -103,4 +98,4 @@ private static string TransformToAscii (string data, string parameterName)
return asciiData;
}
}
}
}