Skip to content

Commit

Permalink
Update securesubmit.js
Browse files Browse the repository at this point in the history
  • Loading branch information
MSmedal committed Aug 17, 2022
1 parent 1f5cde8 commit 8e29a6f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions assets/js/securesubmit.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,21 @@
document.querySelector('.securesubmit_new_card_info')
);
} else {
if (document.getElementById("last_four"))
document.getElementById("last_four").remove();

if (document.getElementById("card_type"))
document.getElementById("card_type").remove();

if (document.getElementById("exp_month"))
document.getElementById("exp_month").remove();

if (document.getElementById("exp_year"))
document.getElementById("exp_year").remove();

if (document.getElementById("bin"))
document.getElementById("bin").remove();

var token = document.getElementById('securesubmit_token');
var last4 = document.createElement('input');
var cType = document.createElement('input');
Expand Down

0 comments on commit 8e29a6f

Please sign in to comment.