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

Modify to stop error "Error: Stripe.js token was not passed! Report this...

Modify to stop error "Error: Stripe.js token was not passed! Report this message to the site administrator" on pressing confirm payment for event.
parent 30a8c2b9
No related branches found
No related tags found
No related merge requests found
......@@ -138,11 +138,11 @@
buttonText = $submit.attr('value');
$submit.prop('disabled', true).attr('value', 'Processing');
if ($('#priceset').length) {
if ($form.find("#priceset input[type='radio']:checked").data('amount') == 0) {
return true;
}
}
// if ($('#priceset').length) {
// if ($form.find("#priceset input[type='radio']:checked").data('amount') == 0) {
// return true;
// }
// }
// Handle multiple payment options and Stripe not being chosen.
if ($form.find(".crm-section.payment_processor-section").length > 0) {
......
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