Skip to content

Commit

Permalink
Merge pull request #393 from ebanx/hotfix/v1.8.1
Browse files Browse the repository at this point in the history
Fixed the instalments reading on checkout
  • Loading branch information
Cezar Luiz authored Mar 27, 2017
2 parents aceb879 + 28bfb3c commit 833de9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions woocommerce-gateway-ebanx/assets/js/credit-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jQuery( function($) {
var expires = $('#ebanx-card-expiry').payment('cardExpiryVal');
var card_name = $('#ebanx-card-holder-name').val() || ($('#billing_first_name').val() + ' ' + $('#billing_last_name').val());
var country = $('#billing_country').val().toLowerCase();
var instalments = $('#ebanx-container-new-credit-card').find('.ebanx-instalments').val();
var instalments = $('#ebanx-container-new-credit-card').find('select.ebanx-instalments').val();

EBANX.config.setCountry(country);

Expand All @@ -107,7 +107,7 @@ jQuery( function($) {
creditcard.card_cvv = $(cardUse).parents('.ebanx-credit-card-option').find('.wc-credit-card-form-card-cvc').val();
creditcard.brand = $(cardUse).parents('.ebanx-credit-card-option').find('.ebanx-card-brand-use').val();
creditcard.masked_number = $(cardUse).parents('.ebanx-credit-card-option').find('.ebanx-card-masked-number-use').val();
creditcard.instalments = $(cardUse).parents('.ebanx-form-row').find('.ebanx-instalments').val();
creditcard.instalments = $(cardUse).parents('.ebanx-form-row').find('select.ebanx-instalments').val();

var response = {
data: {
Expand Down

0 comments on commit 833de9b

Please sign in to comment.