SumUpDeveloper
Dashboard

Java Changelog

Java SDK

SDKJavaPermalink

We are happy to announce the release of our Java(Opens in a new tab) SDK. The SDK is maintained under sumup/sumup-java(Opens in a new tab) and covers all of SumUp’s public APIs.

import com.sumup.sdk.SumUpClient;
import com.sumup.sdk.models.CheckoutCreateRequest;
import com.sumup.sdk.models.Currency;

SumUpClient client = SumUpClient.builder().build();

CheckoutCreateRequest request =
    CheckoutCreateRequest.builder()
        .amount(25.00f)
        .currency(Currency.EUR)
        .checkoutReference("ORDER-1001")
        .merchantCode(System.getenv("SUMUP_MERCHANT_CODE"))
        .description("Online payment via card widget")
        .build();

var checkout = client.checkouts().createCheckout(request);
System.out.println(checkout.id());

See the repository for more examples(Opens in a new tab) and don’t hesitate to let us know if you have any questions.

Type to search…