diff --git a/commerce_authnet.module b/commerce_authnet.module
index 23787b0..9e7fdef 100755
--- a/commerce_authnet.module
+++ b/commerce_authnet.module
@@ -394,8 +394,19 @@ function commerce_authnet_aim_submit_form_submit($payment_method, $pane_form, $p
 
   // If the payment failed, display an error and rebuild the form.
   if ($response[0] != '1') {
-    drupal_set_message(t('We received the following error processing your card. Please enter you information again or try a different card.'), 'error');
-    drupal_set_message(check_plain($response[3]), 'error');
+    // Create the default error messages array.
+    $error_messages = array(
+      0 => t('We received the following error processing your card. Please enter you information again or try a different card.'),
+      1 => check_plain($response[3]),
+    );
+
+    // Allow other modules to alter the output.
+    drupal_alter('commerce_authnet_aim_error_messages', $error_messages, $response);
+
+    foreach ($error_messages as $error_message) {
+      drupal_set_message($error_message, 'error');
+    }
+
     return FALSE;
   }
 
@@ -636,8 +647,19 @@ function commerce_authnet_cim_submit_form_submit($payment_method, $pane_form, $p
 
     // If the payment failed, display an error and rebuild the form.
     if ($response[0] != '1') {
-      drupal_set_message(t('We received the following error processing your card. Please enter you information again or try a different card.'), 'error');
-      drupal_set_message(check_plain($response[3]), 'error');
+      // Create the default error messages array.
+      $error_messages = array(
+        0 => t('We received the following error processing your card. Please enter you information again or try a different card.'),
+        1 => check_plain($response[3]),
+      );
+
+      // Allow other modules to alter the output.
+      drupal_alter('commerce_authnet_aim_error_messages', $error_messages, $response);
+
+      foreach ($error_messages as $error_message) {
+        drupal_set_message($error_message, 'error');
+      }
+
       return FALSE;
     }
 
