Skip to content

Commit 941754a

Browse files
authored
Merge pull request #132 from Adyen/setEnvironment_doc_change
[PW-689]: doc change only** setEnvironment instructions and library version update
2 parents 185fa94 + ffde581 commit 941754a

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

docs/install-library.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ <h3><a id="Maven_86"></a>Maven</h3>
4949
class="hljs-tag">&lt;/<span class="hljs-title">groupId</span>&gt;</span>
5050
<span class="hljs-tag">&lt;<span class="hljs-title">artifactId</span>&gt;</span>adyen-java-api-library<span
5151
class="hljs-tag">&lt;/<span class="hljs-title">artifactId</span>&gt;</span>
52-
<span class="hljs-tag">&lt;<span class="hljs-title">version</span>&gt;</span>1.5.2<span class="hljs-tag">&lt;/<span
52+
<span class="hljs-tag">&lt;<span class="hljs-title">version</span>&gt;</span>1.5.4<span class="hljs-tag">&lt;/<span
5353
class="hljs-title">version</span>&gt;</span>
5454
<span class="hljs-tag">&lt;/<span class="hljs-title">dependency</span>&gt;</span>
5555
</code></pre>

docs/using-library.html

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,22 @@ <h2>Using the library</h2>
4545
config.setApiKey(<span class="hljs-string">"Your X-API-KEY"</span>));
4646
config.setApplicationName(<span class="hljs-string">"Adyen Java API Library"</span>);
4747
Client 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>
5974
config.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

Comments
 (0)