@@ -45,7 +45,22 @@ <h2>Using the library</h2>
4545config.setApiKey(< span class ="hljs-string "> "Your X-API-KEY"</ span > ));
4646config.setApplicationName(< span class ="hljs-string "> "Adyen Java API Library"</ span > );
4747Client client = < span class ="hljs-keyword "> new</ span > Client(config);
48- client.setEnvironment(Environment.TEST);
48+
49+ </ code > </ pre >
50+ </ div >
51+ < p >
52+ Set the environment to TEST if you want to connect to Adyen Test environment. In case of TEST environment,
53+ liveEndpointUrlPrefix value will be null as shown in following code snippet.
54+ < div class ="highlight highlight-text-html-java "> < pre > < code class ="language-java "> client.setEnvironment(Environment.TEST, null);
55+ </ code > </ pre >
56+ If you want to connect to Live environment, Set the environment to LIVE and provide value for
57+ liveEndPointUrlPrefix as shown in following code snippet.
58+
59+ Note : YOUR LIVE ENDPOINT URL PREFIX is the unique live url prefix which you can get from the "API URLs and
60+ Response" menu in the Adyen Customer Area
61+ </ div >
62+ < div class ="highlight highlight-text-html-java "> < pre > < code class ="language-java "> client.setEnvironment(Environment.LIVE, < span
63+ class ="hljs-string "> "YOUR LIVE ENDPOINT URL PREFIX"</ span > );
4964</ code > </ pre >
5065 </ div >
5166
@@ -59,12 +74,7 @@ <h2>Using the library</h2>
5974config.setPassword(< span class ="hljs-string "> "YOUR PASSWORD"</ span > );
6075</ code > </ pre >
6176 </ div >
62- < p >
63- The example connects you to the Adyen test platform. If you want to use our live platform use:
64- </ p >
65- < div class ="highlight highlight-text-html-java "> < pre > < code class ="language-java "> client.setEnvironment(Environment.LIVE);
66- </ code > </ pre >
67- </ div >
77+
6878
6979 < h2 > Adyen Checkout Service</ h2 >
7080 < p > Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments.
@@ -97,4 +107,4 @@ <h2>Adyen Checkout Utility Service</h2>
97107< script src ="javascripts/scale.fix.js "> </ script >
98108
99109</ body >
100- </ html >
110+ </ html >
0 commit comments