Skip to content

Commit 5749d80

Browse files
authored
Merge pull request #110 from AuthorizeNet/future
Future
2 parents 8cd49f5 + 37055b6 commit 5749d80

10 files changed

Lines changed: 30 additions & 16 deletions

‎CustomerProfiles/CreateCustomerPaymentProfile.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static ANetApiResponse Run(string ApiLoginID, string ApiTransactionKey, s
4848
{
4949
customerProfileId = customerProfileId,
5050
paymentProfile = echeckPaymentProfile,
51-
validationMode = validationModeEnum.none
51+
validationMode = validationModeEnum.testMode
5252
};
5353

5454
// instantiate the controller that will call the service

‎CustomerProfiles/UpdateCustomerProfile.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, s
2424
Item = ApiTransactionKey,
2525
};
2626

27-
var profile = new customerProfileExType
27+
var profile = new customerProfileInfoExType
2828
{
2929
merchantCustomerId = "custId123",
3030
description = "some description",

‎CustomerProfiles/ValidateCustomerPaymentProfile.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static ANetApiResponse Run(String ApiLoginID, String ApiTransactionKey, s
2727
var request = new validateCustomerPaymentProfileRequest();
2828
request.customerProfileId = customerProfileId;
2929
request.customerPaymentProfileId = customerPaymentProfileId;
30-
request.validationMode = validationModeEnum.liveMode;
30+
request.validationMode = validationModeEnum.testMode;
3131

3232

3333
// instantiate the controller that will call the service

‎SampleCode.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ private static void RunMethod(String methodName)
149149
//Update PayerID for which you want to run the sample code
150150
const string payerId = "M8R9JRNJ3R28Y";
151151

152-
const string customerProfileId = "1915435550"; //"213213";
153-
const string customerPaymentProfileId = "1828811149"; //"2132345";
152+
const string customerProfileId = "922449496"; //"213213";
153+
const string customerPaymentProfileId = "921836008"; //"2132345";
154154

155-
const string shippingAddressId = "1223213";
155+
const string shippingAddressId = "922279358";
156156
const decimal amount = 12.34m;
157157
const string subscriptionId = "1223213";
158158
const short day = 45;

‎SampleCode.csproj‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<AppDesignerFolder>Properties</AppDesignerFolder>
1010
<RootNamespace>net.authorize.sample</RootNamespace>
1111
<AssemblyName>SampleCode</AssemblyName>
12-
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1313
<FileAlignment>512</FileAlignment>
1414
<TargetFrameworkProfile />
1515
</PropertyGroup>
@@ -35,9 +35,8 @@
3535
<Prefer32Bit>false</Prefer32Bit>
3636
</PropertyGroup>
3737
<ItemGroup>
38-
<Reference Include="AuthorizeNet, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
39-
<HintPath>packages\AuthorizeNet.2.0.3\lib\AuthorizeNet.dll</HintPath>
40-
<Private>True</Private>
38+
<Reference Include="AuthorizeNet, Version=2.0.4.0, Culture=neutral, processorArchitecture=MSIL">
39+
<HintPath>packages\AuthorizeNet.2.0.4\lib\AuthorizeNet.dll</HintPath>
4140
</Reference>
4241
<Reference Include="System" />
4342
<Reference Include="System.Core" />

‎SampleCode.exe‎

512 Bytes
Binary file not shown.

‎SampleCodeTest/SampleCodeList.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ GetTransactionList 0 1
55
CreateAnApplePayTransaction 1 0
66
CreateAnAndroidPayTransaction 1 0
77
CreateAnAcceptTransaction 1 0
8-
DecryptVisaSrcData 0 1
8+
DecryptVisaSrcData 0 0
99
CreateVisaSrcTransaction 0 0
1010
CaptureFundsAuthorizedThroughAnotherChannel 1 1
1111
AuthorizeCreditCard 1 1

‎SampleCodeTest/SampleCodeTest.csproj‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="..\packages\NUnitTestAdapter.2.3.0\build\NUnitTestAdapter.props" Condition="Exists('..\packages\NUnitTestAdapter.2.3.0\build\NUnitTestAdapter.props')" />
34
<PropertyGroup>
45
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
56
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -8,7 +9,7 @@
89
<AppDesignerFolder>Properties</AppDesignerFolder>
910
<RootNamespace>SampleCodeTest</RootNamespace>
1011
<AssemblyName>SampleCodeTest</AssemblyName>
11-
<TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>
12+
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
1213
<FileAlignment>512</FileAlignment>
1314
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
1415
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
@@ -17,6 +18,8 @@
1718
<IsCodedUITest>False</IsCodedUITest>
1819
<TestProjectType>UnitTest</TestProjectType>
1920
<TargetFrameworkProfile />
21+
<NuGetPackageImportStamp>
22+
</NuGetPackageImportStamp>
2023
</PropertyGroup>
2124
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
2225
<DebugSymbols>true</DebugSymbols>
@@ -42,8 +45,7 @@
4245
<HintPath>..\packages\AuthorizeNet.2.0.3\lib\AuthorizeNet.dll</HintPath>
4346
</Reference>
4447
<Reference Include="nunit.framework, Version=2.6.3.13283, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
45-
<SpecificVersion>False</SpecificVersion>
46-
<HintPath>..\packages\NUnit.3.9.0\lib\net45\nunit.framework.dll</HintPath>
48+
<HintPath>..\packages\NUnit.2.6.3\lib\nunit.framework.dll</HintPath>
4749
</Reference>
4850
<Reference Include="System" />
4951
<Reference Include="System.Core">
@@ -72,6 +74,9 @@
7274
<ItemGroup>
7375
<Content Include="SampleCodeList.txt" />
7476
</ItemGroup>
77+
<ItemGroup>
78+
<None Include="packages.config" />
79+
</ItemGroup>
7580
<Choose>
7681
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
7782
<ItemGroup>
@@ -92,6 +97,12 @@
9297
</Choose>
9398
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
9499
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
100+
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
101+
<PropertyGroup>
102+
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
103+
</PropertyGroup>
104+
<Error Condition="!Exists('..\packages\NUnitTestAdapter.2.3.0\build\NUnitTestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\NUnitTestAdapter.2.3.0\build\NUnitTestAdapter.props'))" />
105+
</Target>
95106
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
96107
Other similar extension points exist, see Microsoft.Common.targets.
97108
<Target Name="BeforeBuild">

‎SampleCodeTest/packages.config‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<packages>
3+
<package id="NUnit" version="2.6.3" targetFramework="net461" />
4+
<package id="NUnitTestAdapter" version="2.3.0" targetFramework="net461" />
5+
</packages>

‎packages.config‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="AuthorizeNet" version="2.0.3" />
4-
<package id="NUnit" version="3.9.0" />
3+
<package id="AuthorizeNet" version="2.0.4" targetFramework="net461" />
54
</packages>

0 commit comments

Comments
 (0)