zwaldeck / mollie

Java framework to consume the Mollie API
Other
39 stars 36 forks source link

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.0</version>
    </dependency>
  2. Build a client

    Client client = new ClientBuilder()
                       .withApiKey("test_hW7trRMaJphr8feGzMNtd5SwShQSwg")
                       .build();
  3. Use the client to execute whatever action you want to do. For example retrieving a payment:

    PaymentResponse payment = client.payments().getPayment("my-payment-id");