From f19f83c2fef725d20cdde201467e686fc671093f Mon Sep 17 00:00:00 2001 From: systopia Date: Thu, 27 Aug 2015 18:52:31 +0200 Subject: [PATCH] potential fix for https://github.com/drastik/com.drastikbydesign.stripe/issues/76 --- js/civicrm_stripe.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/civicrm_stripe.js b/js/civicrm_stripe.js index ddc4cdf..c90dbcb 100644 --- a/js/civicrm_stripe.js +++ b/js/civicrm_stripe.js @@ -146,9 +146,11 @@ // Handle multiple payment options and Stripe not being chosen. if ($form.find(".crm-section.payment_processor-section").length > 0) { - if (!($form.find('input[name="hidden_processor"]').length > 0)) { - return true; - } + // REMARK: possible workaround for https://github.com/drastik/com.drastikbydesign.stripe/issues/76 + // FIXME: what was this intended for? This makes STRIPE bail in my environment... + // if (!($form.find('input[name="hidden_processor"]').length > 0)) { + // return true; + // } if ($form.find('input[name="payment_processor"]:checked').length) { processorId=$form.find('input[name="payment_processor"]:checked').val(); if (!($form.find('input[name="stripe_token"]').length) || ($('#stripe-id').length && $('#stripe-id').val() != processorId)) {