Skip to content

Connect Stripe

AuthAction works with your own Stripe account. Customers pay you directly; AuthAction never holds the money.

In the Stripe dashboard, open Developers > API keys and choose Create restricted key. Give it these permissions and leave the rest at None:

ResourcePermission
CustomersWrite
ProductsWrite
PricesWrite
SubscriptionsWrite
Checkout SessionsWrite
Customer portalWrite
Webhook EndpointsWrite
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.

In the AuthAction dashboard, open Billing > Stripe, paste the key and choose Connect Stripe. AuthAction then:

  1. Stores the key encrypted. It is never shown again or returned by the API.
  2. 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.
  3. Creates a Stripe product and prices for every plan that has prices.
  4. Creates Customer Portal settings that let subscribers switch between your public plans, update their card, see invoices and cancel.

With the Management API:

Terminal window
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.

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.