From 539451319f2b4c54a662e21ac7e8b65b72169d81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Wed, 31 Jan 2024 18:47:26 +0100 Subject: [PATCH] Update contact information in InstantPayment class --- app/Services/ClientPortal/InstantPayment.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/Services/ClientPortal/InstantPayment.php b/app/Services/ClientPortal/InstantPayment.php index 7ce624d5f2..8868a3df8d 100644 --- a/app/Services/ClientPortal/InstantPayment.php +++ b/app/Services/ClientPortal/InstantPayment.php @@ -45,6 +45,15 @@ class InstantPayment public function run() { nlog($this->request->all()); + + $cc = auth()->guard('contact')->user(); + + $cc->first_name = $this->request->contact_first_name; + $cc->last_name = $this->request->contact_last_name; + $cc->email = $this->request->contact_email; + + $cc->save(); + $is_credit_payment = false; $tokens = [];