public $_skipDupeRegistrationCheck = FALSE;
public $_paymentProcessorID;
- public $_snippet;
/**
* @var boolean determines if fee block should be shown or hidden
$this->_noFees = (($eventFull || $this->_requireApproval) && !$this->_allowConfirmation);
$this->_paymentProcessors = $this->_noFees ? array() : $this->get('paymentProcessors');
$this->preProcessPaymentOptions();
- if ($this->_snippet) {
- return;
- }
$this->_allowWaitlist = FALSE;
if ($eventFull && !$this->_allowConfirmation && !empty($this->_values['event']['has_waitlist'])) {
* @return void
*/
public function setDefaultValues() {
- if ($this->_paymentProcessorID && $this->_snippet && !($this->_paymentProcessor['billing_mode'] & CRM_Core_Payment::BILLING_MODE_FORM)) {
- // see function comment block for explanation of this. Note that CRM-15555 will require this to look at the billing form fields not the
- // billing_mode which
- return;
- }
$this->_defaults = array();
$contactID = $this->getContactID();
$billingDefaults = $this->getProfileDefaults('Billing', $contactID);
$this->_defaults["billing_state_province_id-{$this->_bltID}"] = $config->defaultContactStateProvince;
}
- if ($this->_snippet) {
- return $this->_defaults;
- }
-
if ($contactID) {
$fields = array();
}
CRM_Core_Payment_ProcessorForm::buildQuickForm($this);
- // Return if we are in an ajax callback
- if ($this->_snippet) {
- return;
- }
$contactID = $this->getContactID();
if ($contactID) {