if (empty($this->_ccid)) {
return;
}
+ if (!$this->getContactID()) {
+ CRM_Core_Error::statusBounce(ts("Returning since there is no contact attached to this contribution id."));
+ }
$payment = CRM_Contribute_BAO_Contribution::getPaymentInfo($this->_ccid, 'contribution');
//bounce if the contribution is not pending.