Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/install-library.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h3><a id="Maven_86"></a>Maven</h3>
class="hljs-tag">&lt;/<span class="hljs-title">groupId</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">artifactId</span>&gt;</span>adyen-java-api-library<span
class="hljs-tag">&lt;/<span class="hljs-title">artifactId</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">version</span>&gt;</span>1.5.2<span class="hljs-tag">&lt;/<span
<span class="hljs-tag">&lt;<span class="hljs-title">version</span>&gt;</span>1.5.4<span class="hljs-tag">&lt;/<span
class="hljs-title">version</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">dependency</span>&gt;</span>
</code></pre>
Expand Down
26 changes: 18 additions & 8 deletions docs/using-library.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,22 @@ <h2>Using the library</h2>
config.setApiKey(<span class="hljs-string">"Your X-API-KEY"</span>));
config.setApplicationName(<span class="hljs-string">"Adyen Java API Library"</span>);
Client client = <span class="hljs-keyword">new</span> Client(config);
client.setEnvironment(Environment.TEST);

</code></pre>
</div>
<p>
Set the environment to TEST if you want to connect to Adyen Test environment. In case of TEST environment,
liveEndpointUrlPrefix value will be null as shown in following code snippet.
<div class="highlight highlight-text-html-java"><pre><code class="language-java">client.setEnvironment(Environment.TEST, null);
</code></pre>
If you want to connect to Live environment, Set the environment to LIVE and provide value for
liveEndPointUrlPrefix as shown in following code snippet.

Note : YOUR LIVE ENDPOINT URL PREFIX is the unique live url prefix which you can get from the "API URLs and
Response" menu in the Adyen Customer Area
</div>
<div class="highlight highlight-text-html-java"><pre><code class="language-java">client.setEnvironment(Environment.LIVE, <span
class="hljs-string">"YOUR LIVE ENDPOINT URL PREFIX"</span> );
</code></pre>
</div>

Expand All @@ -59,12 +74,7 @@ <h2>Using the library</h2>
config.setPassword(<span class="hljs-string">"YOUR PASSWORD"</span>);
</code></pre>
</div>
<p>
The example connects you to the Adyen test platform. If you want to use our live platform use:
</p>
<div class="highlight highlight-text-html-java"><pre><code class="language-java">client.setEnvironment(Environment.LIVE);
</code></pre>
</div>


<h2>Adyen Checkout Service</h2>
<p>Adyen Checkout API provides a simple and flexible way to initiate and authorise online payments.
Expand Down Expand Up @@ -97,4 +107,4 @@ <h2>Adyen Checkout Utility Service</h2>
<script src="javascripts/scale.fix.js"></script>

</body>
</html>
</html>