Adyen / Adyen/adyen-java-api-library
[Bug]: Missing afterpaytouch_US enum value for payment method type
Nobody has claimed this yet.
- 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
- Use the Adyen Java API Library.
- Call the Checkout API
/paymentMethodsendpoint for a setup where Afterpay / Cash App Afterpay is available in the US. - Observe that the API response contains the payment method type
afterpaytouch_US. - Try to deserialize/map this response using the Java API Library models.
- Observe that
afterpaytouch_USis 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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