We would like to implement a feature that adjusts the payment options based on the proximity of the reservation date to the appointment date. Specifically, the goal is to:
1. Accept 50% Deposit for Early Reservations:
When a client makes a reservation, they should have the option to pay a 50% deposit if the reservation date is more than X days away from the appointment date.
2. Require Full Payment for Last-Minute Reservations:
If the reservation date is less than X days (e.g., 3 days) before the appointment date, the client should be required to pay the full amount. In this scenario, the 50% deposit option should not be displayed to the client.
Technical Details:
Parameter: This should be a configurable parameter, allowing the administrator to set the number of days (e.g., 3 days).
UI/UX:
When the reservation date is more than X days from the appointment date, the payment page should display both the 50% deposit option and the full payment option.
When the reservation date is less than X days from the appointment date, the payment page should only display the full payment option.
7 months ago