ACP Adapter (Stripe)
What is ACP?
ACP (Agent Commerce Protocol) is Stripe’s protocol for AI agents to make card payments. PQSafe wraps ACP payments with ML-DSA-65 spend envelopes, adding post-quantum authorization to Stripe’s agent payment flow.
Usage
import { Stripe as StripeACP } from '@pqsafe/agent-pay'
const acpPayment = await StripeACP.executeACPPayment(signedEnvelope, { amount: 99_00, // Stripe amounts in cents currency: 'usd', paymentMethodId: 'pm_...', description: 'SaaS subscription payment',})
console.log(acpPayment.chargeId) // ch_...console.log(acpPayment.status) // 'succeeded'Environment
STRIPE_SECRET_KEY=sk_live_...