From c2db0cc62d7a51593add63c57dfdb561c8303d1a Mon Sep 17 00:00:00 2001 From: Alan Dixon Date: Thu, 18 Mar 2021 14:24:48 +0000 Subject: [PATCH] Fix php notices, issue #352 --- CRM/Iats/Transaction.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Iats/Transaction.php b/CRM/Iats/Transaction.php index 40171022..32857cce 100644 --- a/CRM/Iats/Transaction.php +++ b/CRM/Iats/Transaction.php @@ -88,8 +88,8 @@ static function process_contribution_payment(&$contribution, $paymentProcessor, $payment_result = self::process_payment($contribution, $paymentProcessor, $payment_token); $success = $payment_result['success']; $auth_code = $payment_result['auth_code']; - $auth_response = $payment_result['auth_response']; - $trxn_id = $payment_result['trxn_id']; + $auth_response = empty($payment_result['auth_response']) ? '' : $payment_result['auth_response']; + $trxn_id = empty($payment_result['trxn_id']) ? '' : $payment_result['trxn_id']; // Handle any case of a failure of some kind, either the card failed, or the system failed. if (!$success) { $error_message = $payment_result['message'];