adyen-react-native icon indicating copy to clipboard operation
adyen-react-native copied to clipboard

Pre populated data on form fields for credit card billing address

Open MarlonAEC opened this issue 7 months ago • 1 comments

Is your feature request related to a problem? Please describe. One of the issues I have been struggling with is the billing address on cards on the Drop-in component. So if I'm adding a new card and I set the billing address it gets saved correctly but let us say I noticed I made a mistake will adding it and I hit again the button to change the address. All the fields I already populated get cleared and I have the type the whole address again from scratch. Is there a way to give a default value or save these values in some state or variable while I edit these fields to save the already populated values? check the video for reference:

https://github.com/user-attachments/assets/e0eb18be-2d8c-4501-b893-72acabf1209d

Is there a way to do this or the only way is to fully customize the components from scratch?

Describe the solution you'd like Maybe add some default values for the adyen configuration object same as there is for the allowedAddressCountryCodes property for the card.

MarlonAEC avatar Jul 25 '24 18:07 MarlonAEC