Build payment flows for AI-native commerce
Build payment flows for AI-generated storefronts and marketplaces with age gates, managed seller onboarding, and per-checkout metered billing.
AI-native commerce platforms need to gate restricted goods, onboard sellers with managed flows, and charge platform margin on each checkout. frameOS provides Age Verification for AI-generated storefronts, KYC and Onboarding Sessions for managed seller onboarding, Billing Meters for per-checkout metering with markup_%, Charge Intents with Frame.js for flexible checkout embedding, and Sonar for ML-powered fraud detection across AI-generated orders.
Use this guide if you're building an AI commerce platform where:
- You need to gate AI-generated storefronts for restricted or regulated goods.
- You onboard sellers with managed flows via KYC and onboarding sessions.
- You charge per-checkout with metered billing and platform margin (
markup_%). - You embed checkout via SDK alongside existing PSPs.
- You need ML-powered fraud detection across AI-generated orders.
We recommend this configuration for AI storefronts and AI marketplace platforms. Use the API or Frame.js.
FrameOS modules
| Module | Purpose |
|---|---|
| Age Verification | Gate AI-generated storefronts for restricted/regulated goods |
| KYC + Onboarding Sessions | Managed seller onboarding for AI marketplace platforms |
| Billing Meters | Per-checkout metered billing with markup_% for platform margin |
| Charge Intents + Frame.js | Flexible checkout embedding via SDK alongside existing PSPs |
| Sonar | ML-powered fraud detection across AI-generated orders |
Before you begin
Sign up at the Frame Developer Portal and obtain your sandbox API key. Frame.js can be embedded alongside other payment providers for flexible checkout.
Essential tasks
1. Age verification for restricted goods
If you sell age-restricted or regulated goods via AI storefronts, use Age Verification with KYC. Create accounts with age_verification and gate checkout until verification passes.
2. Managed seller onboarding
For AI marketplaces with human sellers, use Accounts and Onboarding Sessions for managed seller onboarding. Request KYC and payout capabilities. See Marketplaces.
3. Per-checkout metered billing
Use Billing Meters for per-checkout metering. Configure markup_% or fee logic for platform margin. Send metering events on each completed checkout.
4. Flexible checkout embedding
Use Charge Intents with Frame.js for checkout. Frame.js can run alongside existing PSPs — useful when AI platforms want to add Frame for specific flows or geos without a full migration.
5. Fraud detection for AI orders
Use Sonar for fraud detection on AI-generated orders. Include sonar_session_id with charge intents. Provide customer and order data — AI-generated orders may have different risk profiles; Sonar adapts.
Resources
Accounts · Onboarding Sessions · KYC · Age Verification · Charge Intents · Billing Meters · Sonar · Frame.js · Webhooks