}
}
+ /**
+ * Can more than one transaction be processed at once?
+ *
+ * In general processors that process payment by server to server communication support this while others do not.
+ *
+ * In future we are likely to hit an issue where this depends on whether a token already exists.
+ *
+ * @return bool
+ */
+ protected function supportsMultipleConcurrentPayments() {
+ if ($this->_paymentProcessor['billing_mode'] == 4 || $this->_paymentProcessor['payment_type'] != 1) {
+ return FALSE;
+ }
+ else {
+ return TRUE;
+ }
+ }
+
/**
* Are live payments supported - e.g dummy doesn't support this.
*
if (!empty($form->_membershipBlock) && !empty($form->_membershipBlock['is_separate_payment']) &&
(!empty($form->_paymentProcessor['class_name']) &&
- !(CRM_Utils_Array::value('billing_mode', $form->_paymentProcessor) & CRM_Core_Payment::BILLING_MODE_FORM)
+ !$form->_paymentObject->supports('MultipleConcurrentPayments')
)
) {