Stripe ACP
Authorize an agentic-commerce checkout against a spend ceiling before the charge, and sign the authorization so the transaction carries its own evidence.
Stripe ACP Integration
Agent identity verification for Stripe's Agentic Commerce Protocol. Ensures only authorized agents with the transact permission can initiate checkouts.
Authorize Before Checkout
Three checks run before any checkout: transact permission, trust score threshold, and active status.
# Python
from vorim.stripe_acp import VorimACP
acp = VorimACP(api_key='agid_sk_...', min_trust_score=70)
result = acp.authorize_checkout(
agent_id='agid_abc123',
seller='acme-store',
amount=4999,
currency='usd',
)
if result['authorized']:
# Proceed with Stripe ACP checkout
print(f'Trust score: {result["trust_score"]}')
else:
print(f'Blocked: {result["reason"]}')typescriptExpress Middleware (TypeScript)
import createVorim from '@vorim/sdk';
import { createVorimACP } from '@vorim/sdk/integrations/stripe-acp';
const vorim = createVorim({ apiKey: 'agid_sk_...' });
const acp = createVorimACP(vorim, { minTrustScore: 70 });
// Agent must send X-Vorim-Agent-Id header
app.post('/checkouts', acp.middleware(), (req, res) => {
// Only reached if agent has transact permission + trust score >= 70
const { trustScore, status } = req.vorimAuthorization;
// Create Stripe checkout session...
});typescriptFlask/FastAPI Decorator (Python)
@acp.require_transact(agent_id_header='X-Vorim-Agent-Id')
def create_checkout(request):
# Only reached if agent passes all checks
return process_checkout(request)typescriptAudit Trail
Every commerce interaction is logged automatically:
- checkout.authorize — permission + trust verification (success or denied with reason)
- checkout.created — checkout session initiated
- checkout.completed — payment processed
- checkout.canceled — checkout abandoned
Need Help?
Book a demo for a walkthrough, or contact us for support. For enterprise needs, reach out at sales@vorim.ai.