feat: update SMS templates and logic to ensure required tokens are present for Kavenegar integration

This commit is contained in:
hamed
2026-07-05 11:54:12 +03:30
parent 87d94801f8
commit a21b0ee4ab
5 changed files with 77 additions and 15 deletions
+2 -2
View File
@@ -312,10 +312,10 @@ final class PaymentManager
$mobile = $appointment->getPatientMobile();
if ($mobile) {
$when = $this->jalali->formatDateTime($appointment->getSlotStart());
$this->smsService->dispatchTemplate(SmsLog::TAG_PAYMENT, $mobile, [
'doctor' => $doctor->getName(),
'date' => $when,
'date' => $this->jalali->formatDateTime($appointment->getSlotStart(), false),
'time' => date('H:i', $appointment->getSlotStart()),
]);
}