From a8c5366f383e6fae9b6d30e980a09ea1925338d8 Mon Sep 17 00:00:00 2001 From: Lisa Marie Maginnis Date: Wed, 23 Apr 2014 12:42:19 -0400 Subject: [PATCH] Changed comments to reflect new scope. Added offenders to output for baddata. --- trustcommerce.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/trustcommerce.php b/trustcommerce.php index bd01c13..46cc3d8 100644 --- a/trustcommerce.php +++ b/trustcommerce.php @@ -188,11 +188,11 @@ class org_fsf_payment_trustcommerce extends CRM_Core_Payment { // TODO FIXME be more or less specific? // declinetype can be: decline, avs, cvv, call, expiredcard, carderror, authexpired, fraud, blacklist, velocity // See TC documentation for more info - return self::error(9009, "Your transaction was declined: {$result['declinetype']}"); + return self::error(9009, "Your transaction was declined: {$reply['declinetype']}"); break; case self::AUTH_BADDATA: - // TODO FIXME do something with $result['error'] and $result['offender'] - return self::error(9011, "Invalid credit card information. Please re-enter."); + // TODO FIXME do something with $reply['error'] and $reply['offender'] + return self::error(9011, "Invalid credit card information. The following fields were invalid: {$reply['offenders']}."); break; case self::AUTH_ERROR: return self::error(9002, 'Could not initiate connection to payment gateway'); -- 2.25.1