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

More flexibility for installmentOptionMonths #2592

Open
y-a-v-a opened this issue Mar 8, 2024 · 2 comments
Open

More flexibility for installmentOptionMonths #2592

y-a-v-a opened this issue Mar 8, 2024 · 2 comments
Labels
Enhancement New feature or request

Comments

@y-a-v-a
Copy link

y-a-v-a commented Mar 8, 2024

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

The translation key installmentOptionMonths is hard coded to contain the word "months". Especially in the situation that we would want to offer later payment in 1 installment, it sounds a bit weird to communicate to the consumer that she has to pay within one month.

Describe the solution you'd like

We would kindly request to take into consideration a change of this label into "times" or a different common synonym or a way to supply the wording ourselves.

Describe alternatives you've considered

Adyen support has suggested us to download the prebuilt package and change the word "months" into "times" ourselves. We are reluctant to do so because this goes against our general software development perspectives and would create a divergence of your development cycle that might lead to more complexity and maintenance.

@y-a-v-a y-a-v-a added the Enhancement New feature or request label Mar 8, 2024
@longyulongyu
Copy link
Contributor

Hi @y-a-v-a ,

Thanks for your feedback, the installment when displayed as x months actually means monthly installments for most of the cases, but I will bring this up internally if we need to introduce a new translation key in order to cover the scenario for non-monthly installments.

For a quick fix, the text displayed in each localization can be customized, allowing you to replace the default text with your own. In your case, if you want to change the months into times, you could feed your own translation strings into the checkout configuration, e.g:

const checkout = await AdyenCheckout({
        translations: {
            'en-US': {
                installmentOptionMonths: '%{times} time(s)'
            }
            // translations for other locales
        },
        // the rest props
    });

Let us know if this quick fix works for you.

@y-a-v-a
Copy link
Author

y-a-v-a commented Mar 14, 2024

Hi @longyulongyu thank you for your reply! We're going to look into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants