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'] ?? '', ]; }