Event Cart: add support for the Credit Card type icons
authorMathieu Lutfy <mathieu@symbiotic.coop>
Wed, 1 May 2019 15:33:37 +0000 (11:33 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Wed, 1 May 2019 15:33:37 +0000 (11:33 -0400)
CRM/Event/Cart/Form/Checkout/Payment.php

index d6906fd94ce61da937f21bf09938857bb08b26d8..0f4f2448181ce14235305a207d728fdaa9ae709a 100644 (file)
@@ -175,6 +175,10 @@ class CRM_Event_Cart_Form_Checkout_Payment extends CRM_Event_Cart_Form_Cart {
       );
       $this->assign('pay_later_instructions', $this->pay_later_receipt);
     }
+
+    // Event Cart does not support multiple payment processors
+    // so we cannot call $this->preProcessPaymentOptions();
+    CRM_Financial_Form_Payment::addCreditCardJs($this->_paymentProcessor['id']);
   }
 
   /**