Skip to content
Snippets Groups Projects
Commit 1eaefbd6 authored by mattwire's avatar mattwire
Browse files

Don't prompt to enter card details if amount is 0

parent 145c2ac3
No related branches found
No related tags found
1 merge request!1096.4
......@@ -352,7 +352,7 @@ CRM.$(function($) {
}
var cardError = CRM.$('#card-errors').text();
if (CRM.$('#card-element.StripeElement--empty').length) {
if (CRM.$('#card-element.StripeElement--empty').length && (getTotalAmount() !== 0.0)) {
debugging('card details not entered!');
if (!cardError) {
cardError = ts('Please enter your card details!');
......
This diff is collapsed.
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