Skip to main content
Six parties take part in a transaction. The real card number only ever passes between Sapiom and the merchant’s payment processor.

Who does what

Each buyer’s cards and transactions are visible only with that buyer’s key.

A transaction

  1. 1RequestYour agent sends what it’s buying and a card ID.transactionId
  2. 2Follow nextActionAct on each result until it’s ready to pay.↻ Repeats: wait, security code, approvalnextAction
  3. 3PayBrowser Pay swaps the placeholder for the real card.payment_ready
  4. 4Confirm the orderGet the merchant’s confirmation.payment_submitted
Cancel until your agent paysPOST …/cancel
  1. Request. You send what’s being bought and the buyer’s card ID. For a UCP merchant, that’s the merchant’s checkout, and Sapiom opens it with the merchant. For any other merchant, it’s the total and items your agent read from the checkout page.
  2. Follow nextAction. Sapiom checks your spending limits and approval rules, and the buyer approves on a hosted page. Act on each nextAction until the transaction is payment_ready.
  3. Pay. Your browser session fills checkout with a placeholder. Browser Pay relays it, and Sapiom sends the real card to the merchant’s payment processor.
  4. Confirm the order. The transaction then reads payment_submitted. For a UCP merchant, your backend refreshes the checkout to get the merchant’s confirmation. Otherwise, confirm the order on the merchant’s page.
Until your agent pays, it can cancel the transaction.

Why Sapiom needs checkout details first

Sapiom releases a card only for a specific checkout. Before paying, it knows the merchant, items, total and currency. That lets Sapiom:
  • check the transaction against your limits
  • show the buyer exactly what they are approving
  • tie the placeholder card to that one transaction
  • return the decision and its reasons with each transaction

Checkout paths

Whether the merchant supports the Universal Commerce Protocol (UCP) decides how a transaction runs.

With Browser Pay

The buyer’s saved card pays.

UCP merchant ucp_checkout

The merchant’s checkout states the items and total.

RulesBuyer CVVAgent pays

Any other merchant browser_checkout

Your agent states what it’s buying.

Agent statesRulesBuyer CVVAgent pays