Who does what
Each buyer’s cards and transactions are visible only with that buyer’s key.
A transaction
- 1RequestYour agent sends what it’s buying and a card ID.
transactionId - 2Follow nextActionAct on each result until it’s ready to pay.↻ Repeats: wait, security code, approval
nextAction - 3PayBrowser Pay swaps the placeholder for the real card.
payment_ready - 4Confirm the orderGet the merchant’s confirmation.
payment_submitted
Cancel until your agent pays
POST …/cancel- 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.
- Follow
nextAction. Sapiom checks your spending limits and approval rules, and the buyer approves on a hosted page. Act on eachnextActionuntil the transaction ispayment_ready. - 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.
- 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.
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