Skip to content

Commit

Permalink
Merge pull request #5 from spryker-eco/fix/eco-687-credit-card-error-…
Browse files Browse the repository at this point in the history
…language

ECO-687: Fixed error message language for credit card payment method on checkout
  • Loading branch information
ievgenvarava authored Aug 8, 2017
2 parents dcdc84a + a3a808f commit a3ee31a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/Yves/js/modules/payment-method.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a3ee31a

Please sign in to comment.