From a4da2b0428b1a2c4b94f5c19b00d7dcfc888abc3 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 29 Nov 2021 15:57:22 +1100 Subject: [PATCH] Fixes for payment failure mailer --- app/Jobs/Mail/PaymentFailedMailer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/Mail/PaymentFailedMailer.php b/app/Jobs/Mail/PaymentFailedMailer.php index dc053ef9b308..9bdeafd63816 100644 --- a/app/Jobs/Mail/PaymentFailedMailer.php +++ b/app/Jobs/Mail/PaymentFailedMailer.php @@ -81,7 +81,7 @@ class PaymentFailedMailer implements ShouldQueue if($this->payment_hash){ $amount = array_sum(array_column($this->payment_hash->invoices(), 'amount')) + $this->payment_hash->fee_total; - $invoice = Invoice::whereIn('id', $this->transformKeys(array_column($payment_hash->invoices(), 'invoice_id')))->withTrashed()->first(); + $invoice = Invoice::whereIn('id', $this->transformKeys(array_column($this->payment_hash->invoices(), 'invoice_id')))->withTrashed()->first(); } //iterate through company_users