Skip to content

Commit 36779eb

Browse files
authored
Merge pull request #260 from AuthorizeNet/future
Preparing for next release
2 parents 2859c7f + 86ef84f commit 36779eb

File tree

10 files changed

+14
-486
lines changed

10 files changed

+14
-486
lines changed

Authorize.NET/AuthorizeNET.csproj

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,10 @@
110110
<Compile Include="Api\Controllers\validateCustomerPaymentProfileController.cs" />
111111
<Compile Include="Api\Controllers\Bases\*.cs" />
112112
<Compile Include="Utility\AnetRandom.cs" />
113+
<Compile Include="Utility\CryptoRandom.cs" />
113114
<Compile Include="Util\*.cs" />
114115
<Compile Include="Utility\AnetApiSchema.generated.cs" />
115116
<Compile Include="Utility\ApiFields.cs" />
116-
<Compile Include="Utility\CommonFunctions.cs" />
117-
<Compile Include="Utility\Crypto.cs" />
118-
<Compile Include="Utility\CryptoRandom.cs" />
119-
<Compile Include="Utility\HttpXmlUtility.cs" />
120117
</ItemGroup>
121118
<ItemGroup>
122119
<Folder Include="Properties\" />

Authorize.NET/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
// Revision
3131
//
3232
// See AssemblyFileVersion.cs for Product and Assembly Version
33-
//[assembly: AssemblyVersion("1.9.7.0")]
34-
[assembly: AssemblyFileVersion("2.0.0.0")]
35-
[assembly: AssemblyVersion("2.0.0.0")]
33+
//[assembly: AssemblyVersion("2.0.0.0")]
34+
[assembly: AssemblyFileVersion("2.0.1.0")]
35+
[assembly: AssemblyVersion("2.0.1.0")]
3636

Authorize.NET/Util/Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public static class Constants {
2626
public const int HttpConnectionDefaultTimeout = 30000;
2727
public const int HttpReadWriteDefaultTimeout = 30000;
2828

29-
public const string SDKVersion = "2.0.0";
29+
public const string SDKVersion = "2.0.1";
3030

3131
}
3232
#pragma warning restore 1591

Authorize.NET/Util/HttpUtility.cs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,14 @@ public static ANetApiResponse PostData<TQ, TS>(AuthorizeNet.Environment env, TQ
8484
{
8585
while (!reader.EndOfStream)
8686
{
87-
result.Append((char)reader.Read());
87+
try
88+
{
89+
result.Append((char)reader.Read());
90+
}
91+
catch (Exception)
92+
{
93+
throw new Exception("Cannot read response.");
94+
}
8895

8996
if (result.Length >= MaxResponseLength)
9097
{

Authorize.NET/Utility/CommonFunctions.cs

Lines changed: 0 additions & 38 deletions
This file was deleted.

Authorize.NET/Utility/Crypto.cs

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)