Integrations
Payment providers
Stripe keys, checkout behavior, and billing-provider setup from the dashboard.
Stripe is configured from the Payment Providers settings section.
The app expects the provider record to include:
- a provider name,
- a secret key,
- a publishable key,
- and the currencies it should support.
Validation rules
sk_test_...andpk_test_...indicate test mode.sk_live_...andpk_live_...indicate live mode.- Keys that do not match the prefix pattern should be rejected before save.
Routes to know
POST /api/stripe/connect/initPOST /api/billing/create-checkout-sessionPOST /api/invoices/[invoiceId]/create-checkoutPOST /api/invoices/[invoiceId]/create-payment-intent
What to explain in the docs
- where the keys are entered,
- whether the provider lives at company or workspace scope,
- which currency the customer sees,
- and how to tell test mode from live mode.
If a payment workflow fails, the first thing to check is whether the provider is saved with the expected prefix and the expected currency set.