/**
  * Put $result into $ipn->raw_result and store.
  * Trigger_error warning if store fails.
  *
  * @param  cbpaidPaymentNotification  $ipn
  * @param  string              $result  'SUCCESS', 'FAILED', 'MISMATCH', 'SIGNERROR', ...
  */
 protected function _storeIpnResult(&$ipn, $result)
 {
     $ipn->raw_result = $result;
     if (!$ipn->store()) {
         global $_CB_database;
         trigger_error($this->getPayName() . ' log store error:' . htmlspecialchars($_CB_database->getErrorMsg()), E_USER_NOTICE);
     }
 }