Skip to content

Commit

Permalink
[IMP] website_payment: remove debug code
Browse files Browse the repository at this point in the history
Remove logging unecessary information. While this info is not persistent or
transmited, there is no reason to log it in developper console.
  • Loading branch information
mart-e committed Mar 11, 2016
1 parent d67772d commit 2346a51
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions addons/website_payment/static/src/js/payment_acquirer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ $(document).ready(function () {
$('input#cc_number').on('focusout', function (e) {
var valid_value = $.payment.validateCardNumber(this.value);
var card_type = $.payment.cardType(this.value);
console.log('Validating card', this.value, 'is a', card_type, 'and valid:', valid_value);
if (card_type) {
$(this).parent('.form-group').children('.card_placeholder').removeClass().addClass('card_placeholder ' + card_type);
}
Expand All @@ -28,7 +27,6 @@ $(document).ready(function () {
var cc_nbr = $(this).parents('.oe_cc').find('#cc_number').val();
var card_type = $.payment.cardType(cc_nbr);
var valid_value = $.payment.validateCardCVC(this.value, card_type);
console.log('Validating CVC', this.value, 'for card', cc_nbr, 'of type', card_type, 'and is valid:', valid_value);
if (valid_value) {
$(this).parent('.form-group').addClass('has-success');
$(this).parent('.form-group').removeClass('has-error');
Expand All @@ -44,7 +42,6 @@ $(document).ready(function () {
var month = expiry_value.month || '';
var year = expiry_value.year || '';
var valid_value = $.payment.validateCardExpiry(month, year);
console.log('Validating expiry', this.value, 'month', month, 'year', year, 'and is valid:', valid_value);
if (valid_value) {
$(this).parent('.form-group').addClass('has-success');
$(this).parent('.form-group').removeClass('has-error');
Expand Down

0 comments on commit 2346a51

Please sign in to comment.