Adyen / Adyen/adyen-java-api-library
FundingSourceEnum missing `DEFFERED_DEBIT` value returned by POS terminals
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 148
- Forks
- 158
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 10
Description
When processing payment responses from Adyen POS terminals, the additionalData.fundingSource field can return DEFFERED_DEBIT, which is not present in com.adyen.model.checkout.CardDetails.FundingSourceEnum.
The current enum only contains: CREDIT, DEBIT, PREPAID.
This causes FundingSourceEnum.fromValue() to throw an exception for a valid terminal funding source, resulting in errors like:
fundingType unknown: AdditionalResponse[additionalData=AdditionalData[fundingSource=DEFFERED_DEBIT, acquirerResponseCode=00 : Approved or completed successfully, cardScheme=visastandardcredit, applicationLabel=Visa, ...]]
Could the enum be extended to cover this value, or is there some other enum for webhook parsing?
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 at com.adyen.model.checkout.CardDetails.FundingSourceEnum and inspect its fromValue() handling for the POS response value DEFFERED_DEBIT. Check the existing enum tests or add coverage for parsing this value, then verify that valid terminal responses no longer raise the reported exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- payments
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100