From 2df455c21d9044ad47e93ecf18d9f3937ba594ca Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 25 Sep 2019 16:55:09 +1000 Subject: [PATCH] update invoice status --- app/PaymentDrivers/StripePaymentDriver.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/PaymentDrivers/StripePaymentDriver.php b/app/PaymentDrivers/StripePaymentDriver.php index 466c1f824289..0c7be8f467c6 100644 --- a/app/PaymentDrivers/StripePaymentDriver.php +++ b/app/PaymentDrivers/StripePaymentDriver.php @@ -375,7 +375,8 @@ class StripePaymentDriver extends BasePaymentDriver //mark all invitations with transaction reference $invoices->each(function ($invoice) use($payment) { - $invoice->update(['status_id' => Payment::STATUS_COMPLETED]); + $invoice->status_id = Payment::STATUS_COMPLETED; + $invoice->save(); $invoice->invitations()->update(['transaction_reference' => $payment->transaction_reference]); });