Commit 844a5e81 authored by mattwire's avatar mattwire

Add form selector for event registration pages as it is different

parent 5345706f
......@@ -224,7 +224,9 @@
}
}
else {
if ($form.find(".crm-section.payment_processor-section").length > 0) {
// Most forms have payment_processor-section but event registration has credit_card_info-section
if (($form.find(".crm-section.payment_processor-section").length > 0)
|| ($form.find(".crm-section.credit_card_info-section").length > 0)) {
stripeProcessorId = $('#stripe-id').val();
chosenProcessorId = $form.find('input[name="payment_processor_id"]:checked').val();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment