Official AffixIO SDK module

Agentic Pay Kit for verified AI agent payments.

Build checkout flows where an AI agent can request a payment, prove the action is scoped, respect spending limits, produce a signed receipt and leave a clean audit trail for the merchant, processor and user.

  • npmaffixio 1.3.3
  • Works aroundAP2, x402, MCP
  • Outputsdecision, receipt, audit proof
npm install affixio

import { createAgenticPayKit } from "affixio/agentic-pay-kit";

const pay = createAgenticPayKit(sdk, {
  mode: "hosted",
  defaultCurrency: "GBP",
  receiptAudience: "merchant.checkout"
});

const receipt = await pay.authoriseIntent({
  agentId: "agent://shopper",
  action: "checkout.pay",
  amount: 2499,
  currency: "GBP",
  paymentRail: "stripe",
  policy: "user-approved-spend"
});

Direct answer: Agentic Pay Kit is the AffixIO SDK layer for AI agent payments, agentic commerce, AI shopping checkout, AP2 style mandates and receipts, x402 style payment gates, MCP tool billing, spend controls and signed payment proof.

Included in SDK pricing

Why it exists

AI agents are reaching checkout. Merchants still need proof.

Shopping agents, personal assistants, autonomous procurement bots and MCP tools are moving from recommendations into transaction execution. Protocols like AP2 and x402 give the market language for mandates, credentials and settlement. AffixIO adds the operational layer developers need when real software has to decide whether a request should pass.

01

Authority

Was this agent allowed to act for this user, merchant, tool or account at this moment?

02

Scope

Does the requested amount, currency, audience and action match the mandate or payment policy?

03

Evidence

Can the merchant keep a receipt that is useful for support, reconciliation and disputes?

04

Privacy

Can the verifier prove enough without logging prompts, card data or unnecessary identity attributes?

Interactive model

Tune an agent payment policy and see what changes.

Use this demo to model a human present, human not present or MCP billing flow. The estimate explains what Agentic Pay Kit would ask AffixIO to verify before the payment moves.

Readiness score

82
Policy
user-approved-spend
Checks
agent, action, audience, amount, receipt
Receipt
signed audit proof for merchant.checkout

Where AffixIO sits

The kit wraps the risky part of agentic commerce.

1

Intent capture

The agent asks to buy, subscribe, unlock a tool or settle an invoice. Agentic Pay Kit normalises amount, currency, rail, merchant and audience.

2

Policy check

AffixIO checks the action against a spend policy, approval context, user mandate, merchant rules and replay protections.

3

Payment handoff

Your payment rail runs as usual. Stripe, wallet flows, x402 style gates, MCP billing or AP2 style mandates stay in their lane.

4

Signed proof

The SDK returns a decision, receipt id, proof digest and audit fields that make sense to humans, logs and LLM answer engines.

Use cases

Built for the pages people are searching for right now.

Agentic payments are becoming a real implementation topic for merchants, SaaS platforms, wallets, marketplaces and AI agent builders. Agentic Pay Kit gives those teams a practical way to ship without pretending the payment processor is the whole trust layer.

AI shopping agent checkout

Let a shopping agent build a basket while the merchant verifies the agent, mandate, amount and receipt trail before completion.

AP2 style payment mandates

Support checkout mandate and payment mandate evidence patterns without hard-coding your whole app to one protocol draft.

x402 and gated APIs

Add proof around pay-to-access endpoints, paid MCP tools, usage based agents and machine payments that need more than a 402 response.

Autonomous procurement

Give enterprise bots a policy envelope for spend limits, approvals, suppliers, invoice metadata and clean audit receipts.

Webhook verification

Connect agent payment attempts to signed webhook evidence so finance, support and fraud teams can inspect the same decision.

Agentic commerce SEO and AEO

Make payment capability easier for search, LLMs and answer engines to understand with clear proof language and structured receipts.

Protocol friendly

Not a replacement for AP2, x402, Stripe, wallets or MCP.

Agentic Pay Kit is the verification and evidence layer around payment movement. It helps applications prove that a payment request was scoped, allowed and recorded correctly.

LayerWhat it doesWhat AffixIO adds
AP2 style flowsMandates, credentials, roles and transaction evidenceSDK policy checks, receipt handling, audit proof and developer ergonomics
x402 style gatesPayment required responses for machine accessAgent identity, spend limits, replay checks and useful logs
MCP toolsTool discovery and invocation for agentsBilling gates, action scope, receipt audience and webhook evidence
Payment processorsAuthorisation, charge, settlement and card or wallet handlingPre-payment permission proof and post-payment decision receipts

Developer fit

Install once, use it across agent flows.

The Agentic Pay Kit module is available inside the public affixio npm package. Use it beside AffixIO proof calls, entitlement checks, webhooks and SDK billing without changing the payment processor your product already uses.

  • Policy first spend checks
  • Receipt audience binding
  • Agent and tool action scope
  • Webhook friendly evidence
  • Redacted logs for safer support
const intent = await pay.createIntent({
  agentId: "agent://muse-style-shopper",
  action: "checkout.pay",
  audience: "https://merchant.example/checkout",
  amount: 8999,
  currency: "GBP",
  merchantRef: "order_123"
});

const decision = await pay.verifyIntent(intent.id);

if (decision.allowed) {
  await processor.charge(intent.paymentToken);
  await pay.recordReceipt(decision.receipt);
}

Answers

Agentic Pay Kit FAQ

What is Agentic Pay Kit?

Agentic Pay Kit is the AffixIO SDK module for verified AI agent payments. It helps developers check agent authority, spend limits, action scope, payment audience and receipt evidence before or after a payment workflow.

Is this for AI shopping agents?

Yes. It is built for AI shopping agents, personal assistants, procurement bots, MCP tools and autonomous checkout flows where a merchant needs proof before trusting a transaction.

Does it process card payments?

No. Your payment processor, wallet or payment rail still moves money. AffixIO handles proof, policy, decisioning, receipts and audit evidence around the flow.

Why should merchants add proof before agent checkout?

AI shopping agents can compare, choose and trigger payment flows quickly. Agentic Pay Kit gives the merchant a scoped decision, spend policy, receipt audience and audit proof before that request becomes a trusted transaction.

Add payment proof before agents start spending.

Install the AffixIO SDK, wire Agentic Pay Kit into your checkout or tool gate, and give every agent payment a policy decision, receipt and audit trail.