$payment = CRM_Core_Payment::singleton($this->_mode, $this->_paymentProcessor, $this);
$expressParams = $payment->getExpressCheckoutDetails($this->get('token'));
- $this->_params['payer'] = $expressParams['payer'];
+ $this->_params['payer'] = CRM_Utils_Array::value('payer', $expressParams);
$this->_params['payer_id'] = $expressParams['payer_id'];
$this->_params['payer_status'] = $expressParams['payer_status'];
// create relationship
$relParams['contact_check'][$orgID] = 1;
$cid = array('contact' => $contactID);
- CRM_Contact_BAO_Relationship::createMultiple($relParams, $cid);
+ CRM_Contact_BAO_Relationship::legacyCreateMultiple($relParams, $cid);
// if multiple match - send a duplicate alert
if ($dupeIDs && (count($dupeIDs) > 1)) {