Platform billing
Bill for authentication usage. Keep purchase state tied to the provider's authoritative result.
Authentication usage, not customer money movement
This platform's billing scope is prepaid authentication usage, catalog prices, purchases, metering and entitlements. Wallet balances count authentication units; they are not currency accounts. Price amounts use minor currency units and an explicit market/currency.
Payment routing is a separate service boundary. This auth release does not add merchant onboarding, payments inside your customers' apps or agent authority to make purchases.
Create, return and reconcile
A permitted workspace member chooses a catalog price and creates a hosted checkout with an Idempotency-Key. Review the commitment before opening checkout. Customer policies require a fresh, action-bound passkey proof in X-Auth-Proof, tied to the workspace, price and exact Idempotency-Key hash. An agent cannot authorize the purchase. A browser success URL is not payment proof. Reconcile the purchase through the backend before granting units or displaying a paid state.
TypeScript · typescript
import { SaasClient } from "@beyondigital/auth-sdk";
const saas = new SaasClient({ issuerUrl: "https://auth.example.com" });
const idempotencyKey = crypto.randomUUID();
// Obtain freshActionProofId through the issuer continuation, bound to
// this account, price and the SHA-256 of this exact idempotency key.
const checkout = await saas.createCheckout(accessToken, accountId,
{ tokenPackPriceId: selectedPrice.price_id },
{ idempotencyKey, proofId: freshActionProofId });
// Open checkout.checkout_url after the user reviews the purchase.
// On return, reconcile instead of trusting query parameters:
const result = await saas.reconcileCheckoutReturn(
accessToken, accountId, checkout.purchase_id);Operate from verified events
Provider webhook authenticity, deduplication, fulfillment idempotency, reversals and reconciliation are server concerns. Run provider sandbox contract tests before release. Subscription lifecycle, invoices, usage exports and new pricing models are separate product increments; this console currently sells one-time prepaid packs.