diff --git a/assets/Yves/js/modules/payment-method.js b/assets/Yves/js/modules/payment-method.js index 99e1e78ba5..287d8f2fc4 100644 --- a/assets/Yves/js/modules/payment-method.js +++ b/assets/Yves/js/modules/payment-method.js @@ -40,6 +40,8 @@ function initHostedIframe(config) { document.paymentform = document.getElementById(config.formId); var $form = $(config.formSelector); var clientApiConfig = JSON.parse($form.find(config.clientApiConfigInput).val()); + var language = $form.find(config.languageInput).val().substr(0,2); + config.hostedIframeConfig.language = Payone.ClientApi.Language[language]; var iframes = new Payone.ClientApi.HostedIFrames(config.hostedIframeConfig, clientApiConfig); iframes.setCardType("V");