I added AuthorizeNet through nuget, used the sample C# code from the documentation to test performing an authorization and the code won't compile past the first line of code:
using AuthorizeNet.Api.Controllers;
using AuthorizeNet.Api.Contracts.V1;
using AuthorizeNet.Api.Controllers.Bases;This is the line that won't compile:
ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX;error CS0117: 'AuthorizeNet' does not contain a definition for 'Environment'
โ09-08-2025 08:26 PM