From 5b86fe1a339a48a0f6a310f5f5d0dc99b125a4ae Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Thu, 31 Mar 2022 09:51:15 +0530 Subject: [PATCH 01/16] Adding mutex lock on Configuration Properties --- Authorize.NET/Environment.cs | 38 +++++++++++++++++++++++------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/Authorize.NET/Environment.cs b/Authorize.NET/Environment.cs index fb2c503a..3b3a8fff 100644 --- a/Authorize.NET/Environment.cs +++ b/Authorize.NET/Environment.cs @@ -116,24 +116,34 @@ public static bool getBooleanProperty( String propertyName) } return value; - } + } - /// - /// Reads the value from property file and/or the environment - /// Values in property file supersede the values set in environmen - /// - /// propertyName name of the property to read - /// String property value - public static String GetProperty(String propertyName) { - String stringValue = null; + private static object mutex = new object(); + /// + /// Reads the value from property file and/or the environment + /// Values in property file supersede the values set in environmen + /// + /// propertyName name of the property to read + /// String property value + public static String GetProperty(String propertyName) { + String stringValue = null; String propValue = null; - if ( ConfigurationManager.AppSettings.AllKeys.Contains(propertyName)) - { - propValue = ConfigurationManager.AppSettings[propertyName]; - } - var envValue = System.Environment.GetEnvironmentVariable(propertyName); + lock(mutex) { + if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings.Get(propertyName))) + { + propValue = ConfigurationManager.AppSettings.Get(propertyName); + } + } + + // ORIGINAL + // if ( ConfigurationManager.AppSettings.AllKeys.Contains(propertyName)) + // { + // propValue = ConfigurationManager.AppSettings[propertyName]; + // } + + var envValue = System.Environment.GetEnvironmentVariable(propertyName); if ( null != propValue && propValue.Trim().Length > 0 ) { stringValue = propValue; From 76adde394ef9a29d1ea11d6d96044cdfab9cd671 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Mon, 4 Apr 2022 13:44:40 +0530 Subject: [PATCH 02/16] Removed commented lines --- Authorize.NET/Environment.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Authorize.NET/Environment.cs b/Authorize.NET/Environment.cs index 3b3a8fff..6a475dc5 100644 --- a/Authorize.NET/Environment.cs +++ b/Authorize.NET/Environment.cs @@ -136,12 +136,6 @@ public static String GetProperty(String propertyName) { propValue = ConfigurationManager.AppSettings.Get(propertyName); } } - - // ORIGINAL - // if ( ConfigurationManager.AppSettings.AllKeys.Contains(propertyName)) - // { - // propValue = ConfigurationManager.AppSettings[propertyName]; - // } var envValue = System.Environment.GetEnvironmentVariable(propertyName); if ( null != propValue && propValue.Trim().Length > 0 ) From b61b8a18e4144fc090702231a12edbf4996e7b56 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Mon, 4 Apr 2022 13:48:19 +0530 Subject: [PATCH 03/16] Fixed indentation --- Authorize.NET/Environment.cs | 252 +++++++++++++++++------------------ 1 file changed, 126 insertions(+), 126 deletions(-) diff --git a/Authorize.NET/Environment.cs b/Authorize.NET/Environment.cs index 6a475dc5..9eacd4ab 100644 --- a/Authorize.NET/Environment.cs +++ b/Authorize.NET/Environment.cs @@ -19,134 +19,134 @@ namespace AuthorizeNet public class Environment { public static readonly Environment SANDBOX = new Environment("https://test.authorize.net", "https://apitest.authorize.net", "https://test.authorize.net"); public static readonly Environment PRODUCTION = new Environment("https://secure2.authorize.net","https://api2.authorize.net","https://cardpresent.authorize.net"); - public static readonly Environment LOCAL_VM = new Environment(null, null, null); - public static readonly Environment HOSTED_VM = new Environment(null, null, null); + public static readonly Environment LOCAL_VM = new Environment(null, null, null); + public static readonly Environment HOSTED_VM = new Environment(null, null, null); public static Environment CUSTOM = new Environment(null, null, null); - private String _baseUrl; - private String _xmlBaseUrl; - private String _cardPresentUrl; - - private Environment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) { - _baseUrl = baseUrl; - _xmlBaseUrl = xmlBaseUrl; - _cardPresentUrl = cardPresentUrl; - } - - /** - * @return the baseUrl - */ - public String getBaseUrl() { - return _baseUrl; - } - - /** - * @return the xmlBaseUrl - */ - public String getXmlBaseUrl() { - return _xmlBaseUrl; - } - - /** - * @return the cardPresentUrl - */ - public String getCardPresentUrl() { - return _cardPresentUrl; - } - - /** - * If a custom environment needs to be supported, this convenience create - * method can be used to pass in a custom baseUrl. - * - * @param baseUrl - * @param xmlBaseUrl - * @return Environment object - */ - public static Environment createEnvironment(String baseUrl, String xmlBaseUrl) { - - return createEnvironment( baseUrl, xmlBaseUrl, null); - } - - /** - * If a custom environment needs to be supported, this convenience create - * method can be used to pass in a custom baseUrl. - * - * @param baseUrl - * @param xmlBaseUrl - * @param cardPresentUrl - * - * @return Environment object - */ - public static Environment createEnvironment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) { - var environment = Environment.CUSTOM; - environment._baseUrl = baseUrl; - environment._xmlBaseUrl = xmlBaseUrl; - environment._cardPresentUrl = cardPresentUrl; - - return environment; - } - - /** - * Reads a integer value from property file and/or the environment - * Values in property file supersede the values set in environment - * @param propertyName name of the integer property to read - * @return int property value - */ - public static int getIntProperty( String propertyName) - { - var stringValue = GetProperty(propertyName); + private String _baseUrl; + private String _xmlBaseUrl; + private String _cardPresentUrl; + + private Environment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) { + _baseUrl = baseUrl; + _xmlBaseUrl = xmlBaseUrl; + _cardPresentUrl = cardPresentUrl; + } + + /** + * @return the baseUrl + */ + public String getBaseUrl() { + return _baseUrl; + } + + /** + * @return the xmlBaseUrl + */ + public String getXmlBaseUrl() { + return _xmlBaseUrl; + } + + /** + * @return the cardPresentUrl + */ + public String getCardPresentUrl() { + return _cardPresentUrl; + } + + /** + * If a custom environment needs to be supported, this convenience create + * method can be used to pass in a custom baseUrl. + * + * @param baseUrl + * @param xmlBaseUrl + * @return Environment object + */ + public static Environment createEnvironment(String baseUrl, String xmlBaseUrl) { + + return createEnvironment( baseUrl, xmlBaseUrl, null); + } + + /** + * If a custom environment needs to be supported, this convenience create + * method can be used to pass in a custom baseUrl. + * + * @param baseUrl + * @param xmlBaseUrl + * @param cardPresentUrl + * + * @return Environment object + */ + public static Environment createEnvironment(String baseUrl, String xmlBaseUrl, String cardPresentUrl) { + var environment = Environment.CUSTOM; + environment._baseUrl = baseUrl; + environment._xmlBaseUrl = xmlBaseUrl; + environment._cardPresentUrl = cardPresentUrl; + + return environment; + } + + /** + * Reads a integer value from property file and/or the environment + * Values in property file supersede the values set in environment + * @param propertyName name of the integer property to read + * @return int property value + */ + public static int getIntProperty( String propertyName) + { + var stringValue = GetProperty(propertyName); var value = (AuthorizeNet.Util.StringUtils.ParseInt(stringValue)); - - return value; - } - - /** - * Reads a boolean value from property file and/or the environment - * Values in property file supersede the values set in environment - * @param propertyName name of the boolean property to read - * @return boolean property value - */ - public static bool getBooleanProperty( String propertyName) - { - var value = false; - var stringValue = GetProperty(propertyName); - if ( null != stringValue) - { - Boolean.TryParse(stringValue.Trim(), out value); - } - - return value; - } - - private static object mutex = new object(); - - /// - /// Reads the value from property file and/or the environment - /// Values in property file supersede the values set in environmen - /// - /// propertyName name of the property to read - /// String property value - public static String GetProperty(String propertyName) { - String stringValue = null; - String propValue = null; - - lock(mutex) { - if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings.Get(propertyName))) - { - propValue = ConfigurationManager.AppSettings.Get(propertyName); - } - } - - var envValue = System.Environment.GetEnvironmentVariable(propertyName); - if ( null != propValue && propValue.Trim().Length > 0 ) - { - stringValue = propValue; - } - else if ( null != envValue && envValue.Trim().Length > 0 ) - { - stringValue = envValue; - } - return stringValue; - } + + return value; + } + + /** + * Reads a boolean value from property file and/or the environment + * Values in property file supersede the values set in environment + * @param propertyName name of the boolean property to read + * @return boolean property value + */ + public static bool getBooleanProperty( String propertyName) + { + var value = false; + var stringValue = GetProperty(propertyName); + if ( null != stringValue) + { + Boolean.TryParse(stringValue.Trim(), out value); + } + + return value; + } + + private static object mutex = new object(); + + /// + /// Reads the value from property file and/or the environment + /// Values in property file supersede the values set in environmen + /// + /// propertyName name of the property to read + /// String property value + public static String GetProperty(String propertyName) { + String stringValue = null; + String propValue = null; + + lock(mutex) { + if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings.Get(propertyName))) + { + propValue = ConfigurationManager.AppSettings.Get(propertyName); + } + } + + var envValue = System.Environment.GetEnvironmentVariable(propertyName); + if ( null != propValue && propValue.Trim().Length > 0 ) + { + stringValue = propValue; + } + else if ( null != envValue && envValue.Trim().Length > 0 ) + { + stringValue = envValue; + } + return stringValue; + } } } \ No newline at end of file From 2f6ff4548f4655213b40f9b57aa4499be58082a4 Mon Sep 17 00:00:00 2001 From: Gabriel Broadwin Nongsiej Date: Thu, 7 Apr 2022 13:00:44 +0530 Subject: [PATCH 04/16] Update to new version --- Authorize.NET/Properties/AssemblyInfo.cs | 6 +++--- Authorize.NET/Util/Constants.cs | 2 +- AuthorizeNet.nuspec | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Authorize.NET/Properties/AssemblyInfo.cs b/Authorize.NET/Properties/AssemblyInfo.cs index 26ebac30..3c712e0b 100644 --- a/Authorize.NET/Properties/AssemblyInfo.cs +++ b/Authorize.NET/Properties/AssemblyInfo.cs @@ -30,7 +30,7 @@ // Revision // // See AssemblyFileVersion.cs for Product and Assembly Version -//[assembly: AssemblyVersion("2.0.1.0")] -[assembly: AssemblyFileVersion("2.0.2.0")] -[assembly: AssemblyVersion("2.0.2.0")] +//[assembly: AssemblyVersion("2.0.2.0")] +[assembly: AssemblyFileVersion("2.0.3.0")] +[assembly: AssemblyVersion("2.0.3.0")] diff --git a/Authorize.NET/Util/Constants.cs b/Authorize.NET/Util/Constants.cs index 91e1141d..cc21308f 100644 --- a/Authorize.NET/Util/Constants.cs +++ b/Authorize.NET/Util/Constants.cs @@ -26,7 +26,7 @@ public static class Constants { public const int HttpConnectionDefaultTimeout = 30000; public const int HttpReadWriteDefaultTimeout = 30000; - public const string SDKVersion = "2.0.2"; + public const string SDKVersion = "2.0.3"; } #pragma warning restore 1591 diff --git a/AuthorizeNet.nuspec b/AuthorizeNet.nuspec index 52de83e7..62b206aa 100644 --- a/AuthorizeNet.nuspec +++ b/AuthorizeNet.nuspec @@ -2,7 +2,7 @@ AuthorizeNet - 2.0.2 + 2.0.3 AuthorizeNet Authorize.Net AuthorizeNet From 303ee3e6e5fb66ebbe83dba319d55aad0679b57b Mon Sep 17 00:00:00 2001 From: gnongsie Date: Wed, 24 Jul 2024 21:06:49 +0530 Subject: [PATCH 05/16] Adding workflow to test SDK --- .github/workflows/dotnet-workflow.yml | 103 ++++++++++++++++++ .gitignore | 3 + Authorize.NET/AuthorizeNET.csproj | 2 +- AuthorizeNET.sln | 9 +- ...ustomerProfileFromTransactionSampleTest.cs | 4 +- .../SampleTest/CreateTransactionSampleTest.cs | 8 +- .../SampleTest/CustomerProfileSampleTest.cs | 4 +- .../SampleTest/ErrorMessagesSampleTest.cs | 2 +- .../SampleTest/eCheckTransactionSampleTest.cs | 4 + .../Controllers/Test/APIInvalidCredentials.cs | 1 + .../Api/Controllers/Test/ApiCoreTestBase.cs | 2 +- .../Controllers/Test/CreateTransactionTest.cs | 1 + AuthorizeNETtest/App.config | 6 +- AuthorizeNETtest/AuthorizeNETtest.csproj | 11 +- AuthorizeNETtest/packages.config | 1 + 15 files changed, 139 insertions(+), 22 deletions(-) create mode 100644 .github/workflows/dotnet-workflow.yml diff --git a/.github/workflows/dotnet-workflow.yml b/.github/workflows/dotnet-workflow.yml new file mode 100644 index 00000000..d3222e1d --- /dev/null +++ b/.github/workflows/dotnet-workflow.yml @@ -0,0 +1,103 @@ +name: Authorize.net DotNet CI +on: + push: + pull_request: + workflow_dispatch: +env: + sdk_dotnet: 'sdk-dotnet' + sample_code_csharp: 'sample-code-csharp' +jobs: + workflow-job-build: + defaults: + run: + shell: bash + runs-on: windows-2019 + steps: + - name: Checkout authorizenet/sdk-dotnet + uses: actions/checkout@v4 + with: + path: ${{env.sdk_dotnet}} + + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v2 + + - name: Compile the SDK + shell: pwsh + run: | + cd $Env:sdk_dotnet + nuget install ./AuthorizeNETtest/packages.config -OutputDirectory packages + msbuild -version + msbuild "./AuthorizeNET.sln" -property:Configuration=Release -t:rebuild + Write-Output "Build Successful" + + - name: Run UnitTests + uses: josepho0918/vstest-action@main + with: + testAssembly: AuthorizeNETtest.dll + searchFolder: ${{env.sdk_dotnet}}/AuthorizeNETtest/bin/Release/ + runInParallel: true + + - name: Upload the SDK + uses: actions/upload-artifact@v4 + with: + name: authorizenet-dotnet-build + path: ${{env.sdk_dotnet}} + + workflow-job-integration-tests: + defaults: + run: + shell: bash + strategy: + fail-fast: false + matrix: + operating-system: [windows-latest, windows-2019] + net-framework-version: [4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1] + exclude: + - operating-system: windows-2019 + net-framework-version: 4.8.1 + - operating-system: windows-latest + net-framework-version: 4.6.1 + needs: workflow-job-build + runs-on: ${{matrix.operating-system}} + steps: + - name: Download the SDK from previous job + uses: actions/download-artifact@v4 + with: + name: authorizenet-dotnet-build + path: ${{env.sdk_dotnet}} + + - name: Checkout authorizenet/sample-code-csharp + uses: actions/checkout@v4 + with: + repository: 'authorizenet/sample-code-csharp' + ref: 'future' + path: ${{env.sample_code_csharp}} + + - name: Setup MSBuild + uses: microsoft/setup-msbuild@v2 + + - name: Compile the Sample Application + shell: pwsh + run: | + cd $Env:sample_code_csharp + nuget install ./packages.config -OutputDirectory packages + nuget install ./SampleCodeTest/packages.config -OutputDirectory packages + + (Get-Content ./SampleCode.csproj) | ForEach-Object { $_ -replace "()(.)+(AuthorizeNet.dll)", "..\\sdk-dotnet\\Authorize.NET\\bin\\Release\\AuthorizeNet.dll" } | Set-Content ./SampleCode.csproj + + (Get-Content ./SampleCodeTest/SampleCodeTest.csproj) | ForEach-Object { $_ -replace "()(.)+(AuthorizeNet.dll)", "..\\..\\sdk-dotnet\\Authorize.NET\\bin\\Release\\AuthorizeNet.dll" } | Set-Content ./SampleCodeTest/SampleCodeTest.csproj + + (Get-Content ./SampleCode.csproj) | ForEach-Object { $_ -replace "()(.)+()", "v${{matrix.net-framework-version}}" } | Set-Content ./SampleCode.csproj + + (Get-Content ./SampleCodeTest/SampleCodeTest.csproj) | ForEach-Object { $_ -replace "()(.)+()", "v${{matrix.net-framework-version}}" } | Set-Content ./SampleCodeTest/SampleCodeTest.csproj + + msbuild -version + msbuild "./SampleCode.sln" -property:Configuration=Debug -t:rebuild + Write-Output "Build Successful" + + - name: Run UnitTests + uses: josepho0918/vstest-action@main + with: + testAssembly: SampleCodeTest.dll + searchFolder: ${{env.sample_code_csharp}}/SampleCodeTest/bin/Debug/ + runInParallel: true \ No newline at end of file diff --git a/.gitignore b/.gitignore index fd5204b5..6fee2142 100644 --- a/.gitignore +++ b/.gitignore @@ -181,3 +181,6 @@ UpgradeLog*.htm # Microsoft Fakes FakesAssemblies/ +/NUnit.ConsoleRunner.3.13.0 +/.vs +/nuget.exe diff --git a/Authorize.NET/AuthorizeNET.csproj b/Authorize.NET/AuthorizeNET.csproj index 809a0741..9d19a675 100644 --- a/Authorize.NET/AuthorizeNET.csproj +++ b/Authorize.NET/AuthorizeNET.csproj @@ -10,7 +10,7 @@ Properties AuthorizeNet AuthorizeNet - v4.5 + v4.6.1 512 diff --git a/AuthorizeNET.sln b/AuthorizeNET.sln index f2173b30..132041ae 100644 --- a/AuthorizeNET.sln +++ b/AuthorizeNET.sln @@ -1,17 +1,12 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 14 -VisualStudioVersion = 14.0.25420.1 +# Visual Studio Version 17 +VisualStudioVersion = 17.10.35027.167 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthorizeNET", "Authorize.NET\AuthorizeNET.csproj", "{5D52EAEC-42FB-4313-83B8-69E2F55EBF14}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthorizeNETtest", "AuthorizeNETtest\AuthorizeNETtest.csproj", "{CDA0D4D8-E4AA-4BEA-8839-04D69607D914}" EndProject -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7EBF48A1-8AC1-4E84-BDCC-E0984183D098}" - ProjectSection(SolutionItems) = preProject - AuthorizeNET.vsmdi = AuthorizeNET.vsmdi - EndProjectSection -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/CreateCustomerProfileFromTransactionSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/CreateCustomerProfileFromTransactionSampleTest.cs index e528e61f..ce6b022c 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/CreateCustomerProfileFromTransactionSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/CreateCustomerProfileFromTransactionSampleTest.cs @@ -84,7 +84,7 @@ private long GetTransactionId() //set up data based on transaction var transactionAmount = SetValidTransactionAmount(Counter); - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" }; var aCustomer = new customerDataType { email = string.Format( "{0}@b.bla", Counter)}; //standard api call to retrieve response @@ -146,7 +146,7 @@ public void CreateTransactionFromProfile() { billTo = profileShipTo, customerType = customerTypeEnum.individual, - payment = new paymentType { Item = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" } }, + payment = new paymentType { Item = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" } }, }; var createProfileReq = new createCustomerProfileRequest diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs index 675495c9..875df7e5 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/CreateTransactionSampleTest.cs @@ -164,7 +164,7 @@ private Boolean createProfile(out String customerProfileId, out String paymentPr var rnd = new AnetRandom(DateTime.Now.Millisecond); string custIndx = rnd.Next(99999).ToString(); - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" }; var paymentType = new paymentType {Item = creditCard}; var paymentProfile = new customerPaymentProfileType{ payment = paymentType }; @@ -210,7 +210,7 @@ public void SampleCodeCreateTransactionWithCreditCard() //set up data for transaction var transactionAmount = SetValidTransactionAmount(Counter); - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" }; //standard api call to retrieve response var paymentType = new paymentType {Item = creditCard}; @@ -415,7 +415,7 @@ public void SampleCodeCreateUnlinkedCredit() decimal txnAmount = SetValidTransactionAmount(Counter) / 100; //Set payment info for credit - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" }; var paymentType = new paymentType { Item = creditCard }; //Create credit request @@ -445,7 +445,7 @@ public void SampleCodeCreateTransactionPriorAuthCapture() //set up data based on transaction var transactionAmount = SetValidTransactionAmount(Counter); - var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0622" }; + var creditCard = new creditCardType { cardNumber = "4111111111111111", expirationDate = "0645" }; //Build auth only transaction request. var paymentType = new paymentType { Item = creditCard }; diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/CustomerProfileSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/CustomerProfileSampleTest.cs index 9f4fca5c..8713bc2c 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/CustomerProfileSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/CustomerProfileSampleTest.cs @@ -40,7 +40,7 @@ private customerPaymentProfileType getCustomerPaymentProfileObject() var CreditCardOne = new creditCardType { cardNumber = "4111111111111111", - expirationDate = "2032-10" + expirationDate = "2045-10" }; var PaymentOne = new paymentType @@ -82,7 +82,7 @@ public void GetCustomerPaymentProfileListSampleTest() { refId = RefId, searchType = CustomerPaymentProfileSearchTypeEnum.cardsExpiringInMonth, - month = "2032-10" + month = "2045-10" }; bool found = false; diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/ErrorMessagesSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/ErrorMessagesSampleTest.cs index 71288486..1fb93e54 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/ErrorMessagesSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/ErrorMessagesSampleTest.cs @@ -81,7 +81,7 @@ public void TestErrorMessages_ARB_ExpiredCard() { cardCode = "655", cardNumber = "4111111111111111", - expirationDate = "122013", //deliberatly set payment to use expired CC + expirationDate = "122013", // deliberately set payment to use expired CC } }, diff --git a/AuthorizeNETtest/Api/Controllers/SampleTest/eCheckTransactionSampleTest.cs b/AuthorizeNETtest/Api/Controllers/SampleTest/eCheckTransactionSampleTest.cs index 07f53003..8b2c5d02 100644 --- a/AuthorizeNETtest/Api/Controllers/SampleTest/eCheckTransactionSampleTest.cs +++ b/AuthorizeNETtest/Api/Controllers/SampleTest/eCheckTransactionSampleTest.cs @@ -39,6 +39,7 @@ public class CreateECheckTransactionSampleTest : ApiCoreTestBase [Test] + [Ignore("Bank account details are invalid")] public void CreateTransactionWithECheck_AuthCapture() { //Common code to set for all requests @@ -67,6 +68,7 @@ public void CreateTransactionWithECheck_AuthCapture() } [Test] + [Ignore("Bank account details are invalid")] public void CreateTransactionWithECheckAuth_Only() { //Common code to set for all requests @@ -98,6 +100,7 @@ public void CreateTransactionWithECheckAuth_Only() [Test] + [Ignore("Bank account details are invalid")] public void CreateCustomerProfileFromECheckTransaction() { var rnd = new AnetRandom(DateTime.Now.Millisecond); @@ -236,6 +239,7 @@ public void CreateCreditRequestForSettledECheckTransaction() } [Test] + [Ignore("Bank account details are invalid")] public void CreateTransactionWithECheckCapturePriorAuth() { //Common code to set for all requests diff --git a/AuthorizeNETtest/Api/Controllers/Test/APIInvalidCredentials.cs b/AuthorizeNETtest/Api/Controllers/Test/APIInvalidCredentials.cs index 39b41cef..b6558883 100644 --- a/AuthorizeNETtest/Api/Controllers/Test/APIInvalidCredentials.cs +++ b/AuthorizeNETtest/Api/Controllers/Test/APIInvalidCredentials.cs @@ -60,6 +60,7 @@ public void InvalidCredentialsTest() } [Test] + [Ignore("Test is invalid now due to access token being wrong")] public void IllFormedCredentialsTest() { LogHelper.info(Logger, "CreateProfileWithCreateTransactionRequestTest"); diff --git a/AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs b/AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs index 4e720f09..0fbbfe34 100644 --- a/AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs +++ b/AuthorizeNETtest/Api/Controllers/Test/ApiCoreTestBase.cs @@ -161,7 +161,7 @@ public void SetUp() CreditCardOne = new creditCardType { cardNumber = "4111111111111111", - expirationDate = "2038-12", + expirationDate = "2045-12", }; // creditCardOne.setCardCode(""); diff --git a/AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs b/AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs index 33c80507..b0c8f7c8 100644 --- a/AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs +++ b/AuthorizeNETtest/Api/Controllers/Test/CreateTransactionTest.cs @@ -318,6 +318,7 @@ public void CreateTransactionInvalidRequestSchemaValidationTest() } [Test] + [Ignore("Blob data is invalid")] public void DecryptPaymentDataRequestTest() { LogHelper.info(Logger, "decryptPaymentDataRequestTest"); diff --git a/AuthorizeNETtest/App.config b/AuthorizeNETtest/App.config index 27eeb418..96c10be7 100644 --- a/AuthorizeNETtest/App.config +++ b/AuthorizeNETtest/App.config @@ -1,9 +1,9 @@ - - - + + + diff --git a/AuthorizeNETtest/AuthorizeNETtest.csproj b/AuthorizeNETtest/AuthorizeNETtest.csproj index c2ee635b..480d276a 100644 --- a/AuthorizeNETtest/AuthorizeNETtest.csproj +++ b/AuthorizeNETtest/AuthorizeNETtest.csproj @@ -1,5 +1,6 @@  + Debug AnyCPU @@ -10,7 +11,7 @@ Properties AuthorizeNETtest AuthorizeNETtest - v4.5 + v4.6.1 512 {3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} @@ -18,6 +19,8 @@ 3.5 + + AnyCPU @@ -152,6 +155,12 @@ + + + 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}. + + +

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy