Verify mandates
You build a merchant or a payment platform. Add the verifier before your authorisation.
Merchant SDKsFor developers
Check a mandate with the real verifier, offline, in five minutes. Then give your own agent a mandate.
npm install @oid4pay/oid4ac-merchant npx oid4ac-merchant accepted Standard Starter Set EUR 45.00, within the limit refused Refill Pack offer_digest_mismatch refused Deluxe 10-Piece Set offer_digest_mismatch, over_limit refused another shop audience_mismatch refused an expired mandate invalid_mandate_claims refused another agent kb_jwt_jkt_mismatch
01 / Try the verifier
The example mints a fresh sample mandate with a stand-in issuer and checks it with the real verifier. Then it shows what a merchant refuses. It runs offline and makes no payment. The packages are not published yet: the terminal shows what the example prints.
offer_digest_mismatchaudience_mismatchinvalid_mandate_claimskb_jwt_jkt_mismatchover_limit
02 / Pick your path
You build a merchant or a payment platform. Add the verifier before your authorisation.
Merchant SDKsYou build an agent. It asks a human for approval, then pays with the mandate, never with the card.
Agent quickstartThe wire format: the mandate, the key binding, the signed offer and the audit record.
Wire referenceConnecting an agent to OID4Pay is open to design partners during the developer preview. Talk to us.
03 / Packages
| Package | Install | Licence | Docs |
|---|---|---|---|
| Node and TypeScript | npm install @oid4pay/oid4ac-merchant | MIT | Docs |
| Python | pip install oid4pay-oid4ac | MIT | Docs |
| Go | go get github.com/oid4pay/oid4ac-go | MIT | Docs |
| MCP server for agents | npm install -g @oid4pay/oid4pay-mcp | Apache-2.0 | Docs |
The install commands do not work yet. They show the names the packages will ship under.