The payment itself waits
The request that sends the card or confirms the payment is held in the browser until Permissionn allows the purchase. A payment nobody expected never reaches the processor, even if the agent clicks Pay first.
Your agent shops in Kernel, Browserbase, Browser Use, Anchor, Notte or your own Chromium. Before it pays, Permissionn checks the purchase, holds the payment while the person approves, and stops what they never allowed.
const hold = await holdPayments(pn, context);
hold.expect({ amount: 64.90 });
// the agent clicks Pay
// POST api.stripe.com/v1/payment_intents/…/confirm
// held: over $50, Maria approves first
await hold.paid();
The request that sends the card or confirms the payment is held in the browser until Permissionn allows the purchase. A payment nobody expected never reaches the processor, even if the agent clicks Pay first.
When a purchase needs an approval, a screenshot of the checkout goes with it. The person approves with a passkey or Face ID, by push, text or email, or in your own app.
Per payment, per day, the amount above which the agent asks first, and the websites it may pay. Planted instructions in the page and carts that drift from what the person asked for are stopped.
When a purchase is above the amount the person asked to approve first, the payment waits in the browser and the person gets the request on their phone, with a screenshot of the checkout the agent was on.
Over the CDP URL your browser provider gives you, or launch your own Chromium.
The amount, and optionally the store and the items.
Loading pages is never held. Only the request that pays waits.
Within the limits it goes straight through; above them the person approves first. Each decision is signed and kept for disputes.
import { chromium } from 'playwright';
import { Permissionn } from '@permissionn/sdk';
import { holdPayments } from '@permissionn/sdk/browsers';
const pn = new Permissionn({ apiKey: process.env.PERMISSIONN_API_KEY });
// cdpUrl: the cdp_ws_url of a browser you created in Kernel
const browser = await chromium.connectOverCDP(cdpUrl);
const hold = await holdPayments(pn, browser.contexts()[0], { onApproval: tellTheUser });
hold.expect({ amount: 23.06, currency: 'USD' });
await runAgent(browser); // the payment waits for Permissionn
await hold.paid();const session = await bb.sessions.create({ projectId });
const browser = await chromium.connectOverCDP(session.connectUrl);
const context = browser.contexts()[0];
const hold = await holdPayments(pn, context, { onApproval: tellTheUser });
hold.expect({ amount: 23.06, currency: 'USD', intent: { merchant: 'amazon.com', max_amount: 25 } });
await runAgent(context);
await hold.paid();# Python: the agent asks before it pays, and is told to go ahead, to wait, or that it may not
from browser_use import Agent
from permissionn import Client
from permissionn.browsers import browser_use_tools
pn = Client(api_key)
agent = Agent("Buy a USB-C cable under $15 on amazon.com",
tools=browser_use_tools(pn, session_id=run_id, on_approval=tell_the_user))
await agent.run()// cdpUrl: session.data.cdp_url from Sessions.createSession()
const browser = await chromium.connectOverCDP(cdpUrl);
const hold = await holdPayments(pn, browser.contexts()[0], { onApproval: tellTheUser });
hold.expect({ amount: 49.0, currency: 'USD' });
try { await runAgent(browser); await hold.paid(); }
finally { await endAnchorSession(); }await notte.Session({ max_duration_minutes: 30 }).use(async (session) => {
const browser = await chromium.connectOverCDP(await session.cdpUrl());
const page = await browser.contexts()[0].newPage();
await shop(page);
// Ask before paying: waits while the person approves
const purchase = await checkout(pn, page, { amount: 23.06, onApproval: tellTheUser });
await page.click('#place-order');
await purchase.paid();
});const browser = await chromium.launch();
// Service workers can send requests around the browser's routes: block them
const context = await browser.newContext({ serviceWorkers: 'block' });
const hold = await holdPayments(pn, context, { onApproval: tellTheUser });
hold.expect({ amount: 23.06, currency: 'USD' });
await runAgent(context);
await hold.paid();Every provider gives you a Chromium you reach over CDP, so the same few lines work with each. The full guide, with every option, is in the docs for customers.
No. Permissionn never touches card details and never moves money. It decides whether a payment request may leave the browser; the card goes from the browser to the store’s payment processor as it always would.
The payment is held, never let through unchecked. Browsing carries on; only paying waits.
They are sealed with your workspace’s key, shown only to the person deciding and to your team, kept as evidence for disputes, and deleted with your request history, after 90 days at the latest.
When the store takes them through one of the processors listed, yes: the wallet payment goes to the processor like a card and is held the same way.
The same Agent payments module checks x402 payments: the signed payment must match what the resource asked for, to an address the person allowed.
Plans. Part of the Agent payments module: from $399 a month on Pay as you go (one module), or as one of your modules on Starter ($799) and Growth ($1,999). The Node.js and Python kits are free and MIT licensed. See pricing
Connect one browser session, set the agent’s limits, and watch its first purchase get checked before it pays.