Skip to content
Snippets Groups Projects
Commit a5a7f2de authored by Andie Hunt's avatar Andie Hunt
Browse files

If there's no credit card field, don't attempt to get token

parent 85fce922
No related branches found
No related tags found
No related merge requests found
......@@ -177,6 +177,12 @@
return true;
}
// If there's no credit card field, no use in continuing (probably wrong
// context anyway)
if (!$form.find('#credit_card_number').length) {
return true;
}
event.preventDefault();
event.stopPropagation();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment