Enable agentic payments.
Create a payment session, let the customer authorize on a hosted, PCI-compliant UI, then pass the sessionId to a checkout task. Card data never passes through your backend.
Create a payment session.
Call it from your backend with the customer's email, the amount, and a purpose. You get back a hosted payment URL and a sessionId, plus the authorization that scopes the session.
- Called server-side with your x-api-key
- Returns a hosted url, a sessionId, and the authorization
- Card data never passes through your backend
- CartAI auto-selects Visa or Mastercard by card
sessionId to a checkout task once paid. See Checkouts →curl https://api.cartai.ai/payment/session \-H "x-api-key: $CARTAI_KEY" \-H "Content-Type: application/json" \-d '{"email": "customer@example.com","price": "700","purpose": "Purchase Agent"}'
Collect the card without PCI scope.
Hand the session URL to your frontend. Redirect the customer to it, or embed it in an iframe to keep them on your page. The card is entered and tokenized inside CartAI's hosted UI, so card data never touches your servers, DOM, or logs, and your backend stays out of PCI scope.
- Redirect, or embed in an iframe with allow=payment
- Card fields served from CartAI's PCI-compliant UI
- No card data on your servers, DOM, or logs
- Out of PCI scope for your backend
<!-- Keep the customer on your own page --><iframesrc="SESSION_URL"width="480" height="640"allow="payment"style="border:none"title="CartAI Payment"></iframe>// set the src from the session responseframe.src = session.data.url
On the rails built for agents.
CartAI starts Visa Intelligent Commerce or Mastercard Agent Pay automatically, based on the customer's card.
Test the flow before you go live.
In development, pass card details directly with the provider set to test, and use the sandbox card to simulate approval, decline, and retry. The test provider is disabled on production keys.
Card payments, minus the PCI scope.
A hosted session in, a sessionId out. The agent pays, and a card number never lands in your systems.