Adyen / Adyen/adyen-java-api-library

[Bug]: Missing afterpaytouch_US enum value for payment method type

Open Beginner friendly
#1,953 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug report do not stale
Dominant language
Java
Stars
148
Forks
158
Avg merge
3d 3h
Merged PRs (30d)
10

Description

Description

The Checkout API /paymentMethods endpoint can return the payment method type afterpaytouch_US, but this value does not seem to be available in the corresponding enum/model in the Adyen Java API Library. This causes an inconsistency between the API response and the Java library models/deserialization. Payment method type returned by API: afterpaytouch_US Expected: The Java API Library should support afterpaytouch_US as a valid payment method type, or handle this returned value without deserialization issues.

Steps to reproduce
  1. Use the Adyen Java API Library.
  2. Call the Checkout API /paymentMethods endpoint for a setup where Afterpay / Cash App Afterpay is available in the US.
  3. Observe that the API response contains the payment method type afterpaytouch_US.
  4. Try to deserialize/map this response using the Java API Library models.
  5. Observe that afterpaytouch_US is not available in the corresponding enum/model.
Actual behavior

The /paymentMethods API response contains afterpaytouch_US, but the Java API Library does not include this value in the corresponding enum/model.

As a result, the API response and the Java library models are out of sync, which can lead to deserialization or mapping issues.

Expected behavior

Expected behavior:
afterpaytouch_US should be supported as a valid payment method type in the Java API Library.

Code snippet or screenshots (if applicable)

No response

Adyen Java API Library version

40.0.0

Java version

21

Operating System

Linux

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Java enum or model used to deserialize payment method types returned by the Checkout API /paymentMethods endpoint. Compare its values with the reported afterpaytouch_US response value, then verify that a response containing it deserializes successfully. Done means the library accepts afterpaytouch_US as a valid payment method type.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, payments
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.