}
// Build payment processor form
- if ($this->_ppType) {
+ if ($this->_ppType || $this->_isBillingAddressRequiredForPayLater) {
CRM_Core_Payment_ProcessorForm::buildQuickForm($this);
// Return if we are in an ajax callback
if ($this->_snippet) {
//set as Primary participant
$params['is_primary'] = 1;
- if ($this->_values['event']['is_pay_later'] && !array_key_exists('hidden_processor', $params)) {
+ if ($this->_values['event']['is_pay_later']
+ && (!array_key_exists('hidden_processor', $params) || $params['payment_processor'] == 0)) {
$params['is_pay_later'] = 1;
}
else {
else {
$lineItem = array();
CRM_Price_BAO_PriceSet::processAmount($this->_values['fee'], $params, $lineItem);
+ if ($params['tax_amount']) {
+ $this->set('tax_amount', $params['tax_amount']);
+ }
$this->set('lineItem', array($lineItem));
$this->set('lineItemParticipantsCount', array($primaryParticipantCount));
}