I've followed the instructions for Hello World via C# from here:http://developer.authorize.net/hello_world/
But I get an error with this sample code here:
Line 18: ApiOperationBase.RunEnvironment = AuthorizeNet.Environment.SANDBOX;
And the error is:
Using the generic type 'AuthorizeNet.Api.Controllers.Bases.ApiOperationBase<TQ,TS>' requires 2 type arguments
I simply copied and pasted the code, so I know it shouldn't be doing this. I already did step 1 of "Install-Package AuthorizeNet".
Solved! Go to Solution.
12-08-2015 08:09 AM
https://github.com/AuthorizeNet/sdk-dotnet
look like they change the code
12-08-2015 09:37 AM
https://github.com/AuthorizeNet/sdk-dotnet
look like they change the code
12-08-2015 09:37 AM
Ah! I see. Thank you.
12-08-2015 09:41 AM
Now I am getting this error...
Environment not set. Set environment using setter or use overloaded method to pass appropriate environment
for this line...
Line 42: controller.Execute();
12-08-2015 11:42 AM - edited 12-08-2015 11:43 AM
I am not finding the tutorial provided by Authorize.Net to be very helpful for initial testing. Also I am using ASP.NET Forms, not MVC.
12-08-2015 12:29 PM
Has anyone got the fix for this? Direct out of the demo code:
controller.Execute();
throws //Environment not set. Set environment using setter or use overloaded method to pass appropriate environment
12-23-2015 12:13 PM