'state_province' => "billing_state_province-$id",
'postal_code' => "billing_postal_code-$id",
'country' => "billing_country-$id",
+ 'contactID' => 'contact_id',
);
}
if (!empty($this->_params['send_receipt'])) {
$paymentParams['email'] = $this->_contributorEmail;
}
- CRM_Core_Payment_Form::mapParams($this->_bltID, $this->_params, $paymentParams, TRUE);
+
+ // The only reason for merging in the 'contact_id' rather than ensuring it is set
+ // is that this patch is being done around the time of the stable release
+ // so more conservative approach is called for.
+ // In fact the use of $params and $this->_params & $this->_contactId vs $contactID
+ // needs rationalising.
+ $mapParams = array_merge(array('contact_id' => $contactID), $this->_params);
+ CRM_Core_Payment_Form::mapParams($this->_bltID, $mapParams, $paymentParams, TRUE);
$payment = CRM_Core_Payment::singleton($this->_mode, $this->_paymentProcessor, $this);