Skip to content

zwaldeck/mollie

Repository files navigation

Mollie API with Java 11+

Build & Test Maven Central badge Javadocs

License

The source code is licensed under the Apache License, Version 2.0.

Java

This library requires Java 11+.

Usage

  1. Add the dependency to your project. For example with maven:
<dependency>
    <groupId>be.woutschoovaerts</groupId>
    <artifactId>mollie</artifactId>
    <version>4.4.1</version>
</dependency>
  1. Build a client
Client client = new ClientBuilder()
                       .withApiKey("test_hW7trRMaJphr8feGzMNtd5SwShQSwg")
                       .build();
  1. Use the client to execute whatever action you want to do. For example retrieving a payment:
PaymentResponse payment = client.payments().getPayment("my-payment-id");