It appears that trustcommerce likes to say that the error is due to an
invalid CVV, even if it is an error with the date. I've generalized the
error message so that users will be less confused when they enter
incorrect information.
return self::error(9009, "Your transaction was declined for address verification reasons. If your address was correct please contact us at donate@fsf.org before attempting to retry your transaction.");
break;
}
- return self::error(9009, "Your transaction was declined: {$reply['declinetype']}");
+ return self::error(9009, "Your transaction was declined. Please check the correctness of your credit card information, including CC number, expiration date and CVV code.");
break;
case self::AUTH_BADDATA:
// TODO FIXME do something with $reply['error'] and $reply['offender']