/** * Add risk score to the message we send to the pending queue. * The IPN listener will combine this with scores based on CVV and AVS * results returned with the authorization notification and determine * whether to capture the payment or leave it for manual review. * @return array */ protected function getStompTransaction() { $transaction = parent::getStompTransaction(); $transaction['risk_score'] = $this->risk_score; return $transaction; }