CRM-17611 do not set dummy trxn_id on declines and do not attempt to …
}
/**
- * @param $ids
- * @param $input
+ * Check that the MDs is valid.
*
- * @return bool
+ * Note that this only checks if it is provided.
+ *
+ * @param array $ids
+ * @param array $input
+ *
+ * @throws CRM_Core_Exception
*/
public function checkMD5($ids, $input) {
+ if (empty($input['trxn_id'])) {
+ // For decline we have nothing to check against.
+ return;
+ }
$paymentProcessor = CRM_Financial_BAO_PaymentProcessor::getPayment($ids['paymentProcessor'],
$input['is_test'] ? 'test' : 'live'
);