Skip to content

Commit 09557f5

Browse files
author
brianmc
committed
Updated URLs with new akamai endpoints
1 parent ba0eb5d commit 09557f5

3 files changed

Lines changed: 13 additions & 41 deletions

File tree

src/main/java/net/authorize/Environment.java

Lines changed: 12 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,19 @@
11
package net.authorize;
22

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

src/main/java/net/authorize/Merchant.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ public void setEnvironment(Environment environment) {
132132
*/
133133
public boolean isSandboxEnvironment() {
134134
return (environment!=null&&
135-
(Environment.SANDBOX.equals(this.environment) ||
136-
Environment.SANDBOX_TESTMODE.equals(this.environment)));
135+
(Environment.SANDBOX.equals(this.environment)));
137136
}
138137

139138
/**

src/main/java/net/authorize/util/HttpClient.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,6 @@ public static BasicXmlDocument executeXML(Environment environment, Transaction t
257257

258258
if(rawResponseString == null) return null;
259259

260-
if(Environment.SANDBOX.equals(environment) ||
261-
Environment.SANDBOX_TESTMODE.equals(environment)) {
262-
263-
}
264260

265261
int mark = rawResponseString.indexOf("<?xml");
266262
if(mark == -1){

0 commit comments

Comments
 (0)