Adyen / adyen-android

Adyen Android Drop-in and Components
https://docs.adyen.com/checkout/android
MIT License
123 stars 66 forks source link

Saved UnionPay savings card payments do not require a CVC #1689

Open lonelee opened 1 month ago

lonelee commented 1 month ago

Describe the bug When using the Adyen Android SDK version 5.0.1 (the issue also occurs in the latest version 5.5.0), users attempting to make a payment with a saved UnionPay savings card are incorrectly prompted by the SDK to enter the CVC (Card Verification Code). For UnionPay savings cards, users should not be required to enter a CVC during the payment process.

To Reproduce Steps to reproduce the behavior:

  1. Enter the payment interface and select the option to pay with a saved UnionPay savings card.
  2. Click the payment button to proceed with the payment process.
  3. The SDK prompts for the entry of a CVC.

Expected behavior The expected behavior is that when a user makes a payment with a UnionPay savings card, the SDK should recognize that a CVC is not required for savings cards and allow the user to complete the payment without entering a CVC.

Screenshots If applicable, add screenshots to help explain your problem. Snipaste_2024-07-09_15-34-34

Smartphone (please complete the following information):

OscarSpruit commented 1 month ago

Hi @lonelee, thank you for raising this issue! It is similar to #1616. Basically, our SDK doesn't support automatically hiding the CVC field based on the brand for stored cards. A workaround would be to use setHideCvcStoredCard(true). The downside of this is that it will hide the CVC field for all stored cards, so if you require one brand to show the field and another to hide the field it will not work.

We will discuss internally if and how we could realise this feature. We will keep you posted here.