1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Replace whitespace within input fields: authorize-authorize-card.js

This commit is contained in:
Benjamin Beganović 2021-07-14 13:03:05 +02:00
parent 9165fe5819
commit d9ba8a2e3a

View File

@ -27,9 +27,9 @@ class AuthorizeAuthorizeCard {
var cardData = {};
cardData.cardNumber = myCard.CardJs('cardNumber').replace(/[^\d]/g, '');
cardData.month = myCard.CardJs('expiryMonth');
cardData.year = myCard.CardJs('expiryYear');;
cardData.cardCode = document.getElementById("cvv").value;
cardData.month = myCard.CardJs('expiryMonth').replace(/[^\d]/g, '');
cardData.year = myCard.CardJs('expiryYear').replace(/[^\d]/g, '');
cardData.cardCode = document.getElementById("cvv").value.replace(/[^\d]/g, '');;
var secureData = {};
secureData.authData = authData;