The Adyen API Library for Java enables you to work with Adyen APIs and Hosted Payment Pages.
- Java 7 or higher
You can use Maven or simply download the release.
Add this dependency to your project's POM:
<dependency>
<groupId>com.adyen</groupId>
<artifactId>adyen-java-api-library</artifactId>
<version>1.5.2</version>
</dependency>
Follow the rest of our guides from the documentation on how to use this library.
The code examples on using this library are located in the library section of the java-sample-code repository: https://github.com/adyen/adyen-java-sample-code
You can configure a proxy connection by injecting your own HttpURLConnectionClient on your client instance.
Example:
...
HttpURLConnectionClient httpURLConnectionClientWithProxy = new HttpURLConnectionClient();
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("PROXY_HOST", PROXY_PORT));
httpURLConnectionClientWithProxy.setProxy(proxy);
client.setHttpClient(httpURLConnectionClientWithProxy);
If you have any problems, questions or suggestions, create an issue here or send your inquiry to support@adyen.com.
MIT license. For more information, see the LICENSE file.