SpaceOS uses Stripe for payment processing on bookings.
Setup
- Create a Stripe account
- Get your Stripe API keys (test and live)
- Configure in ZenCore environment variables:
STRIPE_SECRET_KEY — Your Stripe secret key
STRIPE_WEBHOOK_SECRET — Webhook endpoint signing secret
- Set up the Stripe webhook endpoint:
POST /api/v1/webhooks/stripe
Stripe Events Handled
| Event | Action |
|---|
payment_intent.succeeded | Booking confirmed |
payment_intent.payment_failed | Booking payment failed |
charge.refunded | Refund processed |
Test vs Live
| Environment | Stripe Mode |
|---|
| Sandbox | Stripe Test Mode (use sk_test_* keys) |
| Production | Stripe Live Mode (use sk_live_* keys) |
Next Steps