Skip to content

Sample code for creating Subscription code doesn't resolve ANetApiRequest #101

Open

Description

@jcaulabaugh

ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX;

This line from the sample code gives the error:
ANetApiRequest is an ambiguous reference between 'AuthorizeNet.ApiCore.ANetApiRequest' and 'AuthorizeNet.Api.Contracts.V1.ANetApiRequest'

If I try to fully qualify the reference, it says 'ApiCore' namespace not found and 'Api' reference not found, respectively.

Activity

  1. gnongsie commented on Apr 9, 2019

    @gnongsie
    Contributor

    Can you tell me which solution file you opened? Also, which version of the SDK are you using?

    The namespace 'AuthorizeNet.ApiCore.ANetApiRequest' appears in the .Net Core SDK whereas the namespace 'AuthorizeNet.Api.Contracts.V1.ANetApiRequest' appears in the .Net v4.6.1 SDK.

    You should ideally be using only one reference at a time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting-replyIssues awaiting reply from original poster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions