After confirming an appointment on theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Jay-byte389/AMS/llms.txt
Use this file to discover all available pages before exploring further.
YourAppointment screen, AMS guides the user through a four-step payment flow: choosing a payment method, optionally entering card details, reviewing a charge summary, and seeing a confirmation screen. The flow is entirely mock-based — no real payment gateway processes any transaction.
Payment Flow
PaymentMethod Screen (route: 'Payment')
The
PaymentMethod screen is the entry point for all payment interactions. It is also accessible directly from the Profile menu. The screen groups options into two sections:Credit & Debit Card- Add New Card (Debit icon) → navigates to
'Debit'(AddCard screen)
- Apple Play (Apple icon) → navigates directly to
'PaymentSummary' - PayPal (PayPal icon) → navigates directly to
'PaymentSummary' - Google Play (Google icon) → navigates directly to
'PaymentSummary'
PaymentInput component that tracks the current selection state locally.AddCard Screen (route: 'Debit')
The
The card preview falls back to a
AddCard screen lets the user enter debit card details and see a live card preview that updates as they type. The form collects:| Field | Format | Validation |
|---|---|---|
| Card Holder Name | Uppercased on save | Free text |
| Card Number | 000 000 000 00 | Digits only, max 16, auto-spaced every 4 |
| Expiry Date | MM/YY | Digits only, auto-formatted |
| CVV | 0000 | Digits only, max 4, secureTextEntry |
DEFAULT_CARD object (JOHN DOE / 000 000 000 00 / 04/28) when the form fields are empty, showing previously saved values if available from the 'cardDetails' AsyncStorage key.Tapping Save Card writes the record:PaymentSummary Screen (route: 'PaymentSummary')
PaymentSummary receives doctor and appointment as route params passed from YourAppointmentScreen. It displays:- A blue header with the total price (
$100.00) - The doctor card — avatar, name, qualification, department, rating, and comment count
- A details group showing Date / Hour, Duration (30 Minutes), and Booking for (from
appointment.patientType) - A charges group showing Amount (100)
- A Payment Method row with a Change link that navigates back to
'Payment' - A Pay Now button that navigates to
'PaymentComplete'
PaymentComplete Screen (route: 'PaymentComplete')
PaymentComplete shows a full-screen success state on the primary brand colour background:- A Congrats SVG illustration
- “Congratulation” and “Payment is Successfully” headings
- A bordered confirmation card with the booked doctor’s name and appointment date/time
BottomTabs via navigation.replace('BottomTabs'), so the user lands back on the Home tab.Navigation Route Reference
Card Storage
Card details are saved to AsyncStorage independently of appointment data:| Key | Contents |
|---|---|
'cardDetails' | { cardHolderName, cardNumber, cardExpiry } |
The current payment implementation is entirely mock-based. No real payment gateway (Stripe, Braintree, PayPal SDK, etc.) is integrated. The
$100.00 amount is hard-coded in PaymentSummary. Tapping Pay Now does not charge any card or call any external API.