diff --git a/commerce_payleap.module b/commerce_payleap.module
index 04baade..c6570d1 100644
--- a/commerce_payleap.module
+++ b/commerce_payleap.module
@@ -359,11 +359,22 @@ function commerce_payleap_cof_submit_form_submit($payment_method, $pane_form, $p
           watchdog('commerce_payleap', 'Credit Card @card_id added to Customer Profile @profile_id for user @uid.', array('@card_id' =>  $info['CcInfoKey'] , '@profile_id' => $info['CustomerKey'], '@uid' => $order->uid));
         }
         else {
-          // But if we could not find a Customer Profile, assume the existing
-          // Customer Profile ID we had is no longer valid and deactivate the card
-          // data that resulted in the error.
-          $card_data['status'] = 0;
-          commerce_cardonfile_data_save($card_data);
+          // If we could not find a Customer Profile, assume the existing
+          // Customer Profile ID we had is no longer valid and deactivate all
+          // stored cards:
+          if($response['msg'] == 'Invalid CustomerKey') {
+            foreach($stored_cards as $card) {
+              $card['status'] = 0;
+              commerce_cardonfile_data_save($card);
+            }
+            drupal_set_message(t('Your account has been updated on our payment gateway. For security reasons, we must delete all cards you stored with us previously. We\'re sorry for any inconvience this might cause you.'), 'error');
+          }
+          else {
+            drupal_set_message(t('We received the following error processing your card. Please enter you information again or try a different card.'),'error');
+            if (!empty($response['msg'])) {
+              drupal_set_message(check_plain($response['msg']), 'error');
+            }
+          }
           watchdog('commerce_payleap', 'Credit Card save error. Unable to save credit card for user @uid. @msg', array('@uid' => $order->uid, '@msg' => $response['msg']));
           return FALSE;
         }
