Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can one dynamically at runtime set the colors in the Credit Card entry form? #949

Open
spach10 opened this issue Dec 7, 2022 · 3 comments
Labels
Enhancement Indicates a new feature request

Comments

@spach10
Copy link

spach10 commented Dec 7, 2022

I'm trying to dynamically change the colors of the theming on the Credit card entry form. In our app we allow our clients to white label and choose their colors. Because of this we cannot declare whitelabel colors in the XML styles file. Is there a way to pass in a Style configuration when building the DropInConfiguration.Builder or the CardConfiguration.Builder?

For example, all I would want to do it something like this:

DropInConfiguration.Builder(
                context = context,
                serviceClass = AdyenDropInService::class.java,
                clientKey = ADYEN_KEY_TEST
            )
                ....
                ....
                .setStyleConfiguration(dynamicWhiteLabelColor)
                .build()

to change the color in the image from blue to whichever color our client as set as their whitelabel color.

Screenshot 2022-12-07 at 14 48 28

@etman55
Copy link
Contributor

etman55 commented Dec 8, 2022

Thank you for reaching out.
It is not supported to dynamically pass the style through configuration.
Customization could only be done via overriding the styles declared in xml files.

@spach10
Copy link
Author

spach10 commented Dec 8, 2022 via email

@etman55
Copy link
Contributor

etman55 commented Dec 9, 2022

Unfortunately, at the moment we don't have plans to support dynamic styling on Android. In case this changes in the future we'll make sure to update this ticket.

@jreij jreij added the Enhancement Indicates a new feature request label Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Indicates a new feature request
Projects
None yet
Development

No branches or pull requests

3 participants