Skip to content
Snippets Groups Projects
Commit 48851321 authored by Joshua Walker's avatar Joshua Walker
Browse files

Merge pull request #102 from mattwire/4.6-dev

- Fix for "Error: Stripe.js token was not passed! Report this message to the site administrator" on pressing confirm payment for event.
- Update for CiviCRM 4.6 changed selectors on determining current contribution amount.
parents 30a8c2b9 445bf5cf
No related branches found
No related tags found
No related merge requests found
......@@ -138,10 +138,13 @@
buttonText = $submit.attr('value');
$submit.prop('disabled', true).attr('value', 'Processing');
// Hide payment if total is 0 and no more participants
if ($('#priceset').length) {
if ($form.find("#priceset input[type='radio']:checked").data('amount') == 0) {
return true;
}
currentTotal = cj('#pricevalue').text().replace(/[^\/\d]/g,'');
additionalParticipants = cj("#additional_participants").val();
if (currentTotal == 0 && !additionalParticipants) {
return true;
}
}
// Handle multiple payment options and Stripe not being chosen.
......
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