Sandbox / Test Mode
Stripe Checkout Test Page
Test every Stripe payment flow before going live. Use test card 4242 4242 4242 4242 (any future expiry, any CVC). For ACH: account 000123456789 / routing 110000000. For failed payment: 4000 0000 0000 0002.
Important: Stripe checkout only works on the published app, not in the editor preview. Publish the app first, then open this page on the published URL to test.
Payment Formula (all programs):
deposit = final_total × 10% | payment_2 = (final_total - deposit) ÷ 2 | payment_3 = final_total - deposit - payment_2
Example: $6,250 → $625 deposit / $2,812.50 pickup / $2,812.50 drop-off
Behavior-Gating Rule:
If a dog has ANY behavior flag (aggression, bite history, reactivity, resource guarding, other issues), the customer CANNOT pay until DSC reviews and locks pricing. Standard dogs with no flags proceed directly to deposit checkout.
Before testing discounts:
Create test discount codes first at Admin → Discount Codes. Create a fixed-dollar code (e.g. TEST250 = $250 off, applies to B&T) and a percentage code (e.g. TEST10 = 10% off, applies to products) to test all scenarios.
Physical Products (with discount support)
Card / Apple Pay / Google Pay. Enter a discount code to see the adjusted price before paying.
50 Ft Nylon Long Line
$35 — one-time
Slip Leash — 6 ft
$30 — one-time
Civilian Memberships
Recurring subscriptions. Discount codes apply to the first invoice only.
Monthly Membership
$29.99/mo — recurring
Annual Membership
$239.88/yr — recurring
Tactical Subscriptions
Requires login. Discount codes apply to the first invoice only.
Handler Monthly
$19/mo — recurring
Handler Annual
$199/yr — recurring
Agency Annual
$1,199/yr — up to 20 handlers
Behavior Modification Pricing Calculator
Test the pricing order: base price → + behavior surcharge → pre-discount total → - discount → final → 3 staged payments. All calculations use integer cents server-side to prevent rounding errors.
Discount applies to the PRE-DISCOUNT total (base + behavior), not the base alone.
Payment Breakdown
3 Staged Payments
Board & Train Programs (with discount + ACH)
Staged payments with Card or ACH choice. Discount applied to total first, then all 3 payments recalculated. Enter a discount code on the Payment Plan step to see the adjusted schedule.
Puppy Kindergarten
$2,500 — 3 staged payments (card or ACH)
4-Week On-Leash Obedience
$4,500 — 3 staged payments (card or ACH)
6-Week Advanced Off-Leash Obedience
$6,500 — 3 staged payments (card or ACH)
Test Checklist
Physical product purchase
Card / Apple Pay / Google Pay
Physical product with discount code
Enter code → see discount → pay adjusted price
Invalid / expired discount code
Code rejected, price unchanged
Civilian monthly membership
$29.99/mo subscription
Civilian annual membership
$239.88/yr subscription
Board & Train deposit
10% deposit, card or ACH
B&T deposit with fixed-dollar discount
e.g. $250 off → recalculate all 3 payments
B&T deposit with percentage discount
e.g. 10% off → recalculate all 3 payments
B&T second payment (pickup day)
Auto-emailed by daily reminder workflow
B&T final payment (drop-off day)
Auto-emailed by daily reminder workflow
Gear / cart checkout
Multiple items in cart
Tactical monthly subscription
$19/mo handler plan
Tactical annual subscription
$199/yr handler plan
Tactical agency subscription
$1,199/yr agency plan
Refund
Issue in Stripe dashboard → webhook updates Base44
Failed payment
Use card 4000 0000 0000 0002 → no records damaged
Canceled subscription
Cancel in Stripe → access revoked in Base44
ACH Board & Train payment
Bank transfer — lower fees, 4-day settle
Standard 4-week On-Leash — no aggression
$4,500 → $450 / $2,025 / $2,025 — pays deposit immediately
Standard dog proceeds directly to checkout
No behavior flags → auto-locked → Stripe deposit checkout immediately
4-week On-Leash + 2 behavior weeks
Base $4,500 + $2,000 = $6,500 → $650 / $2,925 / $2,925
4-week On-Leash + behavior + $250 discount
$6,500 - $250 = $6,250 → $625 / $2,812.50 / $2,812.50
4-week On-Leash + behavior + % discount
Percentage off pre-discount total → all 3 payments recalculated
6-week Off-Leash + 2 behavior weeks
Base $6,500 + $2,000 = $8,500 → $850 / $3,825 / $3,825
6-week Off-Leash + behavior + discount
Discount applies to pre-discount total → 3 payments recalculated
Different admin-selected number of weeks
e.g. 3 or 4 additional weeks — flexible
Aggression-flagged enrollment CANNOT pay before pricing locked
Behavior flags → status 'Pricing Review Required' → no checkout until admin locks
Direct checkout URL attempt rejected server-side
Opening /board-and-train/pay/:id before lock → 'Enrollment Under Review' screen
Attempted frontend manipulation of behavior surcharge
Server rejects client-supplied behavior fields — RLS blocks customer updates
Payment 2 calculation after behavior extension
Pickup payment reflects adjusted total
Final payment calculation after behavior extension
Drop-off payment reflects adjusted total
Refund on discounted behavior-modification enrollment
Webhook restores correct balance
Verify After Each Test
Wix Payments (Base44 Payments) remains live on all public pages. This test page uses Stripe sandbox only. After all tests pass, the live pages will be switched from Wix to Stripe.