Shortcodes
[cr_bee_checkout]
Customer info, payment mode selection, and coupon entry
Renders the checkout form where customers enter their information, select a payment mode, and complete the booking.
Usage
[cr_bee_checkout]Session Requirement
Requires an active session. Redirects to search if no session exists.
What It Renders
- Booking summary sidebar — Vehicle, dates, addons, price breakdown
- Customer form:
- Full Name (required)
- Email (required)
- Phone (required if enabled)
- Age (if enabled)
- Hotel/accommodation info (optional)
- Flight info (optional)
- Coupon field — Enter and apply a discount code
- Payment mode selector — Radio cards for enabled booking modes:
- Request Booking
- Pay at Pickup
- Pay Now (Stripe)
- Deposit (Stripe)
- Request channels — For request mode: Email, WhatsApp (if configured), Phone (if configured)
- Terms & conditions checkbox (if terms URL is configured)
- Submit button — Text changes based on selected mode
API Calls
| Action | Endpoint | Purpose |
|---|---|---|
| Load | GET /sessions/{id} | Session data and totals |
| Load | GET /addons?carId={id} | Detect if addons step was skipped |
| Load | GET /settings | Booking modes, labels, terms URL |
| Apply coupon | POST /sessions/{id}/coupon | Validate and apply coupon |
| Remove coupon | POST /sessions/{id}/coupon with __REMOVE__ | Remove applied coupon |
| Submit | POST /bookings | Create the booking |
Behavior
- Pay Now/Deposit — On submit, creates a booking and redirects to Stripe Checkout. After payment, Stripe redirects back to the Confirmation page.
- Pay at Pickup — Creates a confirmed booking and redirects to the Confirmation page.
- Request — Creates a request booking and redirects to Confirmation.
- Form validation — Client-side validation for required fields, email format, phone format.
- Back button — Links back to Addons (or Vehicle Details if addons were auto-skipped).