cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

'AuthorizeNet' does not contain a definition for 'Environment'

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'

adrianp74
Member
0 REPLIES 0