AP2 · IMPLEMENTATION GUIDE
AP2 mandate validation for production payments
Enforce an AP2 mandate at the final payment boundary: amount, merchant, consent, binding, expiry and durable replay prevention.
What the protocol establishes
AP2 defines a mandate-centered trust model for agent payments. A production control must verify the relevant credential and then evaluate whether the exact checkout still fits the authority the user granted.
Official AP2 specification ↗Five checks before execution
- Verify the mandate credential and its trusted issuer.
- Bind the payment mandate to the intended cart or checkout facts.
- Compare final amount, currency and merchant with approved scope.
- Require current consent and reject expired authority.
- Atomically consume each idempotency key once.
The gap MandateShield closes
A cryptographically valid mandate can still be unsafe when the final price, seller or checkout context changed after authorization.
MandateShield normalizes execution facts and returns a deterministic decision with exact findings and a tamper-evident receipt. It complements protocol-native signature verification; it does not replace it.
Test the normalized payment boundary
No account and no payment credentials required. Change the amount, merchant or consent and inspect the machine-readable result.
Open free validator →