diff --git a/js/gratipay/routes.js b/js/gratipay/routes.js index 07ad3d8680..2fd001a3ca 100644 --- a/js/gratipay/routes.js +++ b/js/gratipay/routes.js @@ -79,7 +79,6 @@ Gratipay.routes.cc.init = function() { $('form#credit-card').submit(Gratipay.routes.cc.submit); Gratipay.routes.cc.formatInputs( - $('#card_number'), $('#expiration_month'), $('#expiration_year'), $('#cvv') @@ -89,7 +88,7 @@ Gratipay.routes.cc.init = function() { /* Most of the following code is taken from https://github.com/wangjohn/creditly */ -Gratipay.routes.cc.formatInputs = function (cardNumberInput, expirationMonthInput, expirationYearInput, cvvInput) { +Gratipay.routes.cc.formatInputs = function (expirationMonthInput, expirationYearInput, cvvInput) { function getInputValue(e, element) { var inputValue = element.val().trim(); inputValue = inputValue + String.fromCharCode(e.which); diff --git a/www/~/%username/routes/credit-card.spt b/www/~/%username/routes/credit-card.spt index dc0ea1bd5a..9d44330008 100644 --- a/www/~/%username/routes/credit-card.spt +++ b/www/~/%username/routes/credit-card.spt @@ -38,13 +38,13 @@ else: {% endif %}