Fast path — Automated Stripe integration
- In the Paywalls dashboard, paste a restricted Stripe API key.
- Paywalls will auto‑create checkout links when a user needs to top up and auto‑subscribe to webhooks to deposit credits after successful payment.
- The assistant message returned to your user includes the checkout link—render it like any model reply. After payment, the user’s app‑scoped balance is credited automatically.
- Use a Restricted Key scoped to Checkout Sessions and the minimum read permissions needed for prices/products.
- Keep your master secret key out of the integration entirely.
Advanced — Custom rails
- Use your own checkout (Stripe Elements/Checkout or another PSP).
- On payment success, call
POST /v1/user/balance/deposit
to credit the user. - Keep your internal
user_id
, PSPpayment_intent
, and any invoice refs inmetadata
for reconciliation. - No need to share any keys with paywalls.