{#if paymentState === 'success'}

Thank you!

Your generosity is greatly appreciated.

{:else} Your Appointment
Date {formatDate(booking.start_time)}
Time {formatTimeRange( booking.start_time, booking.services, booking.duration_minutes ?? 0 )}
Subtotal {formatPrice(subtotal)}
{#if tipsPaid > 0}
Tips {formatPrice(tipsPaid)}
{/if} {#if booking.services && booking.services.length > 0}
Services
{#each booking.services as service (service.service_id || service.booking_id)}
{service.service_name} {formatPrice(service.override_price ?? service.price)}
{/each}
{/if}
Choose Tip Amount
{#each tipPercentages as tip (tip.pct)} {/each}
£
Payment Method (cardSelectionValid = v)} />
{#if paymentState === 'error'}

Payment failed. Please try again.

{/if}

Secure payment powered by Square

{/if}