From 844a5e81aec86ee9054ecc1f64891c497dc23d5e Mon Sep 17 00:00:00 2001 From: "Matthew Wire (MJW Consulting)" Date: Wed, 1 Aug 2018 16:23:04 +0100 Subject: [PATCH] Add form selector for event registration pages as it is different --- js/civicrm_stripe.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/civicrm_stripe.js b/js/civicrm_stripe.js index 7c568f6..3dfe2d6 100644 --- a/js/civicrm_stripe.js +++ b/js/civicrm_stripe.js @@ -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(); }