Skip to content

Commit 8368c00

Browse files
committed
Updated URLs for new Akamai endpoints
1 parent 9762d3e commit 8368c00

File tree

4 files changed

+16
-38
lines changed

4 files changed

+16
-38
lines changed

Authorize.NET/AIM/Gateway.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public enum ServiceMode {
2121
public class Gateway : AuthorizeNet.IGateway {
2222

2323
public const string TEST_URL = "https://test.authorize.net/gateway/transact.dll";
24-
public const string LIVE_URL = "https://secure.authorize.net/gateway/transact.dll";
24+
public const string LIVE_URL = "https://secure2.authorize.net/gateway/transact.dll";
2525

2626

2727
public string ApiLogin { get; set;}

Authorize.NET/Environment.cs

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,21 @@ namespace AuthorizeNet
44
using System.Configuration;
55
using System.Linq;
66

7-
/**
8-
* Determines which environment to post transactions against.
9-
* By placing the merchant's payment gateway account in Test Mode in the
10-
* Merchant Interface. New payment gateway accounts are placed in Test Mode
11-
* by default. For more information about Test Mode, see the Merchant
12-
* Integration Guide at http://www.authorize.net/support/merchant/.
13-
*
14-
* When processing test transactions in Test Mode, the payment gateway will
15-
* return a transaction ID of "0." This means you cannot test follow-on
16-
* transactions, for example, credits, voids, etc., while in Test Mode.
17-
* To test follow-on transactions, you can either submit x_test_request=TRUE
18-
* as indicated above, or process a test transaction with any valid credit card
19-
* number in live mode, as explained below.
20-
*
21-
* Note: Transactions posted against live merchant accounts using either of
22-
* the above testing methods are not submitted to financial institutions for
23-
* authorization and are not stored in the Merchant Interface.
24-
*
25-
* If testing in the live environment is successful, you are ready to submit
26-
* live transactions and verify that they are being submitted successfully.
27-
* Either remove the x_test_request field from the transaction request string,
28-
* or set it to "FALSE;" or, if you are using Test Mode, turn it off in the
29-
* Merchant Interface. To receive a true response, you must submit a
30-
* transaction using a real credit card number. You can use any valid credit
31-
* card number to submit a test transaction. You can void successful
32-
* transactions immediately to prevent live test transactions from being
33-
* processed. This can be done quickly on the Unsettled Transactions page of
34-
* the Merchant Interface. It is recommended that when testing using a live
35-
* credit card, you use a nominal value, such as $0.01. That way, if you forget
36-
* to void the transaction, the impact will be minimal. For VISA verification
37-
* transactions, submit a $0.00 value instead, if the processor accepts it.
38-
*/
7+
/*================================================================================
8+
*
9+
* Determines the target environment to post transactions.
10+
*
11+
* SANDBOX should be used for testing. Transactions submitted to the sandbox
12+
* will not result in an actual card payment. Instead, the sandbox simulates
13+
* the response. Use the Testing Guide to generate specific gateway responses.
14+
*
15+
* PRODUCTION connects to the production gateway environment.
16+
*
17+
*===============================================================================*/
18+
3919
public class Environment {
4020
public static readonly Environment SANDBOX = new Environment("https://test.authorize.net", "https://apitest.authorize.net", "https://test.authorize.net");
41-
public static readonly Environment SANDBOX_TESTMODE = new Environment("https://test.authorize.net", "https://apitest.authorize.net", "https://test.authorize.net");
42-
public static readonly Environment PRODUCTION = new Environment("https://secure.authorize.net","https://api.authorize.net","https://cardpresent.authorize.net");
43-
public static readonly Environment PRODUCTION_TESTMODE = new Environment("https://secure.authorize.net","https://api.authorize.net","https://cardpresent.authorize.net");
21+
public static readonly Environment PRODUCTION = new Environment("https://secure2.authorize.net","https://api2.authorize.net","https://cardpresent.authorize.net");
4422
public static readonly Environment LOCAL_VM = new Environment(null, null, null);
4523
public static readonly Environment HOSTED_VM = new Environment(null, null, null);
4624
public static readonly Environment CUSTOM = new Environment(null, null, null);

Authorize.NET/Merchant.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static Merchant CreateMerchant(Environment environment, string login, str
3333

3434
public bool IsSandboxEnvironment() {
3535
return (Environment !=null &&
36-
(Environment.SANDBOX == Environment || Environment.SANDBOX_TESTMODE == Environment));
36+
(Environment.SANDBOX == Environment));
3737
}
3838
}
3939
#pragma warning restore 1591

Authorize.NET/Utility/HttpXmlUtility.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public HttpXmlUtility(ServiceMode mode, string apiLogin, string transactionKey)
3030
}
3131

3232
public const string TEST_URL = "https://apitest.authorize.net/xml/v1/request.api";
33-
public const string URL = "https://api.authorize.net/xml/v1/request.api";
33+
public const string URL = "https://api2.authorize.net/xml/v1/request.api";
3434

3535
/// <summary>
3636
/// Adds authentication information to the request.

0 commit comments

Comments
 (0)