Pria uses Stripe as its payments backend. Every credit purchase, recurring subscription, invoice, and payment-method change flows through Stripe. The integration is built-in — there is nothing for an Account admin or end user to set up.Documentation Index
Fetch the complete documentation index at: https://docs.praxis-ai.com/llms.txt
Use this file to discover all available pages before exploring further.
What Stripe powers in Pria
Credit purchases
One-time purchases of credit bundles for a personal balance, an Account, or a specific Digital Twin.
Recurring subscriptions
Monthly or annual recurring credit allotments for Accounts, including Named-User subscriptions.
Invoice history
Itemized invoices and PDF receipts for every charge — accessible inside Pria and from the Stripe Billing Portal.
Payment methods
Saved cards, bank accounts, and billing addresses managed through Stripe’s Billing Portal.
Where users buy
Credit purchases originate in two places inside Pria:- Account → Credits → Buy More — opens the credit gallery, where you pick a bundle (Personal or Volume) and complete the purchase through Stripe Checkout.
- Low-balance alert — when your balance drops below a threshold, Pria surfaces a banner with a one-click path into the same purchase flow.
One-time vs recurring purchases
| Type | When used | How it’s billed |
|---|---|---|
| One-time | Personal top-ups, Account-level credit packs | Charge on the spot, credits applied immediately on checkout.session.completed |
| Recurring (subscription) | Account-level monthly/annual contracts, Named-User plans | Stripe issues an invoice each period; credits apply on invoice.paid |
To start, change, or cancel a recurring subscription contract for your Account, contact the Praxis AI team at humans@praxis-ai.com to request access. Self-service one-time top-ups remain available anytime from the credit gallery.
Customer Billing Portal
Stripe’s hosted Billing Portal is the self-service surface for everything Stripe owns. Open it from Account → Manage Billing — Pria generates a portal session and redirects you to Stripe. From the portal you can:- Add or replace credit cards and bank accounts
- Set the default payment method
- Download itemized invoices and receipts in PDF
- Update the billing address used on invoices
- Cancel an active subscription
- View the full charge history
Invoice retrieval
Every charge produces an invoice (or a receipt for one-time non-invoiced sessions). Pria stores the Stripe invoice ID and URL on each payment record so you can:- Open the hosted invoice directly from Account → Credits → History
- Download the PDF from the Stripe Billing Portal
- Reference the invoice ID when filing a support request
Webhooks — key events Pria listens for
Stripe pushes events to Pria as they happen. Pria handles all of this automatically — there is nothing to configure on the customer side.| Event | What Pria does |
|---|---|
customer.created | Records the Stripe customer ID against the matching Pria user |
checkout.session.completed | Applies one-time credit purchases and starts subscriptions |
charge.succeeded | Confirms a successful charge against an account or instance |
invoice.paid | Applies the recurring credit allotment for the new billing period |
invoice.payment_failed | Flags the subscription as past-due and triggers Stripe’s dunning retries |
customer.subscription.created | Provisions the subscription on the matching Account |
customer.subscription.updated | Reflects plan changes, quantity changes, or pause/resume |
customer.subscription.deleted | Ends the subscription and stops future credit allotments |
Refunds
Refunds are handled manually so that an audit trail exists for every change.Tax considerations
Where tax collection is enabled on the Account, Stripe handles tax calculation, collection, and remittance using Stripe Tax. The tax amount appears on every invoice and receipt. Tax behaviour follows the customer’s billing address as recorded in the Stripe customer record — keep the billing address current in the Billing Portal to avoid mis-applied tax. If your Account requires custom tax handling (exemption certificates, VAT-only invoicing, regional carve-outs), contact the Praxis AI team at humans@praxis-ai.com to request access.Account vs Institution routing
A single user can purchase credits that land in different balances:- Personal purchases flow into the user’s personal balance.
- Account purchases flow into the parent Account’s shared pool.
- Targeted Digital Twin purchases can be routed to a specific instance via an optional
institutionIdmetadata field on the Stripe Checkout session — Pria reads this oncheckout.session.completedand credits the matching instance directly.
Failed payments and dunning
If a recurring charge fails (expired card, insufficient funds, bank decline), Stripe automatically retries on its standard dunning schedule. While retries are in flight:- The subscription stays active but Pria flags it as “past due” in the Billing Portal.
- The customer email on file receives Stripe’s standard payment-failure notice.
- Pria surfaces a low-balance alert inside the product so end users see the impact.
Related
- Billing & Subscriptions — admin-side billing controls and plan tiers
- Credit Management — moving credits between Account, Instance, and User
- Credits — user-facing view of credit balance and usage
- Plans & Credits — full pricing tables, caching math, and Named-User subscription model