cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrading Authorize.net Webservice Reference(api) to Akamai (api2) in C#

I am Trying to Set debug URL and live URL based on flag for service call to authorize.net like below..

if (isDebug)
{    API_URL = "https://apitest.authorize.net/soap/v1/Service.asmx";
}
else
{    API_URL = "https://api.authorize.net/soap/v1/Service.asmx";
}

And then for old api webreference (https://api.authorize.net/soap/v1/Service.asmx) i was able to set this API_URL for webservice call using their service class like below where CustomerProfileWS is namespace of web reference

public CustomerProfileWS.Service Service
{    get
    {
        if (service == null)
        {            service = new CustomerProfileWS.Service();            
service
.Url = API_URL; } return service; } }

Now same way I tried to use new Akamai URL (https://api2.authorize.net/soap/v1/Service.asmx) as webreference with namespace as CustomerProfileWS2 but I am not able to find CustomerProfileWS2.Service to set API_URL.

How can i set test URL or Live URL with new api2 webreference?

Any help on this will highly appreciated.

mediazam
Member
1 REPLY 1

 

Hi mediazam,

 

The domain URL https://apitest.authorize.net  is already using Akamai, you can use this for your sandbox account. The only new URL is https://api2.authorize.net.

 

You are welcome to post this as a new feature using our Ideas forum. This will allow others to vote on and make suggestions to improve the request.
 

Thanks,

Joy

Joy
Administrator Administrator
Administrator