Subscriptions and billing
Stripe configuration is a provider responsibility in the Owner portal / Platform / Stripe billing. Customers purchase Empeiro on its public website. Their customer workspace has no Billing page or payment controls. Stripe holds payment details; Empeiro keeps protected subscription references and state confirmed through signed Stripe events.
Current availability: the public website still offers early access. Website checkout, payment fulfillment, and automatic organization onboarding are not implemented yet. The Owner's Stripe connection checks do not make that flow available. Ticket access is not currently metered or blocked by subscription state.
Provider Owner: set up Stripe
- In your own Stripe account, create a Product and an active recurring Price for each plan you intend to offer: Team, Business, or Company. Decide the real amount, currency and interval in Stripe; Empeiro does not invent these. Enterprise is not a self-service plan in this version. Copy each
price_…ID. Use test-mode Prices with ansk_test_…key and live-mode Prices with ansk_live_…key. - In Stripe Workbench / Webhooks / Create an event destination, select Your account, choose Snapshot payloads, select the event types below, then choose Webhook endpoint. Set the endpoint URL to
https://YOUR-EMPEIRO-HOST/api/billing/stripe/webhook. Subscribe it tocheckout.session.completed,customer.subscription.created,customer.subscription.updated, andcustomer.subscription.deleted. Copy that endpoint'swhsec_…signing secret. Use the same Stripe mode as the secret key. See Stripe's webhook setup. - Sign in to Empeiro's management account as an Owner. Open Platform → Stripe billing. Paste your Stripe secret key, webhook signing secret, and the recurring Price IDs for the plans you want. Leave an existing secret field empty to keep the saved value. Select Save. Saving resets checkout readiness until you test again.
- Select Test. Empeiro reads the Stripe account and each supplied Price; it checks mode, active state, recurrence and fixed amount. It does not create a charge. Read the exact result on the card. Correct any failed key or Price and test again. The card displays the verified price amounts and intervals.
- In Stripe, send a test webhook to the endpoint and confirm successful delivery there. Empeiro's Test button verifies API access and prices; the card becomes Configured only after Empeiro receives a correctly signed event in the same Stripe mode. Refresh Platform to see that result.
The Stripe secret key and webhook secret are encrypted on Empeiro's server and never shown again in the page. A saved key alone does not make checkout available. Changing setup resets API and webhook readiness. Keep test and live configuration separate. Do not paste a publishable key (pk_…) into the secret key field.
Review customer subscription records
- Sign in to the provider management account and open Platform / Stripe billing / Customer subscriptions. Management Admins can read this information; only an Owner changes Stripe configuration.
- Review the organization, plan and latest state confirmed by signed events. An organization listed under Organizations alone does not prove a purchase. A browser return from a payment page must never establish payment by itself.
- Use the provider's Stripe Dashboard for invoices, cancellations, payment issues and authoritative payment history. Customer workspaces do not expose these administrative controls.
- Before removing an organization, cancel its active subscription in Stripe and wait for the confirmed canceled state. Removing an Empeiro record does not cancel an external subscription. Existing subscription records are preserved when workspace billing controls are removed.
Billing maintenance and actual errors
| Actual message | Cause | Corrective action |
|---|---|---|
| Stripe has not been configured by the provider. | Provider credentials/readiness missing | The provider Owner completes Platform setup; a customer administrator cannot configure the provider account. |
| Enter a Stripe secret key beginning sk_test_ or sk_live_. | Wrong key type/format | Use the actual secret key in the intended mode, not a publishable key. |
| Enter the Stripe webhook endpoint's whsec_ signing secret. | Webhook secret missing/wrong format | Copy the signing secret from this endpoint in the same Stripe mode. |
| Cancel active subscriptions in the current Stripe account before changing its secret key. | Changing accounts would strand active subscription records | Complete subscription/account migration under the provider's billing procedure first. |
| The Stripe key's mode does not match the account response. | Test/live mode inconsistency | Match key, prices and webhook mode, then repeat Test. |
| Stripe customer does not match this organization's billing account. | A confirmed event/reference does not match this customer | Have the provider investigate signed event/account association; do not assign another customer's ID manually. |
Renew credentials through the provider Owner's controls and verify Test plus a signed event. There is no automatic cancellation caused by closing a browser or deleting a local record. Before customer removal, cancel in Stripe and wait for the confirmed canceled state.
This configuration guide was checked against Stripe's current webhook documentation on October 17, 2026. This handler expects snapshot event payloads with data.object; do not choose a thin-event destination for it. The website purchase flow must be implemented and verified before publishing customer purchasing instructions.