Adyen / adyen-android

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

Allow launching Drop-In with preselected payment method #1546

Closed fmagalhaes closed 1 month ago

fmagalhaes commented 1 month ago

Is your feature request related to a problem? Please describe. Currently, when launching Drop-In, the UI for selecting a payment method is always displayed. This can be cumbersome, especially if a payment method has already been selected beforehand in the app.

Describe the solution you'd like I would like to suggest adding a new parameter to the DropIn.startPayment() function to allow developers to launch it with a preselected payment method. This would streamline the payment process for users who have already selected a payment method in a previous screen within the app. Passing a payment method in DropIn.startPayment() would skip the step of selecting a payment method from Drop-In, opening the corresponding Component right away.

Describe alternatives you've considered The only alternative that I found was to not use Drop-In and to implement each Component manually.

Additional context This feature enhancement would allow clients to have their own native payment method selector, but all the remaining complex logic for each payment method would be handled by Adyen.

araratthehero commented 1 month ago

Hi @fmagalhaes, thanks for the suggestion. We will discuss whether this is a feasible change in the near future or if it will need to wait a bit longer. We'll post an update here when we have something.

araratthehero commented 1 month ago

Hi @fmagalhaes, After discussing with the team, I want to confirm that this feature is not supported, as payment method selection is an essential aspect of the drop-in functionality.

The expected behavior with the drop-in is to allow shoppers to choose their payment method within the drop-in interface. And if you plan to manage the selection process yourself, you'll need to implement components.

If you are using SDK version 5.0.0 or above, we have made numerous improvements to components, making them easier to implement. Additionally, component implementation allows for more finely-tuned customization, such as placing other views above or below the component.

You can find more information about components integration here.

Feel free to contact us if you have any further questions or ideas for improvement.