feat(appointment): redesign payment step with test-mode and real amount
Rebuild the payment screen as a clear confirm-and-pay card: appointment summary (doctor, patient, Jalali date/time), a prominent amount row (15,000 تومان from the backend's 150,000 rials), and a countdown with a progress bar tied to the booking's real expires_at. Fetch /api/v1/payment/config: in test mode show a 'درگاه آزمایشی' notice and a 'پرداخت آزمایشی' button (gateway select hidden, since the backend forces MockGateway); otherwise show the bank gateway select. Expired state offers re-selecting a time. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -82,6 +82,8 @@ function Container({
|
||||
appointmentId={appointmentId}
|
||||
expiresAt={appointmentExpiresAt}
|
||||
doctor={doctor}
|
||||
data={data}
|
||||
isForAnother={isForAnother}
|
||||
selectedSlot={selectedSlot}
|
||||
selectedDate={selectedDate}
|
||||
/>,
|
||||
|
||||
Reference in New Issue
Block a user