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.
โ10-09-2015 06:41 AM
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