🚀 Pre-Launch Testing Guide

Complete these steps before enabling live payments

1
Live Pay-Per-Booking Test

Duration: ~15 minutes

Prerequisites:

  • ✓ At least one active facility with published memberships
  • ✓ Facility owner has connected Stripe account
  • ✓ Test payment method ready (use Stripe test card: 4242 4242 4242 4242)

Steps:

  1. 1

    Create test booking as client

    Navigate to facility detail → Select date/time → Click "Book Now"

  2. 2

    Complete payment

    Use test card 4242 4242 4242 4242, any future expiry, any CVC

  3. 3

    Verify booking appears

    Check: Owner Dashboard → Manage Bookings → Should see new booking

  4. 4

    Check Stripe Dashboard

    Login to Stripe → Payments → Verify PaymentIntent succeeded

    Open Stripe Dashboard
  5. 5

    Verify webhook delivery

    Stripe → Developers → Webhooks → Check "payment_intent.succeeded" received

2
Subscription Booking (£0) Test

Duration: ~10 minutes

Steps:

  1. 1

    Create active subscription membership

    Client must have active membership with available hours

  2. 2

    Book session using membership

    Should see "Covered by membership" message during booking

  3. 3

    Verify no payment required

    Should skip payment screen entirely

  4. 4

    Check booking details

    Owner Dashboard → Booking should show "Covered by Subscription" badge (purple)

  5. 5

    Verify Stripe - NO PaymentIntent

    Stripe Dashboard should show NO new payment for this booking

3
Full Refund Test

Duration: ~5 minutes

Steps:

  1. 1

    Navigate to paid booking

    Owner Dashboard → Manage Bookings → Click "Details" on a paid booking

  2. 2

    Scroll to refund section

    Should see "Refund & Cancellation" card with refund controls

  3. 3

    Issue full refund

    Click "Full Refund" → Select reason → Confirm

  4. 4

    Verify immediate UI update

    Payment status should change to "refunded"

  5. 5

    Check Stripe Dashboard

    Refund should appear under original payment

4
Partial Refund Test

Duration: ~5 minutes

Steps:

  1. 1

    Navigate to another paid booking

    Use different booking from full refund test

  2. 2

    Issue partial refund

    Enter custom amount (e.g., £25 on £50 booking) → Select reason → Confirm

  3. 3

    Verify UI shows partial status

    Payment status = "partially_refunded"

  4. 4

    Check remaining balance

    Should show: Paid £50.00 → Refunded £25.00 → Balance £25.00

5
Looker Studio Dashboard Setup

Duration: ~20 minutes

Steps:

  1. 1

    Create Looker Studio report

    Visit lookerstudio.google.com → Click "Create" → "Report"

    Open Looker Studio
  2. 2

    Connect GA4 data source

    Add data source → Google Analytics 4 → Select property: G-EV3HMG78KS

  3. 3

    Add basic charts

    Recommended: Sessions (last 7 days), Active Users, Traffic Sources (table), Top Pages (table)

  4. 4

    Enable embedding

    File → Share → Embed report → Copy URL

  5. 5

    Update AdminAnalytics page

    Edit pages/AdminAnalytics.js line 48: Replace LOOKER_STUDIO_EMBED_URL with your URL

    const LOOKER_STUDIO_EMBED_URL = "https://lookerstudio.google.com/embed/...";
6
Enable Payment Feature Flag

Duration: ~1 minute

Steps:

  1. 1

    Navigate to Launch Control

    Admin Dashboard → Launch Control

  2. 2

    Enable payment flag

    Find "booking_payments_enabled" → Toggle to TRUE

  3. 3

    Verify change

    Refresh app → Booking pages should now show "Book Now" instead of "Notify Me"

📸 Evidence Checklist

Take screenshots to document successful testing

Stripe payment transaction showing success
Webhook event log showing "processed" status
Booking showing "Paid Booking" badge
Subscription booking showing "Covered by Subscription" badge
Full refund processed in Stripe
Partial refund showing correct remaining balance
AdminAnalytics page with embedded Looker Studio dashboard
Feature flag enabled confirmation