Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVV Bug #18

Closed
rnario85 opened this issue Sep 9, 2021 · 2 comments · Fixed by #20
Closed

CVV Bug #18

rnario85 opened this issue Sep 9, 2021 · 2 comments · Fixed by #20
Assignees
Labels
bug Something isn't working

Comments

@rnario85
Copy link
Contributor

rnario85 commented Sep 9, 2021

I think this section needs to be corrected. It errors out if the CVV field is not present. Also the first .value line is redundant.
Current:
// CVV Number of Saved Card
// Bug fix: by craz3drunner (discord member)
document.getElementById("cvv").value = CREDITCARD_CVV;
document.getElementById("cvv").focus();
document.getElementById("cvv").select();
if (!document.execCommand('insertText',false, CREDITCARD_CVV)) {
document.getElementById("cvv").value = CREDITCARD_CVV;
}

New:
if(document.getElementById("cvv") != null) {
document.getElementById("cvv").focus();
document.getElementById("cvv").select();
if (!document.execCommand('insertText',false, CREDITCARD_CVV)) {
document.getElementById("cvv").value = CREDITCARD_CVV;
}
}

@kkapuria3 kkapuria3 assigned kkapuria3 and rnario85 and unassigned kkapuria3 Sep 21, 2021
@kkapuria3 kkapuria3 linked a pull request Sep 21, 2021 that will close this issue
@kkapuria3
Copy link
Owner

I think this pull request should have solved this. If so, please close this issue @rnario85

@kkapuria3 kkapuria3 added the bug Something isn't working label Sep 21, 2021
@rnario85
Copy link
Contributor Author

Fixed with latest update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants