Connect Stripe
AuthAction works with your own Stripe account. Customers pay you directly; AuthAction never holds the money.
Create a restricted key
Section titled “Create a restricted key”In the Stripe dashboard, open Developers > API keys and choose Create restricted key. Give it these permissions and leave the rest at None:
| Resource | Permission |
|---|---|
| Customers | Write |
| Products | Write |
| Prices | Write |
| Subscriptions | Write |
| Checkout Sessions | Write |
| Customer portal | Write |
| Webhook Endpoints | Write |
| Accounts (optional) | Read, to show the account name in the dashboard |
A secret key (sk_...) also works, but a restricted key limits what a leaked
key could do.
Start with a test mode key (rk_test_...) and switch to the live key when
you are ready to take payments. Test and live subscriptions are kept apart:
only subscriptions in the mode of the connected key grant plans.
Connect it
Section titled “Connect it”In the AuthAction dashboard, open Billing > Stripe, paste the key and choose Connect Stripe. AuthAction then:
- Stores the key encrypted. It is never shown again or returned by the API.
- Registers a webhook endpoint in your Stripe account at
https://<tenant-domain>/billing/stripe/webhook, subscribed to checkout and subscription events. Each event is verified with that endpoint’s signing secret. - Creates a Stripe product and prices for every plan that has prices.
- Creates Customer Portal settings that let subscribers switch between your public plans, update their card, see invoices and cancel.
With the Management API:
curl -X PUT https://<tenant-domain>/api/v1/billing/settings/stripe \ -H "Authorization: Bearer $MANAGEMENT_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "secretKey": "rk_test_..." }'Only tenant admins can connect, replace or disconnect a key.
Replace or disconnect
Section titled “Replace or disconnect”Paste a new key to replace the old one, for example when moving to live mode. AuthAction removes its old webhook endpoint and syncs your plans to the new account.
Disconnect Stripe removes the key and the webhook endpoint. Nothing is cancelled in Stripe, but subscriptions stop granting plans until a key is connected again, so subscribers fall back to their assigned or default plan.