|
5 | 5 | import java.io.InputStreamReader; |
6 | 6 |
|
7 | 7 | import net.authorize.sample.VisaCheckout.*; |
| 8 | +import net.authorize.util.Constants; |
8 | 9 | import net.authorize.sample.PaymentTransactions.*; |
9 | 10 | import net.authorize.sample.PayPalExpressCheckout.*; |
10 | 11 | import net.authorize.sample.PayPalExpressCheckout.Void; |
@@ -152,11 +153,11 @@ private static void RunMethod(String methodName) { |
152 | 153 | // Proxy server settings. |
153 | 154 | // Enable these lines for using Sample Codes behind a proxy server |
154 | 155 |
|
155 | | - // System.setProperty("https.proxyUse", "true"); |
156 | | - // System.setProperty("https.proxyHost", "example.proxy.server"); |
157 | | - // System.setProperty("https.proxyPort", "portNumber"); |
158 | | - // System.setProperty("https.proxyUserName", "exampleUsername"); |
159 | | - // System.setProperty("https.proxyPassword", "examplePassword"); |
| 156 | +// System.setProperty(Constants.HTTPS_USE_PROXY, "true"); |
| 157 | +// System.setProperty(Constants.HTTPS_PROXY_HOST , "example.proxy.server"); |
| 158 | +// System.setProperty(Constants.HTTPS_PROXY_PORT, "portNumber"); |
| 159 | +// System.setProperty(Constants.HTTPS_PROXY_USERNAME, "exampleUsername"); |
| 160 | +// System.setProperty(Constants.HTTPS_PROXY_PASSWORD, "examplePassword"); |
160 | 161 |
|
161 | 162 | switch (methodName) { |
162 | 163 | case "DecryptVisaCheckoutData": |
|
0 commit comments