Skip to content
Snippets Groups Projects
Commit 47854a15 authored by Jamie McClelland's avatar Jamie McClelland Committed by mattwire
Browse files

handle price sets with one option being $0

When you select a priceset with the value 0, the form properly hides
the credit card input fields.

However, we still try to submit a credit card to stripe which results in
an error.
parent 72dc2fcd
No related branches found
No related tags found
No related merge requests found
......@@ -271,6 +271,14 @@
}
}
if (typeof calculateTotalFee == 'function') {
var totalFee = calculateTotalFee();
if (totalFee == '0') {
debugging("Total amount is 0");
return true;
}
}
// If there's no credit card field, no use in continuing (probably wrong
// context anyway)
if (!$form.find('#credit_card_number').length) {
......
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