FundingSourceEnum missing `DEFFERED_DEBIT` value returned by POS terminals
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
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.
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?
- Dominant language
- Java
- Stars
- 148
- Forks
- 158
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 10
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.
More from Adyen/adyen-java-api-library
-
do not stale
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Adyen/adyen-java-api-library#2053 ·
-
do not stale
Difficulty 1/5 Under an hour Newbie friendliness 78/100
Adyen/adyen-java-api-library#2028 · 1 comment ·
-
Bug report do not stale
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Adyen/adyen-java-api-library#1953 · 2 comments ·
-
do not stale Feature
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Adyen/adyen-java-api-library#1910 · 2 comments ·
-
do not stale Feature
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Adyen/adyen-java-api-library#1899 · 8 comments · 2 reactions ·
All issues in Adyen/adyen-java-api-library
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100