Skip to content

Commit

Permalink
Braintree Validation Messages on form, PFW-167
Browse files Browse the repository at this point in the history
  • Loading branch information
kcppdevelopers committed Jul 12, 2018
1 parent e145856 commit 363bd0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/wc-gateway-braintree-angelleye.php
Original file line number Diff line number Diff line change
Expand Up @@ -510,10 +510,10 @@ function is_angelleye_braintree_selected() {
unique_form_for_validation.append('<input type="hidden" class="is_submit" name="is_submit" value="yes"/>');
$('.braintree-device-data', ccForm).remove();
$('.braintree-token', ccForm).remove();
$('.woocommerce-error').remove();
$('.is_submit').remove();
unique_form_for_validation.prepend('<ul class="woocommerce-error"><li>' + err + '</li></ul>');
$form.unblock();
$form.submit();
return true;
}
if (payload) {
$('.braintree-token', ccForm).remove();
Expand Down

0 comments on commit 363bd0e

Please sign in to comment.