Skip to content
This repository has been archived by the owner on Sep 1, 2019. It is now read-only.

Commit

Permalink
Add form selector for event registration pages as it is different
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwire committed Aug 1, 2018
1 parent 5345706 commit 844a5e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/civicrm_stripe.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 844a5e8

Please sign in to comment.