Adyen / adyen-flutter

MIT License
23 stars 7 forks source link

Multiple strings for card submit button #291

Open lazarohcm opened 3 days ago

lazarohcm commented 3 days ago

Is your feature request related to a problem? Please describe.

I'm currently in the migrating payment providers and My application has different flows that require interaction with the card component.

I can change it from or another with the localized strings (adyen.submitButton), but I'm failing to find a solution where I can have both contents and change it depending on the context.

Am I correct to assume that it is not possible with the Flutter SDK at the moment?

Describe the solution you'd like

Ideally when setting up the CardComponentConfiguration there should be an option in which we can pass that will use different localized strings based on the type, maybe similar to the Apple Pay configuration? .

This is it. I hope I'm mistaken and just missing something obvious, instead it being a feature request

Robert-SD commented 3 days ago

Hi @lazarohcm, Thank you very much for opening the request and suggesting an enhancement.

You are correct, at the moment, the Flutter SDK does not offer this capability. We will discuss the feature request and will provide an update afterwards. Maybe introducing types similar to Apple Pay might actually be a feasible way in supporting context related strings. But we need to align the solution with the other Checkout SDKs as well.

Let's keep this issue open for future discussion.

lazarohcm commented 1 day ago

Thanks for explaining it! Hope we can get this feature soon