Skip to content

Commit

Permalink
Fix php notices, issue iATSPayments#352
Browse files Browse the repository at this point in the history
  • Loading branch information
adixon committed Mar 18, 2021
1 parent 1b29f15 commit c2db0cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CRM/Iats/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit c2db0cc

Please sign in to comment.