From: Andrew Engelbrecht Date: Fri, 5 Jan 2018 21:05:20 +0000 (-0500) Subject: changed the message given for TC 'cvv' error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8bd779cd74f1d58795a6b81f2015d702808432ce;p=com-trustcommerce.git changed the message given for TC 'cvv' error the 'cvv' error message appears to be a generic error code that could imply incorrect cvv, card number, expiration date, etc. This commit shows a more general error message to users of our site. https://rt.gnu.org/Ticket/Display.html?id=1124862 --- diff --git a/commerce_payment_tc.module b/commerce_payment_tc.module index 3b1a5b5..3841bc1 100644 --- a/commerce_payment_tc.module +++ b/commerce_payment_tc.module @@ -203,7 +203,7 @@ function commerce_payment_tc_transaction($payment_method, $order, $charge, $resp //https://vault.trustcommerce.com/downloads/TCDevGuide.html#Decline%20Type|outline if ($response['declinetype']=='avs') drupal_set_message(t('The credit card charge failed, please verify that the "Card Owner" field matches the name on the card, and that the "Billing Address" matches the one set at your bank for that credit card'), 'error'); elseif ($response['declinetype']=='decline') drupal_set_message(t('The credit card was declined, please contact your bank.'), 'error'); - elseif ($response['declinetype']=='cvv') drupal_set_message(t('The credit card charge failed, the security code is incorrect. Please check the 3/4 digit code in the back of the card.'), 'error'); + elseif ($response['declinetype']=='cvv') drupal_set_message(t('Your transaction was declined. Please check the correctness of your credit card information, including CC number, expiration date and CVV code.'), 'error'); elseif ($response['declinetype']=='call') drupal_set_message(t('The credit card must be authorized manually over the phone, please contact your bank.'), 'error'); elseif ($response['declinetype']=='expiredcard ') drupal_set_message(t('The credit card is expired.'), 'error'); elseif ($response['declinetype']=='carderror') drupal_set_message(t('Card number is invalid, which could be a typo, or sometimes a card reported stolen, please contact your bank.'), 'error');