CR Bee Docs
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

ActionEndpointPurpose
LoadGET /sessions/{id}Session data and totals
LoadGET /addons?carId={id}Detect if addons step was skipped
LoadGET /settingsBooking modes, labels, terms URL
Apply couponPOST /sessions/{id}/couponValidate and apply coupon
Remove couponPOST /sessions/{id}/coupon with __REMOVE__Remove applied coupon
SubmitPOST /bookingsCreate 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).

On this page