Checkout icon

Upgrade your Java API library

Upgrade your Java API library to support Checkout API v72.

View source

Upgrade your adyen-java-api-library from an earlier version (such as v4.1.0) to the latest version (v40.0.0 or later) to support Checkout API v72.

This is a major upgrade because of significant changes to products, features, and architecture.

Requirements

Integration type Online payments integration with a payments server using the Adyen Java API library.

Review API changes

Use the API Diff Tool to understand the changes between your current Checkout API version and v72. This tool shows:

  • New parameters and endpoints
  • Deprecated or removed fields
  • Changes to existing functionality

Identify your use cases

There is no linear upgrade path. Identify the specific use cases in your integration. Common use cases include:

For each use case, make sure that you understand the models the latest library version that supports it.

Update your integration

Update your server-side code to use the latest version of the Java API library.

Set up the client

The workflow for API requests follows this pattern:

  1. Set up the client.
  2. Initialize the corresponding API handler.
  3. Send the request.

Get payment methods

For the Advanced flow, to get the list of available payment methods:

Make a card payment

For the Advanced flow, to make a card payment:

Process payment webhooks

To process payment webhooks and verify the HMAC signature:

Process other webhooks

For Balance Platform or Management webhooks, use the built-in webhook handlers:

Use idempotency keys

To send a request that uses API idempotency, include the idempotency-key in the HTTP header for each request:

Handle errors

Catch the ApiException to inspect the response and handle specific errors:

Test your integration

After you upgrade your library:

  1. Test all your use cases in your test environment.
  2. Verify that webhook processing works correctly.
  3. Check that your integration can handle errors for all possible scenarios.
  4. Validate that your integration can handle all the payment flows that you support.

If you have questions or need help with your upgrade, contact our Support Team.