[Hotfix] No PaymentDetail

This commit is contained in:
R
2023-02-15 10:02:49 +07:00
parent 093f8160d2
commit 016bd3f605

View File

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