Skip to content
Snippets Groups Projects
Commit 9d78a704 authored by Joshua Walker's avatar Joshua Walker Committed by GitHub
Browse files

Merge pull request #147 from aghstrategies/no-card-field-4.7

If there's no credit card field, don't attempt to get token (4.7)
parents 85fce922 a5a7f2de
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