From 016bd3f6059d654c6ef4ab72dd698ce1ff534886 Mon Sep 17 00:00:00 2001 From: R Date: Wed, 15 Feb 2023 10:02:49 +0700 Subject: [PATCH] [Hotfix] No PaymentDetail --- Modules/Internal/Transformers/AppointmentResource.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Modules/Internal/Transformers/AppointmentResource.php b/Modules/Internal/Transformers/AppointmentResource.php index c601067f..f5948e45 100644 --- a/Modules/Internal/Transformers/AppointmentResource.php +++ b/Modules/Internal/Transformers/AppointmentResource.php @@ -37,11 +37,11 @@ class AppointmentResource extends JsonResource $payment_detail = null; if ($this->appointmentDetail->sPaymentDetails != null) { $payment_detail = [ - 'payment_type' => $this->appointmentDetail->sPaymentDetails['payment_type'], - 'transaction_time' => $this->appointmentDetail->sPaymentDetails['transaction_time'], - 'gross_amount' => $this->appointmentDetail->sPaymentDetails['gross_amount'], - 'currency' => $this->appointmentDetail->sPaymentDetails['currency'], - 'status_message' => $this->appointmentDetail->sPaymentDetails['status_message'], + 'payment_type' => $this->appointmentDetail->sPaymentDetails['payment_type'] ?? '', + 'transaction_time' => $this->appointmentDetail->sPaymentDetails['transaction_time'] ?? '', + 'gross_amount' => $this->appointmentDetail->sPaymentDetails['gross_amount'] ?? '', + 'currency' => $this->appointmentDetail->sPaymentDetails['currency'] ?? '', + 'status_message' => $this->appointmentDetail->sPaymentDetails['status_message'] ?? '', ]; }