I have this code there...
var ewayClient = RapidClientFactory.NewRapidClient(Platform.eWayApiKey, Platform.eWayPassword, EndPoint);
ewayClient.SetVersion(31);
var transaction = CreateTransaction();
var preAuthTransaction = ewayClient.Create(PaymentMethod.ResponsiveShared, transaction);
Assert.IsNull(preAuthTransaction.Errors);
It works as expected in a unit test, but if I run it within the context of a running web application, it returns an error.
I have two separate ASP.NET applications set up in two separate solutions. Each has a unit test running the code above. In both solutions the test passes.
I copy the same code into a basic GET controller action (not including the assertion) and the first solution gets a result back with no Errors, but the second solution gets the dreaded S9992 error.
Both sites are running on IIS Express 10.
How can the same code run in 4 separate contexts, yet one context (of running in web application locally and when deployed to Azure)
It doesn't currently make sense.
I have confirmed the ApiKey and Password is correct and is the same across all four contexts. Create Transaction is hardcoded with a few common properties/addresses/etc.
NOTE: I'm using NuGet package version 1.6.0-beta1