Stripe Integration
Services can be monetized using Stripe. To enable billing:
- Configure
STRIPE_SECRET_KEYandSTRIPE_WEBHOOK_SECRETenv vars - Create Products and Prices in Stripe Dashboard
- Associate Stripe Price IDs when creating Plans
- Use the Checkout endpoint to subscribe users
Organizations have service limits based on their tier. When a service is created, a default “Free” plan is automatically provisioned.
Provision a purchasable plan
- Create the Stripe Product and Price in the Stripe Dashboard.
- Create the AuthOS plan with that Price’s
stripe_price_id. - Present the returned plan ID in your application’s plan picker.
- Submit that plan ID with trusted success and cancel URLs to the checkout endpoint.
- Confirm subscription state after Stripe redirects the browser.
Use the plan and checkout reference for request fields and response contracts. Do not treat the browser redirect alone as proof that a subscription was recorded.
Environment separation
Create separate services and Stripe test/live prices for development and production. Test OAuth callbacks and checkout redirects after changing a service, plan, domain, or Stripe configuration.